/* ==========================================================================
   Number 1 Mobile Auto and Truck
   Stylesheet: vintage motoring magazine theme

   CONTENTS
   01. Tokens (colors, fonts, spacing)
   02. Base / reset
   03. Utility pieces (buttons, labels, rules, stripes)
   04. Masthead + navigation
   05. Cover (hero)
   06. Info ticker
   07. Feature grid (services preview)
   08. Steps
   09. Repair photos + reviews
   10. Ad blocks / call-to-action bands
   11. Articles (services page)
   12. Rate card (pricing page)
   13. About page
   14. Contact page + form
   15. Standalone pages (404, thank you)
   16. Footer
   17. Page-turn animation
   18. Responsive
   ========================================================================== */


/* 01. Tokens --------------------------------------------------------------- */
:root {
  --red: #d40000;          /* Ferrari red (rosso corsa) */
  --red-dark: #a10000;
  --black: #121110;
  --ink: #221e1a;          /* body text, warm black like old print ink */
  --ink-soft: #4a433b;
  --white: #fffdf6;
  --paper: #f4ecd9;        /* aged magazine stock */
  --paper-dark: #e8dcc0;
  --yellow: #ffdf00;       /* badge yellow */
  --line: #221e1a;

  --font-display: "Abril Fatface", "Bodoni 72", Didot, Georgia, serif;
  --font-label: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow: 6px 6px 0 var(--black);
}


/* 02. Base / reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(34, 30, 26, .06) 1px, transparent 1px),
    radial-gradient(rgba(34, 30, 26, .04) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .6em; color: var(--black); }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
h3, h4 { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--black); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--black); padding: .6rem 1rem;
  font-family: var(--font-label); text-transform: uppercase; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* 03. Utility pieces ------------------------------------------------------- */
