@import "tokens.css";

/* Hallmark · macrostructure: Photographic · H6 Photographic Fold · knobs: caption=corner-chip, bleed=full, object=top
 * theme: custom · vibe: "cream desk light, quiet sit, on-device" · paper: oklch(96.2% 0.018 92) · accent: oklch(46% 0.12 148)
 * display: Fraunces · body: Switzer · axes: light / roman-serif / chromatic-green ~148°
 * genre: editorial · enrichment: none · nav: N6 · footer: Ft5
 * studied: no · context: waitlist launch, three photographs · v1.1.0
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  background: var(--color-paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
.mast-name,
.foot-stmt__line {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  line-height: 1.08;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
}

p {
  margin: 0;
}

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (hover: hover) {
  a:hover {
    color: var(--color-ink-2);
  }
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 20;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.skip:focus-visible {
  color: var(--color-paper);
  outline-color: var(--color-accent);
}

/* N6 newspaper masthead */
.nav-mast {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-lg) var(--page-gutter) 0;
  text-align: center;
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.mast-line {
  margin: 0;
  font-size: var(--text-xs);
  font-variant: small-caps;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
  max-width: 100%;
}

.mast-brand {
  display: grid;
  justify-items: center;
  justify-self: center;
  gap: var(--space-xs);
  width: max-content;
  text-decoration: none;
  color: var(--color-ink);
}

.mast-brand:hover,
.mast-brand:active {
  color: var(--color-ink);
  transform: none;
}

.mast-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-icon);
}

.mast-name {
  font-size: var(--text-display);
  font-weight: 700;
  margin: 0;
  line-height: 0.95;
  overflow-wrap: normal;
}

.mast-nav {
  width: 100%;
  min-width: 0;
}

.mast-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0;
  width: 100%;
  max-width: 22rem;
  min-width: 0;
}

.mast-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
  padding: var(--space-xs) 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.mast-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.mast-rule {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  height: 4px;
  width: 100%;
  margin: var(--space-sm) 0 0;
}

/* Photographic folds */
.photo-fold {
  position: relative;
  min-height: 70dvh;
}

.photo-fold .bleed {
  width: 100%;
  height: 70dvh;
  min-height: 22rem;
  object-fit: cover;
  object-position: center top;
}

.photo-fold--back .bleed {
  object-position: center 30%;
}

.caption {
  position: absolute;
  bottom: var(--space-md);
  left: var(--page-gutter);
  margin: 0;
  max-width: 22ch;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.35;
  animation: caption-in var(--dur-long) var(--ease-out) both;
}

.text-fold {
  padding: var(--space-2xl) var(--page-gutter);
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

#waitlist {
  scroll-margin-top: var(--space-lg);
}

.kicker {
  font-size: var(--text-xs);
  font-variant: small-caps;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}

.lede {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.45;
}

.prose {
  max-width: var(--measure);
  color: var(--color-ink-2);
}

.prose + .prose {
  margin-top: 0;
}

.text-cta {
  font-size: var(--text-sm);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-xs) var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-in-out),
    color var(--dur-micro) var(--ease-in-out);
}

.btn:focus {
  outline: none;
}

@media (hover: hover) {
  .btn:hover {
    background: var(--color-ink-2);
    color: var(--color-paper);
  }
}

.btn:active {
  background: var(--color-neutral);
  transform: translateY(1px);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.waitlist {
  display: grid;
  gap: var(--space-xs);
  width: 100%;
  max-width: 28rem;
  min-width: 0;
}

.waitlist-row {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
}

.waitlist-field {
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
}

.waitlist-field label {
  font-size: var(--text-xs);
  font-variant: small-caps;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}

.waitlist input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  padding-inline-end: 2.25rem;
  border: var(--rule-fine) solid var(--color-rule-2);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.waitlist input[type="email"]::placeholder {
  color: var(--color-muted);
}

@media (hover: hover) {
  .waitlist input[type="email"]:hover:not(:disabled):not(:focus-visible) {
    background: var(--color-paper-2);
  }
}

.waitlist input[type="email"]:focus {
  outline: none;
}

.waitlist input[type="email"]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-ink-2);
}

.waitlist input[type="email"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.waitlist input[type="email"][aria-invalid="true"] {
  border-color: var(--color-error);
}

.waitlist .btn:disabled,
.waitlist[data-state="loading"] .btn,
.waitlist[data-state="success"] .btn {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.waitlist-status {
  min-height: 1.4lh;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: var(--measure);
}

.waitlist-status[data-state="error"] {
  color: var(--color-error);
}

.waitlist-status[data-state="success"] {
  color: var(--color-accent);
}

.waitlist-status a {
  color: inherit;
}

/* Legal / support documents */
.doc {
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
}

.doc__head {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.doc__meta {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.doc__body {
  display: grid;
  gap: var(--space-lg);
  max-width: var(--measure);
}

.doc__body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-md);
}

.doc__body p,
.doc__body li {
  color: var(--color-ink-2);
}

.doc__body ul {
  margin: 0;
  padding-left: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
}

.address {
  display: grid;
  gap: var(--space-3xs);
  font-style: normal;
}

/* Ft5 statement footer */
.foot-stmt {
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  background: var(--color-paper-2);
}

.foot-stmt__line {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1;
  max-width: 16ch;
  margin: 0;
}

.foot-stmt__meta {
  display: grid;
  gap: var(--space-md);
  padding-block-start: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.foot-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-icon);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  min-width: 0;
}

.foot-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.colophon {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: grid;
  gap: var(--space-2xs);
  max-width: 42ch;
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .caption {
    animation: none;
  }

  a:active,
  .btn:active {
    transform: none;
  }
}

@media (min-width: 40rem) {
  .photo-fold .bleed {
    height: 78dvh;
  }

  .caption {
    max-width: 28ch;
  }

  .mast-icon {
    width: 4rem;
    height: 4rem;
  }

  .mast-nav ul {
    max-width: none;
    gap: var(--space-xs) var(--space-lg);
  }

  .waitlist-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 60rem) {
  .photo-fold .bleed {
    height: 86dvh;
  }

  .text-fold {
    padding-block: var(--space-3xl);
  }

  .text-fold .lede,
  .text-fold .prose,
  .text-fold .btn,
  .text-fold .text-cta,
  .text-fold .waitlist {
    margin-inline-start: var(--prose-indent);
  }

  .text-fold .kicker {
    margin-inline-start: var(--prose-indent);
  }

  .doc__head,
  .doc__body {
    margin-inline-start: var(--prose-indent);
  }

  .foot-stmt__meta {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
