/* Expositly's homepage. Ink on parchment; rubric red only for the main point. */
:root {
  --bg: #f3eee6;
  --band: #ebe4d8;
  --sheet: #ffffff;
  --text: #1e1b18;
  --muted: #6e6862;
  --line: #ddd4c6;
  --ink: #1e1b18;
  --on-ink: #f4eee3;
  --rubric: #b3261e;
  --main-soft: rgba(179, 38, 30, 0.08);
  --bracket: #57524c;
  --focus: #1e1b18;
  --ui: Outfit, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --greek: "Noto Serif", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --band: #1e1b18;
    --sheet: #26231f;
    --text: #f1ebe0;
    --muted: #a69e93;
    --line: #3a352f;
    --ink: #f1ebe0;
    --on-ink: #1e1b18;
    --rubric: #e04a3f;
    --main-soft: rgba(224, 74, 63, 0.15);
    --bracket: #b9b2a7;
    --focus: #f1ebe0;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--ui); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.rubric { color: var(--rubric); }
.rubric-fill { fill: var(--rubric); }
.greek { font-family: var(--greek); }
.muted { color: var(--muted); }

/* The logo: the ΕΞ mark and the wordmark */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark { fill: currentColor; width: 30px; height: 30px; flex: none; }
.word { font-weight: 600; font-size: 30px; letter-spacing: -0.03em; line-height: 1; transform: translateY(-1px); }
.lockup.small .mark { width: 22px; height: 22px; }
.lockup.small .word { font-size: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent; font: 600 16.5px var(--ui); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background-color 0.12s ease; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-ink:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-quiet { border-color: var(--line); color: var(--text); background: transparent; }
.btn-quiet:hover { border-color: var(--muted); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.top-links { display: flex; align-items: center; gap: 18px; }
.signin { font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--text); padding: 8px 2px; }
.signin:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: 40px 88px; }
.kicker { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -0.035em; }
.lede { font-size: 20px; color: var(--text); margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { margin: 0; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 18px 40px -24px rgba(30, 27, 24, 0.35); }
.card-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.card-head .ref { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.pill { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--muted); }
.bracket { display: block; width: 100%; height: auto; }
.bracket .main-bg { fill: var(--main-soft); }
.bracket .lines path { fill: none; stroke: var(--bracket); stroke-width: 1.6; stroke-linejoin: round; }
.bracket .chips rect { fill: var(--sheet); stroke: var(--bracket); stroke-width: 1.2; }
.bracket .chips text { fill: var(--text); font: 600 10.5px var(--ui); text-anchor: middle; dominant-baseline: central; }
.bracket .verse text { fill: var(--text); font: 15.5px var(--serif); }
.bracket .verse .main { font-weight: 700; }
.bracket .verse .vn { font: 700 9.5px var(--ui); fill: var(--muted); }
.hero-art figcaption { font-size: 14.5px; color: var(--muted); margin: 14px 6px 0; }

/* The idea: ἐξ */
.idea { background: var(--band); border-block: 1px solid var(--line); }
.idea-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px; }
.ex { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 0 12px; }
.ex .greek { font-size: 104px; line-height: 1; font-weight: 500; }
.ex .gloss { font-size: 16px; font-weight: 500; color: var(--rubric); letter-spacing: 0.04em; text-transform: uppercase; }
.idea h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.idea p { max-width: 38em; }
.idea .aside { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* How it works */
.how { padding-block: 96px 88px; }
.how > h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 36px; max-width: 18em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--muted); }
.extras { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 16px; color: var(--muted); }
.extras b { color: var(--text); font-weight: 600; }

/* Early access */
.join { background: var(--band); border-top: 1px solid var(--line); }
.join-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding-block: 88px; align-items: start; }
.join h2 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 16px; }
.join-copy p { color: var(--muted); max-width: 24em; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.form .wide { grid-column: 1 / -1; }
.form .opt { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.form input, .form select, .form textarea { font: 400 16.5px var(--ui); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 48px; }
.form textarea { resize: vertical; min-height: 92px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.status { font-size: 15px; color: var(--rubric); }
.status:empty { display: none; }
.fine { font-size: 13.5px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; text-align: center; }
.thanks:focus { outline: none; }
.thanks .mark { width: 44px; height: 44px; margin-bottom: 16px; }
.thanks h2 { font-size: 32px; margin-bottom: 10px; }
.thanks p { color: var(--muted); max-width: 26em; margin-inline: auto; }

/* Footer */
.foot { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 36px 48px; font-size: 14.5px; }
.foot p:first-of-type { margin-right: auto; }

/* Narrower screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top { padding-block: 16px; }
  .word { font-size: 25px; }
  .mark { width: 25px; height: 25px; }
  .top .btn-small { padding: 0 12px; font-size: 14px; }
  .top-links { gap: 12px; }
  .top-links .signin { font-size: 15px; }
  .top-links .btn { display: none; } /* the hero's own button is just below */
  .lede { font-size: 18px; }
  .idea-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 52px; }
  .ex { flex-direction: row; align-items: baseline; gap: 14px; padding: 0; }
  .ex .greek { font-size: 72px; }
  .how { padding-block: 64px; }
  .steps, .extras { grid-template-columns: minmax(0, 1fr); }
  .join-in { padding-block: 60px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .card { padding: 12px 10px 10px; }
  .foot p:first-of-type { margin-right: 0; }
}
