/*
Theme Name: HortChat Restored
Theme URI: https://hortchat.com
Author: HortChat
Description: Clean publishing theme for the restored HortChat archive.
Version: 1.0.3
License: GPL-2.0-or-later
Text Domain: hortchat
*/

:root {
  --ink: #17211b;
  --muted: #637168;
  --leaf: #2f6b44;
  --leaf-dark: #17432c;
  --moss: #dce8d2;
  --soil: #7b4f36;
  --sun: #f2bd4a;
  --rose: #bf5a45;
  --paper: #ffffff;
  --wash: #f5f8f2;
  --line: #d7dfd0;
  --shadow: 0 14px 34px rgba(35, 50, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(220, 232, 210, 0.5), rgba(245, 248, 242, 0) 320px),
    var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--soil);
}

img {
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(215, 223, 208, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-title {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--leaf-dark);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--moss);
}

.site-main {
  padding: 2rem 0 4.5rem;
}

.home-hero {
  min-height: clamp(420px, 54vh, 620px);
  display: flex;
  align-items: end;
  margin: 0 0 2.4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 44, 29, 0.82), rgba(16, 44, 29, 0.45) 48%, rgba(16, 44, 29, 0.16)),
    url("/wp-content/uploads/hortchat-recovered/DSCF5026-a920355e-2048x1536.jpg") center / cover,
    var(--leaf-dark);
  box-shadow: var(--shadow);
}

.home-hero__copy {
  max-width: 720px;
  min-width: 0;
}

.home-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.6rem;
  line-height: 0.98;
}

.home-hero p {
  max-width: 640px;
  margin: 1rem 0 0;
  color: #f4f7f0;
  font-size: 1.28rem;
}

.home-tools {
  margin: 0 0 2.4rem;
}

.home-tools__grid,
.hc-card-grid,
.hc-comment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.home-tool,
.hc-card,
.hc-panel,
.hc-comment-card,
.hc-editor-note,
.hc-reader-questions,
.hc-tool-form,
.hc-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(35, 50, 39, 0.07);
}

.home-tool {
  display: block;
  min-height: 100%;
  padding: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.home-tool strong {
  display: block;
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.12;
}

.home-tool span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-tool:hover,
.home-tool:focus {
  border-color: rgba(47, 107, 68, 0.45);
  color: var(--ink);
  transform: translateY(-1px);
}

.eyebrow,
.meta,
.comment-meta,
.comment-awaiting-moderation {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: var(--sun);
  margin: 0 0 0.8rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.content-primary {
  min-width: 0;
}

.section-heading {
  margin: 0 0 1.2rem;
}

.section-heading h1,
.section-heading h2 {
  margin: 0.15rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1.05;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem;
}

.post-card,
.widget,
.comment-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card {
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 10px 24px rgba(35, 50, 39, 0.07);
}

.post-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--moss);
}

.post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.035);
}

.post-card__body {
  padding: 1.1rem;
}

