/* Northerly Customs — preview site
   Brand system shared with the Nook configurator (quote_page.html):
   paper/ink/wood palette, Fraunces display, Inter body, Caveat hand-notes. */

:root {
  --paper:      #f5f0e6;
  --paper-2:    #efe8d8;
  --ink:        #2a241c;
  --ink-soft:   #5a4f3f;
  --rule:       #c9bfaa;
  --wood:       #9a6635;
  --wood-deep:  #5a3a1c;
  --moss:       #4a5a3c;
  --accent:     #a85636;
  --shadow: 0 1px 0 rgba(42,36,28,.06), 0 8px 30px -12px rgba(42,36,28,.18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-deep); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  max-width: 1160px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand .word { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand .word em { font-style: italic; color: var(--wood); }

nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main > .navgrp { position: relative; }
nav.main a.top, nav.main span.top {
  display: inline-block; padding: 8px 12px; font-size: .95rem; color: var(--ink-soft);
  text-decoration: none; border-radius: 6px; cursor: pointer;
}
nav.main .navgrp:hover > .top, nav.main .navgrp:focus-within > .top,
nav.main a.top:hover { color: var(--ink); background: var(--paper-2); }
nav.main a.top[aria-current="true"] { color: var(--ink); font-weight: 600; }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px;
  display: none; flex-direction: column;
}
.navgrp:hover .drop, .navgrp:focus-within .drop { display: flex; }
.drop a { padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.drop a:hover { background: var(--paper-2); color: var(--ink); }
a.cta {
  margin-left: 10px; padding: 9px 16px; border-radius: 999px;
  background: var(--wood-deep); color: var(--paper); text-decoration: none;
  font-size: .95rem; font-weight: 600; white-space: nowrap;
}
a.cta:hover { background: var(--wood); color: var(--paper); }

/* mobile nav */
#nav-toggle { display: none; }
label.hamburger { display: none; margin-left: auto; cursor: pointer; padding: 8px; }
label.hamburger svg { display: block; }
@media (max-width: 880px) {
  label.hamburger { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  #nav-toggle:checked ~ nav.main { display: flex; }
  .drop { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 4px 18px; }
  nav.main span.top { color: var(--ink); font-weight: 600; }
  a.cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--paper); overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,36,28,.35), rgba(42,36,28,.62));
}
.hero .inner {
  position: relative; max-width: 900px; margin: 0 auto; text-align: center;
  padding: clamp(60px, 12vw, 130px) 24px;
}
.hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 18px rgba(42,36,28,.55); }
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: .4em 0 1em;
}
.hero .contact-line { font-size: .98rem; }
.hero .contact-line a { color: #fff; }
.hero .note { font-size: .92rem; opacity: .92; max-width: 620px; margin: 1em auto 0; }
.hero.small .inner { padding: clamp(36px, 7vw, 70px) 24px; }

/* ---------- page body ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.kicker {
  font-family: var(--serif); font-style: italic; color: var(--wood);
  font-size: 1.15rem; margin-top: -0.4em;
}
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 44px auto; max-width: 480px; }
hr.rule.wide { max-width: none; }

blockquote.testimonial {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--ink-soft); text-align: center; max-width: 680px;
  margin: 2.2em auto .4em; padding: 0 12px;
}
blockquote.testimonial + .attribution {
  text-align: center; color: var(--wood); font-family: var(--hand); font-size: 1.3rem;
  margin-bottom: 2em;
}

/* photo layouts */
.photo-grid { display: grid; gap: 16px; margin: 28px 0; align-items: start; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) {
  .photo-grid.cols-3, .photo-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .photo-grid.cols-2, .photo-grid.cols-3, .photo-grid.cols-4 { grid-template-columns: 1fr; }
}
figure { margin: 0; }
figure img { border-radius: 10px; box-shadow: var(--shadow); }
figcaption {
  font-family: var(--hand); font-size: 1.25rem; color: var(--ink-soft);
  text-align: center; padding-top: 6px;
}

/* scroll-snap carousel */
.strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.strip figure { flex: 0 0 min(78%, 460px); scroll-snap-align: center; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.strip-hint {
  font-family: var(--hand); font-size: 1.15rem; color: var(--wood);
  text-align: right; margin: -6px 4px 18px;
}

/* video embeds */
.video { position: relative; aspect-ratio: 16/9; margin: 28px auto; max-width: 860px; }
.video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  border-radius: 10px; box-shadow: var(--shadow);
}

/* model cards (pricing / home examples) */
.model { margin: 40px 0; }
.model .meta { text-align: center; margin-top: 4px; }
.model .meta h2, .model .meta h3 { margin: .4em 0 .1em; }
.model .dims { color: var(--ink-soft); }
.model .price {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--wood-deep);
}

/* fleet cards (the configuration showcase on /the-fleet/) */
.fleet-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px 28px; margin: 36px 0;
}
.fleet-card { display: flex; flex-direction: column; }
.fleet-card figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fleet-card h2 { font-size: 1.4rem; margin: .7em 0 .15em; }
.fleet-card p { margin: 0 0 1em; color: var(--ink-soft); font-size: .97rem; }
/* pushes the link to a common baseline whatever the blurb length */
.fleet-card .quote-link { margin-top: auto; font-weight: 600; font-size: .95rem; text-decoration: none; }
.fleet-card .quote-link:hover { text-decoration: underline; }

/* review cards (/about/reviews/) */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px; margin: 34px 0;
}
blockquote.review {
  display: flex; flex-direction: column; margin: 0;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow);
}
blockquote.review .stars { color: var(--wood); letter-spacing: .14em; font-size: .95rem; }
blockquote.review p { margin: .55em 0 1em; font-size: .98rem; }
blockquote.review cite {
  margin-top: auto; font-style: normal; font-size: .84rem;
  color: var(--ink-soft); letter-spacing: .02em;
}
/* the nav pill reused as an in-page button; drop the nav's left margin so it centres */
main p.center a.cta { margin-left: 0; }

/* landing stubs (products / learn / about index pages) */
.stub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 34px 0; }
.stub-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.stub-card img { border-radius: 0; box-shadow: none; aspect-ratio: 4/3; object-fit: cover; }
.stub-card .label { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; padding: 12px 16px; }
.stub-card:hover { border-color: var(--wood); }

/* feature blurbs */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 34px; }
.features h3 { margin-top: .8em; }

/* form embed */
.form-embed iframe { width: 100%; border: 0; min-height: 900px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }

/* story dividers */
.story-sep {
  text-align: center; color: var(--wood); letter-spacing: .8em;
  margin: 2.2em 0; font-family: var(--serif);
}
.signoff { font-family: var(--hand); font-size: 1.5rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  margin-top: 40px;
}
footer.site-footer .inner {
  max-width: 1100px; margin: 0 auto; padding: 44px 20px 40px; text-align: center;
}
footer.site-footer .word { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
footer.site-footer .tagline { font-family: var(--serif); font-style: italic; color: var(--wood); margin: 2px 0 18px; }
footer.site-footer .contact { color: var(--ink-soft); font-size: .96rem; }
footer.site-footer .contact a { white-space: nowrap; }
footer.site-footer .note { color: var(--ink-soft); font-size: .9rem; max-width: 560px; margin: 14px auto 0; }
footer.site-footer .preview-stamp {
  margin-top: 26px; font-size: .78rem; color: var(--rule); letter-spacing: .06em;
}
