/* Green String Tehama — shared styles */
:root {
  --soil: #2b2118;
  --bark: #4a3a2a;
  --leaf: #2f6b3a;
  --leaf-deep: #1f4a28;
  --sprout: #7fb069;
  --straw: #e8d9a8;
  --cream: #faf6ea;
  --paper: #fffdf6;
  --clay: #b5562f;
  --ink: #26221c;
  --muted: #6b6558;
  --line: #e2dac4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 33, 24, 0.10);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--leaf-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--soil); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
section { padding: 56px 0; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--leaf); font-weight: 700; margin-bottom: 10px;
}
.lede { font-size: 1.15rem; color: var(--bark); }
.muted { color: var(--muted); }

/* Header */
.site-header {
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--soil); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-name span { color: var(--leaf); }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--bark); font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: #eef3e4; color: var(--leaf-deep); }
.nav a.active { background: var(--leaf); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem var(--sans); padding: 12px 22px; border-radius: 999px;
  background: var(--leaf); color: #fff; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--leaf-deep); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--leaf-deep); box-shadow: inset 0 0 0 2px var(--leaf); }
.btn.ghost:hover { background: #eef3e4; }
.btn.light { background: var(--straw); color: var(--soil); }
.btn.light:hover { background: #f3e8c2; color: var(--soil); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.danger { background: transparent; color: var(--clay); box-shadow: inset 0 0 0 1.5px var(--clay); }
.btn.danger:hover { background: #f8e9e2; color: var(--clay); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(127,176,105,.35), transparent 60%),
    linear-gradient(160deg, #1f4a28 0%, #2f6b3a 55%, #4b7f3f 100%);
  color: #f4f1e2; padding: 84px 0 110px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: #e4ecd6; max-width: 56ch; }
.hero .eyebrow { color: var(--straw); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero-string { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 90px; }
.page-hero { background: linear-gradient(160deg, #1f4a28, #2f6b3a); color: #eef2e2; padding: 54px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { max-width: 62ch; margin: 0; color: #dfe8d0; }
.page-hero .eyebrow { color: var(--straw); }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: #e9f1dd; color: var(--leaf-deep);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: var(--leaf-deep);
  border-left: 5px solid var(--sprout); padding: 6px 0 6px 22px; margin: 0;
}
.quote small { display: block; font: 600 0.85rem var(--sans); color: var(--muted); margin-top: 10px; letter-spacing: .04em; }

/* Techniques */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--leaf-deep);
  background: #e9f1dd; padding: 7px 14px; border-radius: 999px;
}
.toc a:hover { background: var(--sprout); color: #fff; }
.technique {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.technique:last-child { border-bottom: 0; }
.technique .num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); color: #fff;
  display: grid; place-items: center; font: 700 1.3rem var(--serif);
}
.technique ul { padding-left: 1.2em; margin: 0 0 1em; }
.technique li { margin-bottom: 0.4em; }
.try {
  background: #f3efdc; border-left: 4px solid var(--clay); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 14px 0;
}
.try strong { color: var(--clay); }
.watch-link { font-weight: 600; text-decoration: none; }
.note {
  background: #fff8e1; border: 1px solid #ecdca0; border-radius: 12px; padding: 14px 18px;
  font-size: 0.95rem; color: var(--bark);
}

/* Videos */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--bark);
  padding: 7px 15px; border-radius: 999px; font: 600 0.92rem var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--sprout); }
.chip.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
input[type="search"], input[type="text"], textarea, select {
  font: 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(127,176,105,.45); border-color: var(--sprout); }
.toolbar input[type="search"] { max-width: 300px; margin-left: auto; }
.video-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.video-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; text-align: left; padding: 0;
  font: inherit; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43,33,24,.16); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #1d2b1f; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(31,74,40,.88); display: grid; place-items: center;
}
.thumb .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.thumb .len {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: 2px 7px; border-radius: 6px;
}
.video-body { padding: 16px 18px 18px; }
.video-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.video-body p { font-size: 0.92rem; color: var(--muted); margin: 0 0 8px; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--leaf-deep); background: #e9f1dd; padding: 3px 9px; border-radius: 999px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(20,16,10,.82); z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.open { display: flex; }
.modal-box { background: var(--paper); border-radius: var(--radius); width: min(960px, 100%); max-height: 94vh; overflow: auto; }
.modal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-info { padding: 16px 20px 20px; display: flex; gap: 16px; justify-content: space-between; align-items: start; flex-wrap: wrap; }
.modal-info h3 { margin: 0 0 4px; }
.modal-info p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.modal-actions { display: flex; gap: 8px; }

/* Forum */
.forum-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.side { position: sticky; top: 90px; display: grid; gap: 16px; }
.side .card { padding: 18px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cat-list button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: 600 0.96rem var(--sans);
  color: var(--bark); padding: 8px 10px; border-radius: 9px; display: flex; justify-content: space-between; gap: 8px;
}
.cat-list button:hover { background: #eef3e4; }
.cat-list button.on { background: var(--leaf); color: #fff; }
.cat-list .count { font-weight: 500; opacity: .75; }
.topic {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.topic:hover { border-color: var(--sprout); box-shadow: var(--shadow); }
.topic h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.topic .excerpt { color: var(--muted); font-size: 0.93rem; margin: 0; }
.topic .meta, .post .meta { font-size: 0.84rem; color: var(--muted); }
.topic .replies { text-align: center; align-self: center; min-width: 64px; color: var(--leaf-deep); }
.topic .replies b { display: block; font: 700 1.4rem var(--serif); }
.topic .replies span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: .06em; }
.kind { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }
.kind.question { background: #fde9d9; color: #9a4317; }
.kind.share { background: #e9f1dd; color: var(--leaf-deep); }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; }
.post.first { border-left: 5px solid var(--leaf); }
.post .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sprout); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post .post-actions { margin-top: 10px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.94rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { background: none; border: 0; color: var(--leaf); font: 600 1rem var(--sans); cursor: pointer; padding: 0; margin-bottom: 16px; }
.back:hover { color: var(--leaf-deep); text-decoration: underline; }
.preview-banner { background: #fff8e1; border-bottom: 1px solid #ecdca0; font-size: 0.92rem; color: var(--bark); padding: 9px 0; text-align: center; }
.error { color: var(--clay); font-weight: 600; font-size: 0.92rem; min-height: 1.3em; margin: 0 0 8px; }

/* Footer */
.site-footer { background: var(--soil); color: #cfc6b4; padding: 40px 0 28px; margin-top: 40px; font-size: 0.94rem; }
.site-footer a { color: var(--straw); }
.site-footer .cols { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer h4 { font-family: var(--serif); color: #fff; margin: 0 0 8px; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 16px; font-size: 0.84rem; color: #a59c8a; }

@media (max-width: 820px) {
  .forum-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .technique { grid-template-columns: 1fr; gap: 10px; }
  .toolbar input[type="search"] { max-width: none; margin-left: 0; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .brand-tag { display: none; }
  section { padding: 40px 0; }
}
