/* Hallmark · macrostructure: Letter · H5 knobs: salutation=greeting, body=3 paragraphs, signoff=typed name
 * nav: N9 Edge-aligned minimal · footer: Ft2 Inline single line · C2 knobs: fields=3, submit=separate line, helper=below
 * F3 knobs: columns=2 (name/value), rules=every row · theme: studied-DNA (the EDatHand public site,
 * apps/web/app/(marketing)/marketing.css) · paper oklch(100% 0 0) · ink oklch(20% 0.004 90) · Inter + Inter
 * tone: soft · anchor hue: none (ink on paper, module tones as content accents) · enrichment: none
 * pre-emit critique: P4 H4 E4 S4 R5 V4
 *
 * The EDatHand landing page while the product is in private beta. One explicit light theme, the same
 * tokens the public site in the app uses, so the two read as one product. Plain spoken copy, sentence
 * case, no em dashes, no semicolons in visible text.
 */

:root {
  color-scheme: light;

  --canvas: oklch(100% 0 0);
  --wash: oklch(97.6% 0.002 90);
  --soft: oklch(95.5% 0.003 90);
  --soft-hover: oklch(91% 0.003 90);
  --ink: oklch(20% 0.004 90);
  --ink-hover: oklch(34% 0.004 90);
  --ink-2: oklch(38% 0.004 90);
  --ink-3: oklch(48% 0.004 90);
  --on-ink: oklch(100% 0 0);
  --line: oklch(92% 0.003 90);
  --line-2: oklch(85% 0.004 90);
  --error: oklch(46% 0.18 27);
  --ok: oklch(39% 0.11 160);
  --selection: oklch(95.5% 0.03 250);

  /* one soft tone per part of the workspace, the same values the product site uses */
  --t-announcements: oklch(95.5% 0.045 70);
  --t-announcements-ink: oklch(46% 0.13 55);
  --t-forms: oklch(95.5% 0.03 250);
  --t-forms-ink: oklch(43% 0.16 258);
  --t-requests: oklch(95.5% 0.03 305);
  --t-requests-ink: oklch(43% 0.17 305);
  --t-calendar: oklch(95.5% 0.04 160);
  --t-calendar-ink: oklch(39% 0.11 160);
  --t-kudos: oklch(95.5% 0.035 8);
  --t-kudos-ink: oklch(46% 0.18 10);
  --t-newsletter: oklch(95.5% 0.04 95);
  --t-newsletter-ink: oklch(42% 0.1 90);
  --t-resources: oklch(95.5% 0.03 215);
  --t-resources-ink: oklch(40% 0.1 215);
  --t-directory: oklch(95.5% 0.008 255);
  --t-directory-ink: oklch(38% 0.03 255);

  /* three staff faces on the sketch, tinted the way the product tints avatars */
  --face-1: oklch(86% 0.08 168);
  --face-2: oklch(86% 0.08 70);
  --face-3: oklch(86% 0.07 300);
  --shadow: 0 0.7px 1.5px oklch(20% 0.004 90 / 0.04), 0 3px 9px oklch(20% 0.004 90 / 0.06), 0 13px 28px -6px oklch(20% 0.004 90 / 0.08);

  --font-body: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-body);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-fine: 0.875rem;
  --text-lede: clamp(1.9rem, 1.1rem + 3vw, 3rem);
  --text-h2: clamp(1.35rem, 1rem + 1.2vw, 1.75rem);
  --text-read: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);

  --radius: 8px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 150ms;
  --dur-press: 100ms;
  --dur-enter: 500ms;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  overflow-x: clip;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p,
dl,
dt,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

a {
  color: inherit;
}

/* The hidden attribute wins over any display rule below (the thanks line, the fields after sending). */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--selection);
}

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

.wrap {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .wrap {
    width: min(100% - 3rem, 62rem);
  }
}

/* The writing column. It sits on the left of the page and leaves the right side quiet. */
.col {
  max-width: 44rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 2;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* ------------------------------------------------------------- header */
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: none;
}

