/* Gurdjieff Foundation of Austin
   Layout: mobile-first single column, generous tap targets, one drawn enneagram as the recurring mark; widens to two columns on desktop. */
:root {
  --bg: #f1f1ec;          /* limestone */
  --surface: #fbfbf8;
  --ink: #1b2027;
  --muted: #5c636c;
  --rule: #dcddd6;
  --accent: #8a5a1f;      /* hill-country ochre */
  --accent-soft: #efe3d1;
  --accent-ink: #fbfbf8;
  --night: #1e2733;
  --night-ink: #e9e6dd;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1080px;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13171c; --surface: #1b2128; --ink: #ebe8e0; --muted: #a4a9af; --rule: #2b323b;
    --accent: #d6a65f; --accent-soft: #2c2519; --accent-ink: #13171c; --night: #0d1014; --night-ink: #dcd8cc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13171c; --surface: #1b2128; --ink: #ebe8e0; --muted: #a4a9af; --rule: #2b323b;
  --accent: #d6a65f; --accent-soft: #2c2519; --accent-ink: #13171c; --night: #0d1014; --night-ink: #dcd8cc;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; max-width: var(--measure); }
.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--muted); }
.stack { display: grid; gap: 14px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; color: var(--accent); }
.brand-name { font-family: var(--display); font-size: 1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--body); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 6px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px; }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: fixed; inset: 60px 0 auto 0; margin-top: env(safe-area-inset-top, 0px);
    flex-direction: column; gap: 4px; padding: 12px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
  }
  .nav.open { display: flex; }
  .nav a { font-family: var(--display); font-size: 1.5rem; padding: 14px 16px; border-radius: 12px; }
}

/* Hero */
.hero { padding-block: clamp(36px, 8vw, 96px) clamp(28px, 6vw, 64px); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero-mark { width: 120px; color: var(--accent); }
.hero-mark svg { width: 100%; height: auto; }
@media (min-width: 821px) {
  .hero.home .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero.home .hero-mark { order: 2; width: min(340px, 100%); justify-self: center; color: var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .turn { transform-origin: 100px 100px; animation: turn 240s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font-family: var(--body); font-size: 1rem; font-weight: 500;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

/* Sections */
.section { padding-block: clamp(36px, 7vw, 80px); }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }

/* Cards */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; text-decoration: none; color: var(--ink); align-content: start; }
a.card:hover { border-color: var(--accent); }
.card .more { color: var(--accent); font-weight: 500; font-size: .95rem; margin-top: 4px; }

/* Timeline: swipe on mobile */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.timeline > * { scroll-snap-align: start; }
.year { font-family: var(--display); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.swipe-hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 821px) { .timeline { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } .swipe-hint { display: none; } }

/* Feature band */
.band { background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: clamp(24px, 5vw, 44px); display: grid; gap: 14px; }
.band .eyebrow { color: var(--accent); }
.band .btn.ghost { color: var(--night-ink); border-color: rgba(255,255,255,.25); }

/* Accordion */
.accordion { display: grid; gap: 10px; }
.accordion details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; min-height: 60px; font-family: var(--display); font-size: 1.25rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--body); font-size: 1.5rem; color: var(--accent); line-height: 1; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .panel-body { padding: 0 20px 20px; display: grid; gap: 12px; color: var(--muted); }
.accordion blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink); }

/* Meeting card */
.meeting { display: grid; gap: 14px; }
.meeting .facts { display: grid; gap: 0; margin: 0; }
.meeting .facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--rule); }
.meeting dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meeting dd { margin: 0; font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 500; }

/* Chips (resources) */
.chips { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--bg); padding-block: 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); padding: 9px 16px; border-radius: 999px; font-size: .95rem; background: var(--surface); }
.chips a:hover { border-color: var(--accent); }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--rule); }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; min-height: 64px; color: var(--ink); text-decoration: none; }
.list a:hover { background: var(--accent-soft); }
.list .t { display: grid; gap: 2px; min-width: 0; }
.list .t strong { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.list .t span { font-size: .9rem; color: var(--muted); }
.list .arrow { color: var(--accent); flex: none; }
.anchor { scroll-margin-top: 130px; }

/* Forms */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-size: .9rem; font-weight: 500; }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 10px; padding: 14px; width: 100%; min-height: 50px;
}
textarea { min-height: 130px; resize: vertical; }
.form-note, .fine { font-size: .9rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { font-weight: 500; }

.two-col { display: grid; gap: 16px; }
@media (min-width: 821px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; } }

/* Sticky mobile CTA */
.dock { display: none; }
@media (max-width: 820px) {
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
  }
  .dock .btn { width: 100%; }
  body.has-dock { padding-bottom: 80px; }
}

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink); }
.site-footer .wrap { display: grid; gap: 24px; padding-block: 44px 28px; }
.site-footer a { color: var(--night-ink); }
.foot-top { display: flex; gap: 14px; align-items: center; }
.foot-top svg { width: 40px; height: 40px; color: var(--accent); flex: none; }
.foot-top p { font-size: .95rem; opacity: .85; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; display: inline-block; padding-block: 6px; }
.legal { font-size: .82rem; opacity: .65; display: grid; gap: 4px; }