.kicker {
  display: inline-block;
  font-family: var(--font-label);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: .25rem .7rem;
  margin-bottom: 1rem;
}
.kicker--red { background: var(--red); }
.kicker--yellow { background: var(--yellow); color: var(--black); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-label);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { color: var(--black); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { color: var(--black); }

.rule-double { border: 0; border-top: 3px solid var(--line); border-bottom: 1px solid var(--line); height: 6px; margin: 0; }

/* Racing stripe: red / white / black bands used as section dividers */
.stripe {
  height: 18px;
  background: linear-gradient(to bottom,
    var(--red) 0 8px, var(--white) 8px 11px, var(--black) 11px 18px);
}

/* Checkered flag band */
.checker {
  height: 16px;
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, var(--black) 25%, transparent 25%, transparent 75%, var(--black) 75%),
    linear-gradient(45deg, var(--black) 25%, transparent 25%, transparent 75%, var(--black) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.folio {
  font-family: var(--font-label);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section--black { background: var(--black); color: var(--paper); }
.section--black h2, .section--black h3 { color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2, .section--red h3 { color: var(--white); }
.section--cream { background: var(--paper-dark); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--line); margin-bottom: 2.5rem; padding-bottom: .75rem; }
.section-head h2 { margin: 0; }
.section--black .section-head { border-color: var(--paper); }
.section--black .folio { color: var(--paper-dark); }

.lede { font-size: 1.15rem; line-height: 1.7; max-width: 42rem; }

.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: .8;
  padding: .35rem .6rem .1rem 0;
  color: var(--red);
}

.columns-2 { column-count: 2; column-gap: 2.5rem; column-rule: 1px solid rgba(34, 30, 26, .35); }


/* 04. Masthead + navigation ----------------------------------------------- */
.topline {
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topline .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topline a { color: var(--yellow); text-decoration: none; }
.topline a:hover { color: var(--white); }

.masthead { background: var(--paper); border-bottom: 3px solid var(--black); position: relative; z-index: 20; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 1rem; padding-bottom: 1rem; }

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--black); }
.brand:hover { color: var(--black); }
.brand__logo { width: 64px; height: 64px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__big { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--red); }
.brand__small { font-family: var(--font-label); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav .btn { padding: .7rem 1.1rem; font-size: .95rem; }
.nav__list { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.nav__list a {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 3px solid transparent;
}
.nav__list a:hover { color: var(--red); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  background: var(--black); color: var(--white);
  border: 0; padding: .6rem .8rem;
  font-family: var(--font-label); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 18px; height: 12px; margin-left: .45rem; vertical-align: -1px;
  background: linear-gradient(var(--white) 0 2px, transparent 2px 5px, var(--white) 5px 7px, transparent 7px 10px, var(--white) 10px 12px); }


/* 05. Cover (hero) --------------------------------------------------------- */
.cover { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.cover__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.cover__issue { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.cover h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-bottom: 1.2rem; }
.cover h1 .red { color: var(--red); }
.cover__lede { font-size: 1.15rem; max-width: 36rem; }
.cover__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.cover__art { position: relative; }
.cover__art img { position: relative; z-index: 1; }

/* round "price sticker" on the cover */
.sticker {
  position: absolute; z-index: 2;
  top: -10px; right: 0;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-label); text-transform: uppercase; line-height: 1;
  transform: rotate(12deg);
  box-shadow: 4px 4px 0 var(--black);
}
.sticker strong { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; display: block; margin: .15rem 0; }
.sticker span { font-size: .72rem; letter-spacing: .1em; }

.coverlines { list-style: none; margin: 2rem 0 0; padding: 1rem 0 0; border-top: 2px solid var(--black); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.coverlines li { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; line-height: 1.3; }
.coverlines b { display: block; color: var(--red); font-size: 1.5rem; font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }

/* inner page header (smaller cover) */
.page-cover { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 3px solid var(--black); }
.page-cover h1 { max-width: 20ch; }
.page-cover .lede { margin-bottom: 0; }

.breadcrumb { font-family: var(--font-label); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--red); }
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }


/* 06. Info ticker ---------------------------------------------------------- */
.ticker { background: var(--yellow); border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); }
.ticker ul { list-style: none; margin: 0; padding: .8rem 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 2rem; }
.ticker li { font-family: var(--font-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.ticker li::before { content: "\2605"; color: var(--red); margin-right: .6rem; }


/* 07. Feature grid (services preview) ------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 3px solid var(--black); background: var(--white); }
.feature { padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); display: flex; flex-direction: column; }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.feature__icon { width: 54px; height: 54px; color: var(--red); }
.feature__page { font-family: var(--font-display); font-size: 2rem; color: var(--paper-dark); -webkit-text-stroke: 1px var(--black); line-height: 1; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .95rem; flex: 1; }
.feature a.more { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; text-decoration: none; }
.feature a.more::after { content: " \2192"; }


/* 08. Steps ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--yellow); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--red); margin-bottom: .5rem;
}
.steps p { color: var(--paper-dark); margin: 0; }


/* 09. Repair photos + reviews ---------------------------------------------- */
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.letter {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 1.75rem 1.5rem 1.25rem;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow);
}
.letter:nth-child(2) { transform: rotate(.6deg); }
.letter:nth-child(3) { transform: rotate(-.5deg); }
.letter__stars { color: var(--red); letter-spacing: .2em; font-size: 1.1rem; margin-bottom: .6rem; }
.letter blockquote { margin: 0 0 1rem; font-style: italic; }
.letter blockquote p { margin: 0; }
.letter figcaption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; border-top: 1px dashed var(--black); padding-top: .6rem; }
.letter figcaption span { display: block; color: var(--ink-soft); font-size: .78rem; letter-spacing: .12em; }


/* Repair photo spread (placeholder slots until real photos are added) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.photo-slot {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
  padding: .75rem;
}
div.photo-slot {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background-color: var(--white);
  background-image: repeating-linear-gradient(45deg, rgba(34, 30, 26, .06) 0 10px, transparent 10px 20px);
  background-clip: content-box;
  outline: 2px dashed rgba(34, 30, 26, .45); outline-offset: -.75rem;
}
.photo-slot span {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  background: var(--yellow); border: 2px solid var(--black); padding: .4rem .9rem;
}
.photo-slot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-slot figcaption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; padding-top: .6rem; text-align: center; }

/* "Coming soon" notice used while reviews are being collected */
.coming-soon {
  background: var(--white); border: 2px solid var(--black); box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem; text-align: center; max-width: 46rem; margin: 0 auto;
}
.coming-soon__stamp {
  display: inline-block; margin: 0 0 1rem;
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1;
  color: var(--red); border: 4px double var(--red); padding: .4rem 1.2rem;
  transform: rotate(-3deg);
}
.coming-soon p:last-child { margin: 0 auto; max-width: 34rem; }


/* 10. Ad blocks / CTA bands ----------------------------------------------- */
.ad {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
  background: var(--yellow); color: var(--black);
  border: 4px double var(--black);
  outline: 3px solid var(--black); outline-offset: 5px;
  padding: 2rem;
  margin: 8px;
}
.ad__price { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.8rem); line-height: .9; color: var(--red); -webkit-text-stroke: 1px var(--black); }
.ad__price small { display: block; font-family: var(--font-label); font-size: 1rem; color: var(--black); -webkit-text-stroke: 0; letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; }
.ad h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.ad p { margin: 0; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-band .cover__actions { justify-content: center; }
.cta-band .phone-big { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--yellow); text-decoration: none; display: inline-block; margin: .5rem 0 1rem; }
.cta-band .phone-big:hover { color: var(--white); }