/* The working E mark: three bars on a spine, the same shape the product site draws. */
.mark {
  display: inline-grid;
  align-content: space-between;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.51rem 0.46rem 0.51rem 0.57rem;
  border-radius: 0.5rem;
  background: var(--ink);
}

.mark span {
  display: block;
  height: 0.27rem;
  min-height: 2px;
  border-radius: 99px;
  background: var(--on-ink);
}

.mark span:nth-child(2) {
  width: 72%;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-small);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

.btn--ghost {
  background: var(--soft);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--on-ink);
}

@media (hover: hover) {
  .btn--ghost:hover {
    background: var(--soft-hover);
  }

  .btn--ink:hover {
    background: var(--ink-hover);
  }
}

.btn:active {
  transform: translateY(1px);
}

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

/* ------------------------------------------------------------- the hero: the claim and the scene */
.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem) 0;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-4);
  padding: 0.25rem 0.7rem 0.25rem 0.55rem;
  border-radius: 99px;
  background: var(--t-announcements);
  color: var(--t-announcements-ink);
  font-size: var(--text-fine);
  font-weight: 600;
}

.status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--t-announcements-ink);
}

.hero__title {
  max-width: 16ch;
  margin-bottom: var(--space-4);
  font-size: clamp(2.2rem, 1.2rem + 3.8vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 44ch;
  margin-bottom: var(--space-5);
  font-size: var(--text-read);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

@media (hover: hover) {
  .textlink:hover {
    text-decoration-thickness: 2.5px;
  }
}

.hero__art {
  width: min(100%, 30rem);
  margin-inline: auto;
}

@media (min-width: 60rem) {
  .hero__art {
    width: 100%;
    margin-inline: 0;
  }
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

/* every fill is a page token, so the scene changes with the palette */
.scene .sky { fill: var(--t-announcements); }
.scene .sun { fill: var(--t-announcements-ink); }
.scene .cloud { fill: var(--canvas); }
.scene .ground { fill: var(--t-calendar); }
.scene .wall { fill: var(--canvas); }
.scene .roof { fill: var(--t-requests-ink); }
.scene .bell { fill: var(--t-announcements-ink); }
.scene .door { fill: var(--t-requests-ink); }
.scene .step { fill: var(--line-2); }
.scene .win--amber { fill: var(--t-announcements-ink); }
.scene .win--blue { fill: var(--t-forms-ink); }
.scene .win--teal { fill: var(--t-calendar-ink); }
.scene .win--rose { fill: var(--t-kudos-ink); }
.scene .win--violet { fill: var(--t-requests-ink); }
.scene .bush { fill: var(--t-calendar-ink); }
.scene .trail { fill: none; stroke: var(--t-forms-ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 9; }
.scene .plane__body { fill: var(--t-forms-ink); }
.scene .plane__fold { fill: var(--t-forms); }
.scene .card rect { fill: var(--canvas); filter: drop-shadow(0 6px 12px oklch(20% 0.004 90 / 0.12)); }
.scene .icon--amber { fill: var(--t-announcements-ink); }
.scene .icon--violet circle { fill: var(--t-requests-ink); }
.scene .icon--violet .tick { fill: none; stroke: var(--on-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.scene .icon--rose { fill: var(--t-kudos-ink); }

/* two small loops: the plane drifts, the cards bob. Nothing else on the page moves after load. */
@media (prefers-reduced-motion: no-preference) {
  .scene .plane {
    animation: drift 7s var(--ease-out) infinite alternate;
    transform-origin: 640px 130px;
  }

  .scene .card {
    animation: bob 4.5s ease-in-out infinite alternate;
  }

  .scene .card--2 {
    animation-delay: 0.8s;
  }

  .scene .card--3 {
    animation-delay: 1.6s;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    transform: translate(-14px, 10px) rotate(-4deg);
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-7px);
  }
}

/* ------------------------------------------------------------- the letter */
.letter {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.salutation {
  margin-bottom: var(--space-5);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.lede {
  max-width: 21ch;
  margin-bottom: var(--space-5);
  font-size: var(--text-lede);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.letter .body {
  max-width: 52ch;
  font-size: var(--text-read);
  line-height: 1.6;
}

.letter .body + .body {
  margin-top: 1.1em;
}

.signoff {
  margin-top: var(--space-6);
  font-weight: 600;
  color: var(--ink-2);
}

/* the letter's separator, three short bars like the mark laid on its side */
.divider {
  display: flex;
  gap: 0.45rem;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.divider span {
  width: 1.6rem;
  height: 0.3rem;
  border-radius: 99px;
  background: var(--line-2);
}

.divider span:nth-child(2) {
  width: 1.15rem;
}

/* ------------------------------------------------------------- what is inside */
.parts h2,
.notify h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro {
  max-width: 52ch;
  margin-bottom: var(--space-5);
  color: var(--ink-2);
}

.sheet {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .row {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: baseline;
  }
}

.row dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.row dd {
  color: var(--ink-2);
}

.dot {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: var(--tone-ink);
}

[data-tone='announcements'] { --tone-ink: var(--t-announcements-ink); --tone-wash: var(--t-announcements); }
[data-tone='forms'] { --tone-ink: var(--t-forms-ink); --tone-wash: var(--t-forms); }
[data-tone='requests'] { --tone-ink: var(--t-requests-ink); --tone-wash: var(--t-requests); }
[data-tone='calendar'] { --tone-ink: var(--t-calendar-ink); --tone-wash: var(--t-calendar); }
[data-tone='kudos'] { --tone-ink: var(--t-kudos-ink); --tone-wash: var(--t-kudos); }
[data-tone='newsletter'] { --tone-ink: var(--t-newsletter-ink); --tone-wash: var(--t-newsletter); }
[data-tone='resources'] { --tone-ink: var(--t-resources-ink); --tone-wash: var(--t-resources); }
[data-tone='directory'] { --tone-ink: var(--t-directory-ink); --tone-wash: var(--t-directory); }

/* ------------------------------------------------------------- the form */
.notify {
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
  scroll-margin-top: var(--space-6);
}

.panel {
  max-width: 40rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--wash);
}

.panel h2 {
  margin-bottom: var(--space-5);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.field label {
  font-size: var(--text-small);
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field input[type='email'],
.field input[type='text'] {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: background-color var(--dur-short) var(--ease-out);
}

@media (hover: hover) {
  .field input:hover {
    background: var(--soft);
  }
}

.field input:focus-visible {
  outline-color: var(--ink);
  outline-offset: 1px;
  border-color: var(--ink-2);
  border-radius: var(--radius);
}

.field input[aria-invalid='true'] {
  border-color: var(--error);
}

.helper {
  min-height: 1lh;
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--ink-3);
}

.helper[data-tone='error'] {
  color: var(--error);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  margin: var(--space-1) 0 var(--space-4);
  padding-block: var(--space-2);
  font-size: var(--text-small);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ink);
}

/* The honeypot. display none keeps it out of the tab order and the accessibility tree alike. */
.hp {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.note {
  min-height: 1lh;
  margin-top: var(--space-3);
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--ink-3);
}

.note[data-tone='error'] {
  color: var(--error);
}

.done {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
}

.done svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  color: var(--ok);
}

/* ------------------------------------------------------------- footer */
.foot {
  margin-top: auto;
  padding-block: var(--space-6) max(var(--space-6), env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: var(--text-fine);
  color: var(--ink-3);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem var(--space-5);
}

/* ------------------------------------------------------------- one entrance, then stillness */
@media (prefers-reduced-motion: no-preference) {
  .letter > * {
    animation: rise var(--dur-enter) var(--ease-out) both;
  }

  .letter > :nth-child(2) {
    animation-delay: 60ms;
  }

  .letter > :nth-child(3) {
    animation-delay: 120ms;
  }

  .letter > :nth-child(4) {
    animation-delay: 180ms;
  }

  .letter > :nth-child(5) {
    animation-delay: 240ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- small pages (thanks, not found) */
.plain {
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.plain h1 {
  max-width: 24ch;
  margin-bottom: var(--space-4);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.plain p {
  max-width: 52ch;
  color: var(--ink-2);
}

.plain .btn {
  margin-top: var(--space-5);
}
