/* Drew North Media — colours come from the logo artwork: cream paper, near-black
   ink, deep forest green and the lighter pine green of the tree line. */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-600.woff2") format("woff2"); }

:root {
  --paper: #f9f8f4;       /* logo paper */
  --paper-deep: #f1eee6;
  --card: #ffffff;
  --ink: #111412;         /* logo ink */
  --text: #1e2420;
  --muted: #5a625c;
  --line: rgba(17, 20, 18, 0.1);
  --forest: #18332a;      /* logo forest green */
  --forest-deep: #12271f;
  --pine: #2e5b41;        /* lighter pines */
  --on-forest: #f3f1ea;
  --on-forest-muted: #b9c7bf;
  --radius: 14px;
  --wrap: 1080px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(249, 248, 244, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Hero: the logo on paper with the pine line in the bottom-right corner,
   echoing the logo artwork. */
.hero {
  --pines-h: clamp(150px, 26vw, 330px);
  position: relative; overflow: hidden;
  text-align: center;
  /* The trees get their own strip below the text; only the tallest tips
     on the far right rise beside it. */
  padding: 88px 0 calc(var(--pines-h) - 24px);
}
.hero::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  height: var(--pines-h); aspect-ratio: 572 / 346;
  background: url("img/pines.png") right bottom / contain no-repeat;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo { width: min(620px, 88vw); margin: 0 auto 48px; }
.hero h1 {
  font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; font-weight: 600; color: var(--ink);
  margin: 0 auto 18px; max-width: 20ch; letter-spacing: -0.01em;
}
.hero p { color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); max-width: 38em; margin: 0 auto; }

/* Sections */
section { padding: 84px 0; }
.band { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.forest { background: var(--forest); color: var(--on-forest); }
.eyebrow {
  color: var(--pine); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 10px;
}
.forest .eyebrow { color: var(--on-forest-muted); }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.forest h2 { color: #fff; }
h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

/* What we make */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(17, 20, 18, 0.04);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--forest); color: var(--on-forest);
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.status {
  margin-top: auto; align-self: flex-start;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.status.live { color: var(--pine); border-color: rgba(46, 91, 65, 0.4); background: rgba(46, 91, 65, 0.06); }
a.status { text-decoration: none; }
a.status:hover { background: rgba(46, 91, 65, 0.12); color: var(--forest); }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(17, 20, 18, 0.04);
}
/* Each cover sits on a cream panel like a book on display */
.book-cover {
  margin: -24px -24px 20px; padding: 28px 0;
  background: var(--paper-deep); border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
}
.book-cover img {
  width: 62%; margin: 0 auto; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 2px 4px rgba(17, 20, 18, 0.12), 0 14px 28px rgba(17, 20, 18, 0.18);
}
.book-type {
  margin: 0 0 6px; color: var(--pine);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.book h3 { font-size: 18px; line-height: 1.35; }
.book-sub { margin: 0; color: var(--muted); font-size: 15px; }
.store-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.store-links a {
  flex: 1 1 0; text-align: center; text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--forest);
  border: 1px solid rgba(24, 51, 42, 0.25); border-radius: 999px; padding: 8px 12px;
}
.store-links a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Featured product (on forest green) */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-head img { width: 64px; height: 64px; border-radius: 15px; }
.feature-head h2 { margin: 0; }
.feature-head .sub { color: var(--on-forest-muted); font-size: 15px; margin: 2px 0 0; }
.feature-text p { color: var(--on-forest-muted); }
.feature-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--on-forest); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; transform: rotate(45deg); background: var(--on-forest-muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  background: var(--paper); color: var(--forest); padding: 11px 22px; border-radius: 999px;
}
.button:hover { background: #fff; color: var(--forest); }
.note { color: var(--on-forest-muted); font-size: 14px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.screens img { border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.screens img:nth-child(2) { margin-top: 36px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.values p { color: var(--muted); margin: 0; font-size: 16px; }

/* Contact */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact-cards { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-card {
  text-align: left; flex: 0 1 340px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px;
}
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card a { font-size: 18px; font-weight: 500; }

/* Footer */
.site-footer { background: var(--forest-deep); color: var(--on-forest-muted); padding: 40px 0 44px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { width: 190px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-meta a { color: var(--on-forest); }
.made-in { display: inline-flex; align-items: center; gap: 8px; }
.made-in img { width: 15px; height: 15px; }

/* 404 */
.not-found { padding-top: 110px; }
.not-found img.mark { width: 96px; margin: 0 auto 28px; }
.not-found p { color: var(--muted); }

@media (max-width: 960px) {
  .books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cards, .values { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .brand span { display: none; }
  .books { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-logo { margin-bottom: 36px; }
  .screens { gap: 10px; }
  .screens img { border-radius: 14px; }
  .screens img:nth-child(2) { margin-top: 20px; }
  .footer-meta { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