/* 11. Articles (services page) -------------------------------------------- */
.toc { background: var(--white); border: 2px solid var(--black); padding: 1.25rem 1.5rem; }
.toc h2 { font-size: 1.4rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: .6rem; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.toc li { display: flex; gap: .5rem; align-items: baseline; break-inside: avoid; padding: .2rem 0; }
.toc li a { color: var(--ink); text-decoration: none; font-family: var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.toc li a:hover { color: var(--red); }
.toc .dots { flex: 1; border-bottom: 2px dotted rgba(34, 30, 26, .5); transform: translateY(-4px); }
.toc .pg { font-family: var(--font-label); color: var(--red); }

.article { display: grid; grid-template-columns: 110px 1fr; gap: 2rem; padding: 3rem 0; border-bottom: 1px solid var(--black); scroll-margin-top: 1rem; }
.article:last-child { border-bottom: 0; }
.article__num { font-family: var(--font-display); font-size: 5rem; line-height: .85; color: var(--red); }
.article__num span { display: block; font-family: var(--font-label); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }
.article h2 { margin-bottom: .3rem; }
.article__deck { font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.article__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.article__aside { background: var(--white); border-left: 6px solid var(--red); padding: 1.1rem 1.25rem; align-self: start; }
.article__aside h3 { font-size: 1rem; margin-bottom: .4rem; }
.article__aside ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.article__aside li { margin-bottom: .3rem; }


/* 12. Rate card (pricing page) -------------------------------------------- */
.ratecard { background: var(--white); border: 3px solid var(--black); box-shadow: var(--shadow); }
.ratecard__head { background: var(--black); color: var(--white); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.ratecard__head h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.ratecard__head .folio { color: var(--yellow); }
.ratecard table { width: 100%; border-collapse: collapse; }
.ratecard caption { text-align: left; padding: 1rem 1.5rem 0; font-style: italic; color: var(--ink-soft); }
.ratecard th, .ratecard td { text-align: left; padding: .95rem 1.5rem; border-bottom: 1px dashed rgba(34, 30, 26, .45); vertical-align: top; }
.ratecard thead th { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; border-bottom: 2px solid var(--black); }
.ratecard tbody th { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.ratecard tbody th small { display: block; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink-soft); margin-top: .2rem; }
.ratecard td.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--red); white-space: nowrap; text-align: right; }
.ratecard thead th:last-child { text-align: right; }
.ratecard tr.featured { background: var(--yellow); }
.ratecard tr.featured td.price { color: var(--black); }
.ratecard tbody tr:last-child th, .ratecard tbody tr:last-child td { border-bottom: 0; }

.fineprint { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-top: 1.5rem; max-width: 50rem; }

.faq { max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--black); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; }
.faq__item summary::after {
  content: "+"; flex: none;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  font-family: var(--font-label); font-size: 1.4rem; font-weight: 600; line-height: 1;
  background: var(--red); color: var(--white); border: 2px solid var(--black);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "\2212"; background: var(--black); }
.faq__item summary:hover h3 { color: var(--red); }
.faq__item p { margin: 0 0 1.25rem; max-width: 46rem; }


/* 13. About page ----------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: start; }
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  color: var(--red);
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  padding: 1.25rem 0;
  margin: 2rem 0;
}
.photo-frame { background: var(--white); border: 2px solid var(--black); padding: .75rem .75rem 0; box-shadow: var(--shadow); transform: rotate(-1.2deg); margin: 0; }
.photo-frame figcaption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; padding: .7rem 0; text-align: center; }

.specs { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--black); margin-top: 2rem; }
.specs caption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; background: var(--black); color: var(--white); padding: .6rem 1rem; text-align: left; }
.specs th, .specs td { padding: .65rem 1rem; border-bottom: 1px dashed rgba(34, 30, 26, .45); text-align: left; font-size: .95rem; vertical-align: top; }
.specs th { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; width: 40%; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.values article { border-top: 6px solid var(--red); padding-top: 1rem; }
.values p { margin: 0; color: var(--paper-dark); }


/* 14. Contact page + form -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }

.card-info { background: var(--black); color: var(--paper); padding: 2rem; border: 3px solid var(--black); box-shadow: 6px 6px 0 var(--red); }
.card-info h2 { color: var(--white); font-size: 1.9rem; }
.card-info dl { margin: 0; }
.card-info dt { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--yellow); margin-top: 1.1rem; }
.card-info dd { margin: .2rem 0 0; font-size: 1.1rem; }
.card-info a { color: var(--white); }
.card-info a:hover { color: var(--yellow); }

.form { background: var(--white); border: 3px solid var(--black); padding: 2rem; box-shadow: var(--shadow); }
.form h2 { font-size: 1.9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field label, .field legend { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--black);
  border-radius: 0;
  padding: .7rem .8rem;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: none; background: var(--white); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-row label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; display: flex; gap: .45rem; align-items: center; margin: 0; }
.radio-row input { width: auto; accent-color: var(--red); }
.form__note { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; margin-bottom: 0; }
.hp-field { position: absolute; left: -9999px; }


/* 15. Standalone pages (404, thank you) ----------------------------------- */
.standalone { min-height: 60vh; display: flex; align-items: center; padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.standalone .wrap { max-width: 760px; }
.standalone__num { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 12rem); line-height: .85; color: var(--red); -webkit-text-stroke: 2px var(--black); text-shadow: 6px 6px 0 var(--yellow); margin-bottom: 1rem; }
.standalone .cover__actions { justify-content: center; }
.standalone img { margin: 0 auto 1.5rem; width: 100%; max-width: min(380px, 100%); }
.standalone ul { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; }


/* 16. Footer --------------------------------------------------------------- */
.footer { background: var(--black); color: var(--paper-dark); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h2 { font-family: var(--font-label); font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--yellow); margin-bottom: .8rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); line-height: 1.1; margin-bottom: .6rem; }
.footer__brand span { color: var(--red); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .35rem; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer__bottom a { color: var(--yellow); }
.footer__bottom { border-top: 1px solid #3a3531; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }


/* 17. Page-turn animation ---------------------------------------------------
   Whole page: turns in on load, turns away before leaving (see js/main.js).
   Sections: marked with .turn, each flips in like a page when scrolled into view.
   Only active when JS is running (.js on <html>) and motion is allowed.
   -------------------------------------------------------------------------- */
.page { transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
  .js .page { animation: page-turn-in .85s cubic-bezier(.2, .7, .25, 1) both; }

  .js .page.is-leaving { animation: page-turn-out .45s cubic-bezier(.55, 0, .8, .4) both; }

  .js .turn {
    transform-origin: left center;
    transform: perspective(1600px) rotateY(-55deg);
    opacity: 0;
    transition: transform .9s cubic-bezier(.2, .7, .25, 1), opacity .6s ease;
  }
  .js .turn--right { transform-origin: right center; transform: perspective(1600px) rotateY(55deg); }
  .js .turn.is-turned { transform: none; opacity: 1; }

  /* the "page shadow" that sweeps across a turning section */
  .js .turn { position: relative; }
  .js .turn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%);
    opacity: 1; transition: opacity .9s ease;
  }
  .js .turn--right::after { background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%); }
  .js .turn.is-turned::after { opacity: 0; }
}

