/* Make It Personal sales page: base, masthead and the lawn-sign hero.
   Tokens from DESIGN.md; colors only via custom properties. */

@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('fonts/big-shoulders-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
}

:root {
  /* Red, white and blue (Joe, 2026-10-25). Navy leads; red is an accent: buttons, the sign's band,
     thin rules. */
  --navy: #0b2a5b;
  --navy-deep: #071d40;
  --on-navy: #ffffff;
  --red: #c8102e;
  --red-hover: #a10c24;
  --on-red: #ffffff;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #0e1f3d;
  --ink-muted: #4a5568;
  --navy-tint: #e9eef6;
  --rule: #d6dce6;
  --rule-on-navy: rgba(255, 255, 255, 0.35);
  --stake: #7d838c;
  --sign-shadow: 0 1px 0 var(--navy-deep), 0 12px 20px -12px rgba(7, 29, 64, 0.45);

  /* Only inside the product mock-up: a demo campaign's colors on the product's own paper. */
  --demo-brand: #4a2a5c;
  --demo-brand-tint: #f2edf5;
  --demo-on-brand: #ffffff;
  --demo-surface: #ffffff;
  --demo-voted: #1e6a3b;
  --demo-paper: #faf8f4;
  --demo-rule: #ddd8cf;
  --demo-ink: #1b1d20;
  --demo-muted: #4a5057;
  --demo-chip: #ecebe7;

  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;

  --gutter: 16px;
  --sign-radius: 6px;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --box: min(1360px, 100% - 2 * var(--gutter));
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.55;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hidden until focused (review round 1, finding 11). */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--red);
}

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

.headline {
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

/* em, not ch: Atkinson's zero is narrow, so 62ch let lines run to about 90 characters. */
.lead {
  max-width: 34em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--red);
  color: var(--on-red);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

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

/* ---- Masthead: white, a thin red rule on top and a hairline under ---- */

.masthead {
  background: var(--white);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  width: var(--box);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding: 10px 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  margin-right: auto;
}

/* Phones: the section links take a second row (review R2-1). */
.masthead-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 28px;
}

.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  font-size: 1rem;
}

.btn-small {
  min-height: 48px;
  padding: 10px 16px;
}

/* ---- Hero: the lawn sign, then the sub-line and the action ---- */

.hero {
  width: var(--box);
  margin-inline: auto;
  padding: 32px 0 var(--section);
  display: grid;
  gap: 40px;
}

.yard {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* A printed 3:2 sign: navy face, red band, white keyline (all in the SVG), one soft shadow. */
.yard-sign {
  position: relative;
  z-index: 1;
  width: 94%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--sign-shadow);
}

.yard-head {
  margin: 0;
}

.yard-head svg {
  display: block;
  width: 100%;
  height: auto;
}

.sign-face {
  fill: var(--navy);
}

.sign-band {
  fill: var(--red);
}

.sign-keyline {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
}

.sign-line {
  font-family: var(--display);
  font-weight: 800;
  fill: var(--on-navy);
}

.sign-l3 {
  font-weight: 900;
}

.yard-stake {
  display: block;
  width: 94%;
  height: clamp(56px, 9vw, 104px);
  margin-top: -2px;
  fill: none;
  stroke: var(--stake);
  stroke-width: 2px;
}

.yard-stake path {
  vector-effect: non-scaling-stroke;
}

/* A quiet ground line where the stake goes in. */
.yard-ground {
  width: 100%;
  border-top: 2px solid var(--rule);
}

.hero-second {
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero-text p {
  max-width: 34em;
}

.hero-text .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.hero-more {
  margin: 0.75rem 0 0;
}

.hero-more a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

/* Phones: the wordmark holds one line beside the button. */
@media (max-width: 479px) {
  .masthead-inner {
    gap: 0 12px;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .btn-small {
    padding-inline: 12px;
  }
}

@media (min-width: 640px) {
  .hero-text .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .masthead-inner {
    padding: 12px 0;
  }

  .masthead-nav {
    order: 0;
    flex-basis: auto;
    margin-right: 12px;
  }
}

/* Desktop: the sign stands on its ground line at the left; the words and the slate sit beside it. */
@media (min-width: 1024px) {
  .hero {
    padding-top: 56px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: end;
  }

  .yard-sign,
  .yard-stake {
    width: 92%;
  }
}