.post-card h2,
.entry-title {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

.post-card h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.35rem;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus {
  color: var(--leaf);
}

.post-card p:last-child {
  margin-bottom: 0;
}

.article-header {
  max-width: 860px;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.entry-title {
  max-width: 860px;
  margin: 0.35rem 0 0;
  font-size: 4.4rem;
}

.entry-content {
  max-width: 780px;
  margin-top: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.page .article-header,
.page .entry-content {
  max-width: 1040px;
}

.page .entry-content {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

.entry-content img {
  display: block;
  margin: 1.4rem 0;
  border-radius: 8px;
}

.entry-content .alignleft,
.entry-content .alignright {
  max-width: min(45%, 320px);
}

.entry-content .alignleft {
  float: left;
  margin: 0.35rem 1.2rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.2rem;
}

.entry-content blockquote,
.comment-content blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 4px solid var(--sun);
  color: #394235;
}

.comments-area {
  max-width: 820px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comments-area h2,
.comment-reply-title {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1.1;
}

.comment-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin: 1rem 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.comment-body {
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(35, 50, 39, 0.06);
}

.comment-author .avatar {
  display: none;
}

.comment-content {
  margin-top: 0.55rem;
}

.comment-content p:first-child {
  margin-top: 0;
}

.comment-reply-link,
.form-submit input,
.hc-button,
.search-submit,
.wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--leaf);
  border-radius: 6px;
  background: var(--leaf);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.comment-reply-link:hover,
.comment-reply-link:focus,
.form-submit input:hover,
.form-submit input:focus,
.hc-button:hover,
.hc-button:focus,
.search-submit:hover,
.search-submit:focus,
.wp-block-search__button:hover,
.wp-block-search__button:focus {
  border-color: var(--soil);
  background: var(--soil);
  color: #fff;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.hc-tool-form input,
.hc-tool-form select,
.hc-tool-form textarea,
.search-field,
.wp-block-search__input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid #cbd5c4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.comment-form textarea:focus,
.comment-form input:focus,
.hc-tool-form input:focus,
.hc-tool-form select:focus,
.hc-tool-form textarea:focus,
.search-field:focus,
.wp-block-search__input:focus {
  outline: 3px solid rgba(242, 189, 74, 0.35);
  border-color: var(--soil);
}

.hc-tool-page {
  color: var(--ink);
}

.hc-intro {
  max-width: 760px;
  margin: 0 0 1.4rem;
  color: #394235;
  font-size: 1.1rem;
}

.hc-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.hc-letter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hc-plant-letter {
  scroll-margin-top: 6rem;
  margin: 0 0 2rem;
}

.hc-plant-letter h2,
.hc-panel h2,
.hc-results h2,
.hc-reader-questions h2 {
  margin: 0 0 0.8rem;
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.hc-card,
.hc-panel,
.hc-comment-card,
.hc-editor-note,
.hc-reader-questions,
.hc-tool-form,
.hc-notice {
  padding: 1rem;
}

.hc-card h2,
.hc-card h3 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.hc-card h2 a,
.hc-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.hc-card h2 a:hover,
.hc-card h3 a:hover,
.hc-card h2 a:focus,
.hc-card h3 a:focus {
  color: var(--leaf);
}

.hc-card p,
.hc-card ul,
.hc-panel p,
.hc-comment-card p,
.hc-editor-note p,
.hc-reader-questions p {
  margin-top: 0;
}

.hc-card-note,
.hc-small {
  color: var(--muted);
  font-size: 0.9rem;
}

.hc-tool-form {
  margin: 0 0 1.4rem;
}

.hc-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.hc-tool-form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--leaf-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.hc-tool-form label span {
  display: block;
  margin-bottom: 0.32rem;
}

.hc-tool-form input[type="file"] {
  padding: 0.55rem;
}

.hc-panel,
.hc-results,
.hc-reader-questions,
.hc-editor-note {
  margin: 1.4rem 0;
}

.hc-check-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.hc-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--sun);
}

.hc-result-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-result-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.hc-result-list li:last-child {
  border-bottom: 0;
}

.hc-result-list span {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.hc-comment-card {
  box-shadow: none;
}

.hc-comment-card p {
  color: #394235;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hc-notice {
  margin-bottom: 1rem;
  border-color: rgba(191, 90, 69, 0.35);
  background: #fff8f5;
}

.hc-notice-success {
  border-color: rgba(47, 107, 68, 0.35);
  background: #f3f8ef;
}

.hc-hp {
  position: absolute;
  left: -9999px;
}

.home-archive-highlights {
  margin-bottom: 2rem;
}

.widget .hc-result-list {
  gap: 0;
}

.widget .hc-result-list li {
  display: block;
  padding: 0.5rem 0;
}

.widget .hc-result-list span {
  display: block;
  margin-top: 0.15rem;
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.6rem;
}

.wp-block-search__inside-wrapper .wp-block-search__input {
  min-width: 0;
  width: auto;
}

.wp-block-search__button {
  flex: 0 0 auto;
  margin-left: 0;
}

.widget {
  margin-bottom: 1rem;
  padding: 1rem;
}

.widget-title,
.widget h2 {
  margin: 0 0 0.7rem;
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.widget ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__inner {
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .site-header__inner,
  .content-grid {
    display: block;
  }

  .site-nav {
    margin-top: 1rem;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav li {
    margin: 0.3rem 0;
  }

  .home-hero {
    min-height: 420px;
    background-position: center;
  }

  .home-hero__copy {
    max-width: 100%;
    min-width: 0;
  }

  .home-hero h1 {
    font-size: 3.9rem;
  }

  .home-hero p {
    max-width: 34rem;
    font-size: 1.12rem;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 2.65rem;
  }

  .entry-title {
    font-size: 3.4rem;
  }

  .comments-area h2,
  .comment-reply-title {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .site-main {
    width: calc(100% - 1rem);
    max-width: 1180px;
  }

  .home-hero {
    min-height: 380px;
    padding: 1.2rem;
    overflow: hidden;
  }

  .home-hero h1 {
    font-size: 2.65rem;
  }

  .home-hero p {
    max-width: 18.5rem;
    font-size: 1rem;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 2rem;
  }

  .entry-title {
    font-size: 2.35rem;
  }

  .comments-area h2,
  .comment-reply-title {
    font-size: 1.7rem;
  }

  .comment-list .children {
    margin-left: 0.75rem;
  }

  .hc-result-list li {
    display: block;
  }

  .hc-result-list span {
    display: block;
    margin-top: 0.2rem;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    max-width: 100%;
    margin: 1.2rem 0;
  }
}
