/* ==========================================================================
   Feed — marketing site styles
   Palette: vermilion (brand, from logo) + warm neutrals — ink, paper, porcelain, butter
   Type: Inter throughout — weights 400 / 600 / 700
   ========================================================================== */

:root {
  /* --vermilion is the graphic accent only (stars, rules, focus ring, the h1
     <em>). It is too light to carry small text: 12px porcelain on it is 3.7:1,
     below the 4.5:1 WCAG AA floor. Anything with text on or in it uses the two
     darker shades below, both of which clear 4.5:1 against paper AND under
     porcelain text. Re-check with a contrast tool before changing these. */
  --vermilion: #ee461a;
  --vermilion-dark: #bc3715;
  --vermilion-deep: #a83012;
  --ink: #332e28;
  --ink-soft: #463f38;
  --paper: #eae8e5;
  --paper-deep: #ddd9d5;
  --porcelain: #fcfcfb;
  --butter: #f2b733;
  --muted: #6e6760;

  /* Single typeface across the whole site. Set once on `body`; everything
     inherits, so no other rule declares font-family. Typographic roles are
     carried by size, weight, letter-spacing and case instead. */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Clears the sticky masthead so in-page anchors (#product, #about, #contact)
     and keyboard focus don't land underneath it. */
  scroll-padding-top: 90px;
}

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

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

a { color: var(--vermilion-dark); }

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

/* The ring sits outside the element, so on the dark surfaces it lands on ink
   or ink-soft, where vermilion is only 2.8:1. Butter is 5.8:1 on both. */
.band--dark :focus-visible,
.colophon :focus-visible { outline-color: var(--butter); }

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--porcelain);
  padding: 10px 16px;
  z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- type roles ------------------------------------------------------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermilion-dark);
  margin: 0 0 18px;
}

.eyebrow--light { color: rgba(252, 252, 251, 0.72); }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; }

.lede {
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--ink);
}

/* --- header ----------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  /* White at 90% over --paper composites to ~#fdfdfc, so it reads as the same
     white as the docket cards while still letting content blur through. */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-deep);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 26px; width: auto; }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead__nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.masthead__nav a:hover { border-bottom-color: var(--vermilion); }

/* --- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--vermilion-dark);
  background: var(--vermilion-dark);
  color: var(--porcelain);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--vermilion-deep); border-color: var(--vermilion-deep); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }

/* --- hero ------------------------------------------------------------- */

.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--vermilion);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --- signature: the docket stack -------------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 6px 0 18px;
}

.docket {
  position: relative;
  background: var(--porcelain);
  border-radius: 3px 3px 0 0;
  padding: 18px 20px 22px;
  box-shadow: 0 14px 30px -20px rgba(51, 46, 40, 0.55);
  transition: transform 0.25s ease;
}

.docket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background-image: radial-gradient(circle at 50% 0, var(--porcelain) 7px, transparent 7.5px);
  background-size: 15px 15px;
  background-repeat: repeat-x;
}

.docket:nth-child(1) { transform: rotate(-1.6deg); }
.docket:nth-child(2) { transform: rotate(1.1deg); margin-inline: 10px; }
.docket:nth-child(3) { transform: rotate(-0.7deg); }
.docket:hover { transform: rotate(0deg) translateY(-4px); }

.docket__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--paper-deep);
}

.docket__name {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

.caption {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

.contact__note { margin: 0 0 22px; color: var(--muted); }
.contact__cta { margin: 0; }

.docket__note {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 14px;
}

.docket__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating { display: inline-flex; gap: 3px; }
.rating svg { width: 15px; height: 15px; display: block; }
.star-on { fill: var(--vermilion); }
.star-off { fill: var(--paper-deep); }

.docket__by {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* load-in stagger */
.stack .docket { animation: dealIn 0.6s cubic-bezier(0.22, 0.72, 0.3, 1) backwards; }
.stack .docket:nth-child(1) { animation-delay: 0.05s; }
.stack .docket:nth-child(2) { animation-delay: 0.16s; }
.stack .docket:nth-child(3) { animation-delay: 0.27s; }

@keyframes dealIn {
  from { opacity: 0; transform: translateY(18px) rotate(0deg); }
}

/* --- sections --------------------------------------------------------- */

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--rule { border-top: 1px solid var(--paper-deep); }
.band--dark { background: var(--ink); color: var(--porcelain); }
.band--dark h2, .band--dark h3 { color: var(--porcelain); }

.band__head { max-width: 52ch; margin-bottom: clamp(32px, 5vw, 52px); }
.band__head p { color: var(--muted); margin: 16px 0 0; }
.band--dark .band__head p { color: rgba(252, 252, 251, 0.78); }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 44px);
}

.trio__item { border-top: 2px solid var(--vermilion); padding-top: 18px; }
.trio__item h3 { margin-bottom: 10px; }
.trio__item p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* --- about ------------------------------------------------------------ */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.about__prose p {
  margin: 0 0 18px;
  color: rgba(252, 252, 251, 0.85);
  max-width: 58ch;
}
.about__prose p:last-child { margin-bottom: 0; }
.about__prose strong { color: var(--porcelain); font-weight: 600; }

.facts {
  background: var(--ink-soft);
  border: 1px solid rgba(252, 252, 251, 0.16);
  border-radius: 3px;
  padding: 26px 26px 8px;
}

.facts dl { margin: 0; }
.facts dt {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 252, 251, 0.62);
  margin-bottom: 5px;
}
.facts dd {
  margin: 0 0 20px;
  font-size: 0.98rem;
  color: var(--porcelain);
}
.facts dd a { color: var(--butter); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --- contact ---------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.contact__mail {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--vermilion);
  word-break: break-word;
}
.contact__mail:hover { color: var(--vermilion); }

.address {
  font-style: normal;
  color: var(--muted);
  margin-top: 26px;
  line-height: 1.7;
}

/* --- footer ----------------------------------------------------------- */

.colophon {
  background: var(--ink);
  color: rgba(252, 252, 251, 0.65);
  padding: 34px 0;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.colophon__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.colophon a { color: rgba(252, 252, 251, 0.85); text-decoration: none; }
.colophon a:hover { color: var(--butter); }

/* --- legal / privacy page --------------------------------------------- */

.legal { padding: clamp(44px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal__inner { max-width: 68ch; }
.legal h1 { margin-bottom: 14px; }

.legal__stamp {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--paper-deep);
  margin-bottom: 34px;
}

.legal h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 42px 0 12px;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-underline-offset: 3px; }

/* --- responsive ------------------------------------------------------- */

@media (max-width: 880px) {
  .hero__grid,
  .about__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 44px; }
  .docket:nth-child(2) { margin-inline: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead__inner { min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
  .masthead__nav { gap: 16px; font-size: 10.5px; }
  .wordmark img { height: 22px; }
  .docket:nth-child(n) { transform: none; }
}

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