/*
 * The homepage's paper. Same tokens as the app (frontend/src/index.css):
 * warm-neutral paper, ink, one serif for reading, one mono for chrome.
 * Shared with the legal pages. Homepage layout and interactions live in
 * landing.css and landing.js. The only third-party assets are the two
 * Google Fonts the app itself loads.
 */
:root {
  color-scheme: only light;
  --paper: #e8e6e2;
  --ink: #1b1916;
  --ink-muted: #5b5955;
  --ink-faint: #878581;
  --hairline: #a4a29e;
  --wash: #d9d7d3;
  --serif: "Literata", Georgia, Cambria, "Times New Roman", serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Masthead: the name, the beta label, the two doors. */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Keep .wrap's side gutter: this rule wins over it at equal specificity. */
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  width: 20px;
  height: 23px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.beta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}
.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.door {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  white-space: nowrap;
}
.door:hover { background: var(--wash); }
.door.quiet { border-color: var(--hairline); color: var(--ink-muted); }

main { flex: 1; padding: 2.25rem 0 3rem; }

h1 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 2.25rem 0 0.6rem;
}
h3 { font-size: 1.05rem; font-weight: 500; margin: 1.5rem 0 0.4rem; }
p, li { margin: 0 0 0.85rem; }
ul { padding-left: 1.2rem; }
.lede { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.92rem; }

.doors { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; }
.door.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.door.primary:hover { background: #2b2926; }

.notice {
  border-left: 2px solid var(--hairline);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--ink-muted);
  margin: 1.5rem 0;
}

dl { margin: 0 0 1rem; }
dt { font-weight: 500; margin-top: 0.8rem; }
dd { margin: 0.15rem 0 0; color: var(--ink-muted); }

/* The contact form: the same ink lines as the app's fields. */
.contact-form { margin: 1.5rem 0; }
.contact-form .field { margin: 0 0 1.1rem; }
.contact-form label { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--hairline); padding: 0.5rem 0.25rem; border-radius: 0; }
.contact-form textarea { border: 1px solid var(--hairline); padding: 0.6rem; resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .hint { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--ink-muted); }
.contact-form .field-extra { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink-muted); margin: 0.25rem 0 0.75rem; }
.contact-form button { cursor: pointer; font-family: var(--mono); }
.contact-form button:disabled { opacity: 0.5; cursor: default; }

footer {
  border-top: 1px solid var(--hairline);
  padding: 1.25rem 0 2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  html { font-size: 16px; }
  .masthead { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  h1 { font-size: 1.7rem; }
}
