/* Hallmark · v2.0.0 · theme: specimen (structure) · genre: editorial · job: register interest · custom: brand palette — alabaster paper, charcoal ink, terracotta signal in place of the theme's ink blue */
/* critique: one screen and one offer — the 50% is the only large object, the headline names the product, and nothing else competes for the eye */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --paper: #f8f5ee;
  --paper-2: #f1ece0;
  --ink: #242426;
  --ink-2: #35353a;
  --muted: #6b6862;
  --rule: rgba(36, 36, 38, 0.16);
  --rule-2: rgba(36, 36, 38, 0.38);
  --accent: #b85738;
  --paper-ink: #f8f5ee;
  --danger: #8f2f1d;

  --font-display: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-s: 0.8125rem;
  --text-body: 1.0625rem;
  --text-h1: clamp(2.5rem, 5vw, 4.4rem);

  --space-s: 0.875rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;

  --rule-hair: 1px;
  --radius: 0;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);
}

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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip-path: none;
  background: var(--ink);
  color: var(--paper-ink);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Nav */

.nav {
  border-bottom: var(--rule-hair) solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

/* The one screen */

.single {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 4.65rem);
  padding-block: clamp(2rem, 6vw, 4rem);
}

.single-inner {
  max-width: 58rem;
}

.single h1 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 96;
  overflow-wrap: break-word;
  min-width: 0;
}

/* The offer */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border-top: var(--rule-hair) solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.offer-figure {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variation-settings: "opsz" 96;
}

.offer-figure span {
  font-size: 0.52em;
  vertical-align: 0.36em;
  letter-spacing: 0;
}

.offer-copy p {
  margin: 0;
}

.offer-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 26ch;
}

.offer-copy p + p {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 42ch;
}

/* The register form */

.register {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 30rem;
}

.field {
  display: flex;
  border: var(--rule-hair) solid var(--ink);
  background: var(--paper);
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  outline: none;
}

.field:focus-within {
  box-shadow: var(--focus);
}

.btn {
  appearance: none;
  border: var(--rule-hair) solid var(--ink);
  background: var(--ink);
  color: var(--paper-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

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

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

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.fine {
  margin: 0.75rem 0 0;
  font-size: var(--text-s);
  color: var(--muted);
  line-height: 1.5;
}

.status {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.4em;
}

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

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

.form-done {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: var(--rule-hair) solid var(--rule-2);
  padding: 1.25rem 1.35rem;
  max-width: 30rem;
}

.form-done p {
  margin: 0;
}

.form-done .done-head {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

/* Footer */

.footer {
  background: var(--ink);
  color: var(--paper-ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer .wordmark {
  grid-column: 1 / span 4;
  grid-row: 1;
  color: var(--paper-ink);
}

.footer-note {
  grid-column: 1 / span 4;
  grid-row: 2;
  margin: 0.75rem 0 0;
  font-size: var(--text-s);
  color: rgba(248, 245, 238, 0.68);
  max-width: 26ch;
}

.footer-links {
  grid-column: 8 / span 5;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.9375rem;
  color: rgba(248, 245, 238, 0.82);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper-ink);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.25rem;
  border-top: var(--rule-hair) solid rgba(248, 245, 238, 0.22);
  font-size: var(--text-s);
  color: rgba(248, 245, 238, 0.6);
  max-width: 68ch;
}

/* Document pages */

.doc {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.doc-inner {
  max-width: 44rem;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.doc .effective {
  margin: 0 0 2.5rem;
  font-size: var(--text-s);
  color: var(--muted);
}

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
}

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

.doc p {
  margin: 0 0 1rem;
}

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

.doc li {
  margin-bottom: 0.5rem;
}

.doc .callout {
  border: var(--rule-hair) solid var(--rule);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}

.doc .callout p:last-child {
  margin-bottom: 0;
}

/* Thanks + 404 */

.notice {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.notice h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

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

/* Responsive */

@media (max-width: 48rem) {
  .single {
    align-items: start;
    padding-block: clamp(2rem, 8vw, 3.5rem) 4rem;
  }

  .offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .offer-figure {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer .wordmark,
  .footer-note,
  .footer-links {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

@media (max-width: 34rem) {
  .field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    gap: 0.6rem;
  }

  .field input {
    border: var(--rule-hair) solid var(--ink);
    background: var(--paper);
  }

  .btn {
    width: 100%;
  }
}

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