:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: rgba(28, 25, 21, 0.16);
  --paper: #faf7f1;
  --display: "Newsreader", "Iowan Old Style", Palatino, serif;
  --font: "Atkinson Hyperlegible", "Avenir Next", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.45;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.75rem;
}

.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.top {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 4vw;
}

.lockup {
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.text-link {
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

main { flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 6.2rem 4vw 2.2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.ii {
  font-family: var(--font);
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  max-width: 28ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.desk { min-width: 0; }

.log {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  max-height: 38svh;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.log li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.who {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.log p { margin: 0; }

.empty { color: var(--muted); display: block; }

.ask { display: grid; gap: 0.55rem; }

label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 6.2rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

#send {
  justify-self: start;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#send:hover { background: #312c26; }
#send:disabled { opacity: 0.55; cursor: progress; }

.uses {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(16rem, 1.25fr);
  gap: 2rem 3rem;
  align-items: end;
  padding: 2.4rem 4vw 3.2rem;
  border-top: 1px solid var(--line);
}

.uses h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.uses p {
  margin: 0.55rem 0 0;
  max-width: 28ch;
  color: var(--muted);
}

.chips { display: flex; flex-direction: column; align-items: flex-start; }

.chip {
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  text-align: left;
  cursor: pointer;
}

.chip:hover { color: var(--muted); }

.foot {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 4vw 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.legal { margin: 0; max-width: 62rem; }

.docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.docs a { color: inherit; }

.note {
  margin: 0.15rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.note a { color: inherit; }

body:has(#cookieBar) { padding-bottom: 5.4rem; }

.cookie-bar {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 4vw;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
}

.cookie-bar p { margin: 0; max-width: 68ch; }

.cookie-bar a { color: inherit; }

#cookieBarOk {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.doc {
  width: min(40rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 6.2rem 0 3rem;
}

.doc h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.doc p, .doc li { font-size: 1.05rem; }

.doc ul { margin: 0; padding-left: 1.15rem; }

.doc li { margin: 0.7rem 0; }

.doc a { color: inherit; }

@media (max-width: 800px) {
  .cookie-bar { align-items: flex-start; flex-direction: column; }
  .doc { padding-top: 5.2rem; }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 5.2rem 1.2rem 1.4rem;
  }
  h1 { font-size: clamp(3.4rem, 16vw, 4.6rem); }
  .uses { grid-template-columns: 1fr; }
  #send { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
