/* Elim: one stylesheet for every page. No web fonts and no third-party requests:
   the type is the reader's own system serif and sans. */

:root {
  --bg: #fbf9f5;          /* cream */
  --text: #1c1917;        /* ink */
  --muted: #6b645d;
  --accent: #8c5338;      /* terracotta */
  --accent-ink: #ffffff;  /* text on a terracotta button */
  --rule: #e8e1d6;
  --card: #f4efe6;
  --focus: #8c5338;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --text: #f1ece4;
    --muted: #a9a097;
    --accent: #d99a79;
    --accent-ink: #1c1917;
    --rule: #38312b;
    --card: #26211d;
    --focus: #d99a79;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ---- Frame -------------------------------------------------------------- */

.site-header,
main,
.site-footer { max-width: 42rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

.site-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; padding-bottom: 1rem;
}

.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  font-size: 1.55rem; font-weight: 600; letter-spacing: .01em;
  color: var(--text); text-decoration: none;
}

.site-nav { display: flex; gap: 1.2rem; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

main { padding-top: 1.5rem; padding-bottom: 4rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem; padding-bottom: 3rem;
  color: var(--muted); font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---- Type --------------------------------------------------------------- */

h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 6vw, 2.7rem); margin: .35rem 0 .5rem; letter-spacing: -.005em; }
h2 { font-size: 1.4rem; margin: 2.6rem 0 .6rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.02rem; font-family: inherit; margin: 1.5rem 0 .3rem; }
p, li { margin: .65rem 0; }
ul, ol { padding-left: 1.3rem; }

.eyebrow { margin: 0; color: var(--accent); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.meta { color: var(--muted); margin: 0 0 1.6rem; font-size: .95rem; }
.lede { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }

/* ---- Pieces ------------------------------------------------------------- */

.hero { padding: 2.2rem 0 1rem; }
.hero .lede { max-width: 34rem; }

.panel, .summary, .note {
  background: var(--card); border-radius: 14px; padding: .5rem 1.3rem; margin: 1.6rem 0;
}
.panel > :first-child, .summary > :first-child, .note > :first-child { margin-top: .9rem; }
.panel > :last-child, .summary > :last-child, .note > :last-child { margin-bottom: .9rem; }
.summary h2 { border: 0; margin: 1rem 0 .2rem; padding: 0; }

.features { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.features li { margin: 0; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: 14px; }
.features h3 { margin: 0 0 .25rem; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif; font-size: 1.15rem; }
.features p { margin: 0; color: var(--muted); }

.button {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; min-height: 44px;
}
.button:hover { filter: brightness(1.06); }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

.soon { display: inline-block; color: var(--muted); border: 1px dashed var(--rule); border-radius: 999px; padding: .5rem 1rem; font-size: .95rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }

details { border-top: 1px solid var(--rule); padding: .9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; list-style-position: inside; padding: .1rem 0; }
summary:focus-visible { outline-offset: 4px; }
details p { margin: .6rem 0 0; color: var(--text); }

/* ---- The invite page ------------------------------------------------------ */

.code-card { text-align: center; padding: 1.6rem 1.2rem; }
.code {
  font: 600 clamp(1.7rem, 8.5vw, 2.5rem)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .12em; margin: .3rem 0 1.1rem; user-select: all; word-break: break-all;
}
.actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.status { min-height: 1.5rem; margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }
.steps { padding-left: 1.4rem; }
.steps li { margin: .8rem 0; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter .15s ease; }
}

@media print {
  .site-nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
