:root {
  --ink: #2c2a26;
  --ink-soft: #5b564d;
  --cream: #f7f1e6;
  --paper: #fffbf3;
  --oat: #e9dcc4;
  --teal: #1f5f5b;
  --teal-dark: #164744;
  --kowhai: #e0a526;
  --madder: #a8432f;
  --line: #ddd0b8;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--madder); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 .6em; }
h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.2rem; margin: .3em 0 .4em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.narrow-head { max-width: 740px; }
.section { padding: 56px 20px; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--madder); font-weight: 600; margin: 0 0 .6em; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--kowhai); }

/* hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-cloth { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(44,42,38,.45); transform: rotate(1.5deg); }
.hero-cloth img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.button { display: inline-block; background: var(--teal); color: var(--paper); text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.button:hover { background: var(--teal-dark); color: var(--paper); }
.button-quiet { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.button-quiet:hover { background: var(--teal); }

/* cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2 { margin-top: 0; font-size: 1.3rem; }
.card p { margin-bottom: 0; }
.strip { height: 24px; background: url("../img/strip.svg") repeat-x left center / auto 24px; opacity: .85; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--paper); border-left: 4px solid var(--kowhai); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.post-card a { color: var(--ink); text-decoration: none; }
.post-card a:hover { color: var(--teal); text-decoration: underline; }
.post-card p { margin: 0; }
.post-card h2, .post-card h3 { margin: .2em 0 .4em; }
.post-card h2 { font-size: 1.35rem; }
.post-date { color: var(--madder); font-size: .85rem; font-weight: 600; }
.post-list { display: grid; gap: 18px; margin-top: 32px; }

.split { display: grid; grid-template-columns: 1fr 290px; gap: 40px; align-items: center; }
.split h2 { margin-top: 0; }
.draft-thumb img { background: var(--paper); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }

/* about / learn */
.people, .glossary { margin: 0; display: grid; gap: 14px; }
.people div, .glossary div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
dt { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
dd { margin: 2px 0 0; color: var(--ink-soft); }
.figure-soft { margin: 24px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.figure-soft img { margin: 0 auto; }

/* gatherings */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.slot { background: var(--paper); border-top: 4px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); padding: 18px 20px; }
.slot h2 { margin: 0; font-size: 1.3rem; }
.slot-time { color: var(--madder); font-weight: 600; margin: .3em 0 .6em; }
.slot p:last-child { margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--oat); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* drafts */
.drafts { display: grid; gap: 28px; margin-top: 36px; }
.draft { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 20px; }
.draft h2 { margin-top: 0; }

/* posts */
.post h2 { font-size: 1.35rem; }
.post li { margin-bottom: .4em; }
.aside { background: var(--oat); padding: 12px 16px; border-radius: var(--radius); font-size: .96rem; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.post-nav a { max-width: 48%; }
.post-nav a:last-child { text-align: right; }

.notfound { text-align: center; }
.notfound img { margin: 0 auto 20px; border-radius: var(--radius); }
.notfound .button { margin-top: 8px; }

/* footer */
.site-footer { background: var(--ink); color: #e8dfcf; margin-top: 40px; }
.site-footer a { color: var(--kowhai); }
.site-footer .muted { color: #b8ae9c; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: var(--paper); margin-top: 0; }

@media (max-width: 860px) {
  .hero-inner, .split, .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .hero-cloth { transform: none; }
  .cards.three, .post-grid { grid-template-columns: 1fr; }
  .split { gap: 20px; }
  .draft-thumb { max-width: 290px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 40px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .schedule, .draft { grid-template-columns: 1fr; }
  .draft img { max-width: 290px; }
  .lead { font-size: 1.08rem; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .post-nav a:last-child { text-align: left; }
}