@keyframes page-turn-in {
  from { transform: perspective(2200px) rotateY(28deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes page-turn-out {
  from { transform: none; opacity: 1; }
  to   { transform: perspective(2200px) rotateY(-80deg); opacity: 0; }
}


/* 18. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .cover__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cover__art { max-width: 560px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px solid var(--black); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--black); }
  .feature:nth-last-child(-n+2) { border-bottom: 0; }
  .letters, .values, .photo-grid { grid-template-columns: 1fr; }
  .letter:nth-child(n) { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article__body { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: static; }
  .nav__list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--black);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { border-bottom: 1px solid rgba(34, 30, 26, .3); }
  .nav__list a { display: block; padding: .8rem 0; border-bottom: 0; }
  .nav .btn { display: none; }
}

@media (max-width: 680px) {
  body { font-size: .96rem; }
  .brand__logo { width: 50px; height: 50px; }
  .coverlines { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--black); }
  .feature:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .ad { grid-template-columns: 1fr; text-align: center; gap: 1rem; padding: 1.5rem 1rem; }
  .columns-2 { column-count: 1; }
  .toc ol { columns: 1; }
  .article { grid-template-columns: 1fr; gap: .5rem; padding: 2.25rem 0; }
  .article__num { font-size: 3.5rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form, .card-info { padding: 1.5rem 1.1rem; }
  .ratecard th, .ratecard td { padding: .8rem 1rem; }
  .ratecard thead { display: none; }
  .ratecard tbody tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px dashed rgba(34, 30, 26, .45); }
  .ratecard tbody th, .ratecard tbody td { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticker { width: 104px; height: 104px; top: -18px; right: -4px; }
  .sticker strong { font-size: 1.8rem; }
  .topline .wrap { justify-content: center; text-align: center; }
  .topline__issue { display: none; }
}

@media print {
  .masthead nav, .topline, .footer, .nav-toggle, .cover__actions { display: none; }
  body { background: #fff; }
}
