:root {
  --paper: #faf7f2;
  --sand: #f0e9dc;
  --ink: #1f2a2e;
  --muted: #55625f;
  --green: #1f4e49;
  --green-deep: #173a36;
  --clay: #b4552d;
  --line: #ddd3c3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--green); color: #fff;
  padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--green-deep); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 0 .8rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
p { margin: 0 0 1.1rem; }
.lede { font-size: 1.28rem; line-height: 1.55; color: #2b3a3d; }
.eyebrow {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin: 0 0 .7rem;
}
.fine { font-size: .95rem; color: var(--muted); margin: .7rem 0 0; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--green-deep); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand:hover { color: var(--green-deep); }
.brand-mark { width: 30px; height: 30px; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 4px; width: 22px; height: 22px; border-radius: 50%; }
.brand-mark::before { left: 0; background: var(--green); }
.brand-mark::after { left: 8px; background: #d9825b; opacity: .88; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .3rem; }
.nav a { display: block; padding: .4rem .7rem; text-decoration: none; color: var(--ink); font-size: 1rem; border-radius: 6px; }
.nav a:hover { background: var(--sand); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green-deep); font-weight: 600; box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.hero-art { width: 100%; height: auto; max-width: 380px; justify-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }

.page-head { padding: clamp(2.2rem, 6vw, 4rem) 0 .5rem; }
.page-head .lede { margin-bottom: 1.2rem; }

/* buttons */
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 8px; font-size: 1.02rem; font-weight: 600;
  text-decoration: none; border: 2px solid var(--green); line-height: 1.2; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn-quiet { background: transparent; color: var(--green-deep); }
.btn-quiet:hover { background: var(--sand); color: var(--green-deep); }
.is-pending { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* bands */
.band { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.band-sand { background: var(--sand); }
.band-green { background: var(--green); color: #f4efe6; }
.band-green h2 { color: #fff; }
.band-green a { color: #fff; }
.band-green .fine { color: #d6dfdb; }
.band-green .btn-primary { background: #fff; color: var(--green-deep); border-color: #fff; }
.band-green .btn-primary:hover { background: var(--sand); border-color: var(--sand); color: var(--green-deep); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.5rem .8rem; border-top: 4px solid var(--clay); }
.card h3 a { text-decoration: none; color: var(--green-deep); }
.card h3 a:hover { color: var(--clay); }
.card p { color: #34444a; font-size: 1.04rem; }

/* prose */
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.rules { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.rules li { margin-bottom: .55rem; padding-left: .2rem; }
.rules li::marker { color: var(--clay); }

/* signup */
.signup { margin-top: 1.2rem; max-width: 560px; }
.signup label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: 1rem; }
.signup-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 240px; padding: .75rem .9rem; font-size: 1.05rem; border-radius: 8px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); font-family: var(--sans); min-width: 0;
}
.band-green .signup input[type="email"] { border-color: #fff; }
.signup.is-pending-form button { opacity: .6; cursor: not-allowed; }

/* resources */
.tools { display: grid; gap: 1.1rem; margin-bottom: 1.4rem; }
.search label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: 1rem; }
.search input {
  width: 100%; max-width: 520px; padding: .75rem .9rem; font-size: 1.05rem; border-radius: 8px;
  border: 2px solid var(--line); background: #fff; font-family: var(--sans); color: var(--ink);
}
.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1.5px solid var(--green); background: transparent; color: var(--green-deep); border-radius: 999px;
  padding: .4rem .95rem; font-size: .98rem; cursor: pointer; font-family: var(--sans);
}
.chip:hover { background: var(--sand); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.count { color: var(--muted); font-size: .98rem; margin: 0 0 1rem; }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.resource { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 1.1rem 1.3rem; }
.resource h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.resource h3 a { text-decoration: none; }
.resource h3 a:hover { text-decoration: underline; }
.resource .meta { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.resource p:last-child { margin-bottom: 0; font-size: 1.04rem; }
.empty { color: var(--muted); }

/* coffee */
.next-chat { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--clay); border-radius: 12px; padding: 1.6rem 1.8rem; }
.next-chat h2 { margin-bottom: .6rem; }
.chat-when { font-family: var(--serif); font-size: 1.5rem; color: var(--green-deep); margin: 0 0 .3rem; }
.chat-topic { font-weight: 600; margin: 0 0 .6rem; }

/* archive */
.archive { list-style: none; padding: 0; margin: 0; }
.archive li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.archive .date { color: var(--muted); font-size: .95rem; margin-left: .5rem; }

/* footer */
.site-footer { background: var(--green-deep); color: #e3ebe7; padding: 2.4rem 0; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .fine { color: #c3d0cb; max-width: 46ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0 0 .3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: 1rem; }

/* board */
.btn-small { padding: .45rem .95rem; font-size: .95rem; }
.board-bar { margin-bottom: 1.4rem; }
.board-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .7rem 1rem; background: var(--sand); border-radius: 10px; font-size: 1rem; }
.bar-links { display: inline-flex; align-items: center; gap: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--clay); }
.linklike.danger { color: #9a2f1a; }
.notice { margin: .8rem 0 0; padding: .7rem 1rem; border-radius: 8px; font-size: 1rem; border-left: 4px solid var(--green); background: #fff; }
.notice-error { border-left-color: #9a2f1a; background: #fbeeea; }
.notice-ok { border-left-color: var(--green); background: #eaf3ef; }
.notice-info { border-left-color: var(--clay); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.topic-list, .reply-list, .member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.topic { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: .9rem 1.2rem; }
.topic.is-pinned { border-left-color: var(--clay); }
.topic h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.topic h3 a { text-decoration: none; }
.topic h3 a:hover { text-decoration: underline; }
.pin { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-left: .6rem; vertical-align: middle; }
.meta { font-size: .92rem; color: var(--muted); margin: 0 0 .5rem; }
.topic .meta { margin: 0; }
.post { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--clay); border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.post h2 { margin-bottom: .4rem; }
.post-body p { margin-bottom: .9rem; overflow-wrap: anywhere; }
.post-tools { display: flex; gap: 1.2rem; margin: .5rem 0 0; font-size: .95rem; }
.replies-head { margin-top: 1.6rem; }
.reply { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.2rem; }
.board-form { display: grid; gap: 1rem; max-width: 620px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: 1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea, .field select {
  width: 100%; padding: .7rem .9rem; font-size: 1.05rem; border-radius: 8px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); font-family: var(--sans);
}
.field textarea { resize: vertical; }
.field.check { display: flex; gap: .6rem; align-items: flex-start; }
.field.check input { margin-top: .4rem; width: 1.1rem; height: 1.1rem; flex: none; }
.field.check label { font-weight: 400; margin: 0; }
.board-form button[type="submit"] { justify-self: start; }
.member { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1.1rem; }
.member-actions { display: flex; gap: .5rem; }
.soon { max-width: 560px; }
button:disabled, input:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; order: -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.reply-list { margin-bottom: 1.6rem; }
