/* ==========================================================================
   Nota Coffee Co — production stylesheet
   Tokens ported verbatim from the Modernist design system
   (design/_ds/modernist-2a27b31a-.../styles.css). Do not re-derive values.
   ========================================================================== */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  /* The system second accent is a machine-derived stand-in that was never
     chosen. This is a mono palette — --color-accent-2-* is deliberately absent. */

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  /* Zero radius everywhere, on purpose. No shadows are used on this page. */
  --radius: 0px;

  --ink: #201e1d;   /* dark ground */
  --paper: #f3f2f2; /* text on dark ground */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-heading); }
p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

img { max-width: 100%; }

.grayscale { filter: grayscale(1) contrast(1.08); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--color-accent); color: #fff; padding: 12px 20px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.12em;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- shared bits ---------------------------------------------------------- */

.kicker {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; color: var(--color-accent);
}
.kicker--sm { font-size: 11px; }
.kicker--num { font-size: 13px; letter-spacing: normal; }

.rule-2 { height: 2px; background: var(--color-divider); }

.section { padding: 80px 40px; border-bottom: 2px solid var(--color-divider); }
.section--dark { background: var(--ink); color: var(--paper); border-bottom: 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head h2 {
  font-weight: 700; font-size: 42px; letter-spacing: -0.02em; line-height: 1.05;
}

.btn {
  display: inline-block; width: max-content;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--color-accent); color: #fff; padding: 14px 22px; }
.btn--primary:hover { background: var(--color-accent-600); color: #fff; }
.btn--ghost { border: 2px solid #fff; padding: 12px 22px; }
.btn--ghost:hover { border-color: var(--color-accent-400); color: var(--color-accent-400); }
.btn--lg { font-size: 14px; padding: 16px 22px; }

.textlink {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em; color: var(--color-accent-700);
}

/* --- 1. nav --------------------------------------------------------------- */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; border-bottom: 2px solid var(--color-divider);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 36px; height: 36px; background: var(--color-accent); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.brand__word {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
}
.nav__links {
  display: flex; gap: 32px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 13px; letter-spacing: 0.1em;
}

/* Disclosure menu. Hidden outright on wide viewports — the horizontal nav is
   unchanged there. Shown by the 820px breakpoint below. */
.nav__checkbox { display: none; }
.nav__toggle { display: none; }

.nav__bars {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 20px; height: 14px;
}
.nav__bars > span {
  display: block; height: 2px; width: 100%; background: currentColor;
  transition-property: transform, opacity;
  transition-duration: .18s;
  transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) { .nav__bars > span { transition-duration: 0s; } }

/* --- 2. hero -------------------------------------------------------------- */

.hero {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-bottom: 2px solid var(--color-divider);
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(4px); transform: scale(1.05);
}
.hero__scrim { position: absolute; inset: 0; background: rgba(32, 30, 29, 0.62); }
.hero__body {
  position: relative; z-index: 1; padding: 80px 48px 72px;
  display: flex; flex-direction: column; gap: 28px; justify-content: center;
}
.hero__mark {
  width: 88px; height: 88px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.hero h1 {
  font-weight: 800; font-size: 72px; letter-spacing: -0.03em;
  line-height: 0.95; max-width: 14ch;
}
.hero__rule { height: 3px; width: 180px; background: #fff; }
.hero__lede { font-size: 18px; line-height: 1.55; max-width: 48ch; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__spacer { position: relative; z-index: 1; min-height: 560px; }

/* --- 3. story ------------------------------------------------------------- */

.story { padding: 80px 56px; }
.story__col { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.story h2 { font-weight: 700; font-size: 42px; letter-spacing: -0.02em; line-height: 1.05; }
.story p {
  font-size: 16px; line-height: 1.65; color: var(--color-neutral-700); max-width: 48ch;
}

/* --- 4. mission ----------------------------------------------------------- */

.mission {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.mission__head { display: flex; flex-direction: column; gap: 18px; }
.mission h2 {
  font-weight: 700; font-size: 52px; letter-spacing: -0.03em; line-height: 1.02;
}
.mission p {
  font-size: 19px; line-height: 1.6; color: var(--color-neutral-700);
  max-width: 52ch; padding-top: 38px; /* optically aligns to the headline second line */
}

/* --- 5. lots -------------------------------------------------------------- */

.lots { display: flex; flex-direction: column; gap: 36px; }

.processor {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  border: 2px solid var(--color-divider);
}
.processor__photo {
  position: relative; min-height: 480px; overflow: hidden;
  border-right: 2px solid var(--color-divider); background: var(--color-neutral-200);
}
.processor__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 25%; display: block;
}
.processor__body {
  display: flex; flex-direction: column; gap: 20px; justify-content: center; padding: 48px;
}
.processor__name { display: flex; flex-direction: column; gap: 6px; }
.processor__name h3 {
  font-weight: 800; font-size: 38px; letter-spacing: -0.02em; line-height: 1.02;
}
.processor__place { font-size: 15px; color: var(--color-neutral-600); }
.processor__prose {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 16px; line-height: 1.65; color: var(--color-neutral-700); max-width: 62ch;
}
.processor__foot {
  display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--color-divider);
}
.processor__foot > div { display: flex; flex-direction: column; gap: 8px; }
.processor__foot > div:first-child {
  padding: 22px 24px 0 0; border-right: 2px solid var(--color-divider);
}
.processor__foot > div:last-child { padding: 22px 0 0 24px; }
.processor__foot p { font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); }
.processor__foot strong { font-weight: 700; color: var(--color-text); }

/* 2px outer border, 2px internal rules, no gap — cells share rules. */
.lots-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 2px solid var(--color-divider);
}
.lot { display: flex; flex-direction: column; gap: 14px; padding: 40px; }
.lot:nth-child(odd) { border-right: 2px solid var(--color-divider); }
.lot:nth-child(-n + 2) { border-bottom: 2px solid var(--color-divider); }
.lot h3 { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; }
.lot__specs {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; line-height: 1.5; color: var(--color-neutral-700);
}
.lot__notes {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 19px; line-height: 1.35; letter-spacing: -0.01em;
}

/* --- 6. origins ----------------------------------------------------------- */

.origins { display: flex; flex-direction: column; gap: 36px; }
.origins .section-head { max-width: none; }
.origins h2 { max-width: 20ch; }
.origins__map svg { width: 100%; height: auto; display: block; }

/* --- 7. journey ----------------------------------------------------------- */

.journey { display: flex; flex-direction: column; gap: 36px; }
.journey-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--color-divider);
}
.step { display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.step:not(:last-child) { border-right: 2px solid var(--color-divider); }
.step h3 { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.step p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-700); }
.step__arrow {
  margin-top: auto; font-family: var(--font-heading); font-weight: 800;
  font-size: 18px; color: var(--color-accent);
}

/* --- 8. for roasters ------------------------------------------------------ */

.roasters {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 2px solid var(--color-divider);
}
.roasters__left {
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
  padding: 72px 56px; border-right: 2px solid var(--color-divider);
}
.roasters__left h2 {
  font-weight: 700; font-size: 38px; letter-spacing: -0.02em; line-height: 1.05;
}
.roasters__left p {
  font-size: 16px; line-height: 1.65; color: var(--color-neutral-700); max-width: 44ch;
}
.roasters__right {
  display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 72px 56px;
}
.roasters__right a:not(.btn), .roasters__right span {
  font-size: 14px; color: var(--color-neutral-600);
}
.roasters__right a:not(.btn):hover { color: var(--color-accent); }

/* --- 9. footer ------------------------------------------------------------ */

.footer {
  background: var(--ink); color: var(--paper); padding: 56px 40px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__mark {
  width: 44px; height: 44px; background: var(--color-accent); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.footer__word { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.footer__tag {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 11px; letter-spacing: 0.3em; opacity: 0.7;
}
.footer__meta {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-size: 13px;
}
.footer__meta a { opacity: 0.75; }
.footer__meta a:hover { color: var(--color-accent-400); opacity: 1; }
.footer__copy { opacity: 0.6; }

/* ==========================================================================
   Responsive — NOT in the original handoff. Built to the approach the
   handoff suggests: 2-col sections collapse to one, border-right becomes
   border-bottom, heading scale steps down. NEEDS DESIGN SIGN-OFF.
   ========================================================================== */

@media (max-width: 1100px) {
  .hero h1 { font-size: 56px; }
  .mission h2 { font-size: 42px; }
  .section-head h2, .story h2 { font-size: 34px; }
  .processor { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .processor__body { padding: 36px; }
  .processor__name h3 { font-size: 32px; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(odd) { border-right: 2px solid var(--color-divider); }
  .step:nth-child(even) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 2px solid var(--color-divider); }
}

@media (max-width: 820px) {
  .section, .story { padding: 56px 24px; }

  /* Brand on the left, MENU on the right, panel drops full-width beneath. */
  .nav { padding: 16px 24px; flex-wrap: wrap; align-items: center; }

  /* Visually hidden but still focusable, so the toggle is keyboard-operable.
     (display:none on the wide layout deliberately drops it from tab order.) */
  .nav__checkbox {
    display: block; position: absolute; width: 1px; height: 1px;
    margin: 0; opacity: 0; pointer-events: none;
  }

  .nav__toggle {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-family: var(--font-heading); font-weight: 600;
    font-size: 13px; letter-spacing: 0.1em;
    padding: 6px 0; user-select: none;
    transition-property: color; transition-duration: .15s;
  }
  .nav__toggle:hover { color: var(--color-accent); }
  .nav__checkbox:focus-visible + .nav__toggle {
    outline: 2px solid var(--color-accent); outline-offset: 4px;
  }

  /* Bars fold into a cross when open. */
  .nav__checkbox:checked + .nav__toggle .nav__bars > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav__checkbox:checked + .nav__toggle .nav__bars > span:nth-child(2) { opacity: 0; }
  .nav__checkbox:checked + .nav__toggle .nav__bars > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* The panel: one link per row, flush left, 2px rules between — the same
     organising device the rest of the page uses. */
  .nav__links {
    display: none; flex-basis: 100%; flex-direction: column; gap: 0;
    font-size: 13px; margin-top: 14px;
  }
  .nav__checkbox:checked ~ .nav__links { display: flex; }
  .nav__links a {
    padding: 15px 0;
    border-top: 2px solid var(--color-divider);
  }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__body { padding: 56px 24px 48px; gap: 22px; }
  .hero__spacer { display: none; }
  .hero h1 { font-size: 40px; max-width: none; }
  .hero__mark { width: 64px; height: 64px; }
  .hero__mark svg { width: 40px; height: 31px; }
  .hero__lede { font-size: 16px; }

  .mission { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mission h2 { font-size: 34px; }
  .mission p { font-size: 17px; padding-top: 0; }

  /* 2px rules move from the vertical axis to the horizontal one. */
  .processor { grid-template-columns: minmax(0, 1fr); }
  .processor__photo {
    min-height: 320px; border-right: 0; border-bottom: 2px solid var(--color-divider);
  }
  .processor__body { padding: 28px 24px; }
  .processor__name h3 { font-size: 28px; }
  .processor__foot { grid-template-columns: 1fr; }
  .processor__foot > div:first-child {
    padding: 22px 0 22px 0; border-right: 0; border-bottom: 2px solid var(--color-divider);
  }
  .processor__foot > div:last-child { padding: 22px 0 0 0; }

  .lots-grid { grid-template-columns: 1fr; }
  .lot { padding: 28px 24px; }
  .lot:nth-child(odd) { border-right: 0; }
  .lot:not(:last-child) { border-bottom: 2px solid var(--color-divider); }
  .lot h3 { font-size: 24px; }

  .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 24px; }
  .step:not(:last-child) { border-right: 0; border-bottom: 2px solid var(--color-divider); }
  .step__arrow { margin-top: 4px; }

  .roasters { grid-template-columns: minmax(0, 1fr); }
  .roasters__left {
    padding: 48px 24px; border-right: 0; border-bottom: 2px solid var(--color-divider);
  }
  .roasters__left h2 { font-size: 28px; }
  .roasters__right { padding: 40px 24px; }

  .footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__meta { align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .section-head h2, .story h2, .mission h2 { font-size: 28px; }
  .hero__ctas .btn { width: 100%; text-align: left; }
}
