/* Hallmark · shape: document cover · theme: archive palette · signature: oversized editorial headline above the archive entry · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: specificity; the copy names Gmail's permissions and archive search. */
:root {
  color-scheme: light;
  --color-paper: #faf9f7;
  --color-ink: #202024;
  --color-muted: #514e56;
  --color-rule: #d3cfd5;
  --color-accent: #58439c;
  --color-accent-hover: #423279;
  --color-selected: #e9e2f7;
  --color-accent-ink: #fcfaff;
  --font-body: system-ui, sans-serif;
  --font-display: Georgia, serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); }
::selection { background: var(--color-selected); color: var(--color-ink); }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 1rem/1.65 var(--font-body);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--color-accent-hover); }
a:active { text-decoration-thickness: 0.16em; }

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.shell {
  width: min(56rem, 100% - 2.5rem);
  margin-inline: auto;
}

.mast, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.mast { border-bottom: 1px solid var(--color-rule); }

.mast a, .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.wordmark {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.wordmark:hover { text-decoration: underline; }

.intro { padding-block: clamp(3.5rem, 10vw, 8rem) clamp(2.5rem, 6vw, 4.5rem); }

h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }

h1 {
  min-width: 0;
  max-width: 12ch;
  overflow-wrap: break-word;
  font: 400 clamp(3rem, 9vw, 7.5rem)/0.96 var(--font-display);
  letter-spacing: -0.04em;
}

.intro p, .lead {
  margin-block-start: 1.5rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block-start: 1.75rem;
  padding: 0.45rem 1rem;
  border-radius: 0.25rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 650;
  text-decoration: none;
}

.action:hover {
  background: var(--color-accent-hover);
  color: var(--color-accent-ink);
}

.action:active { background: var(--color-ink); }

.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem 1.5rem;
  border-block: 1px solid var(--color-rule);
  padding-block: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.note p, .document section p {
  max-width: 65ch;
  overflow-wrap: anywhere;
}

.document {
  padding-block: clamp(2rem, 7vw, 5rem);
  border-bottom: 1px solid var(--color-rule);
}

.document h1 {
  max-width: none;
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.document section { margin-block-start: 2rem; }
.document section p { margin-block-start: 0.6rem; }

.footer { justify-content: flex-start; }

@media (max-width: 38rem) {
  .note { grid-template-columns: minmax(0, 1fr); }
}
