/* =============================================================
   MORRIS & JAMES — shared design system
   Built on the Takapoto Estate "Maison" pattern: editorial,
   restraint, confidence in negative space. Colour comes from the
   glazes; the page itself stays cream and ink.

   Type:  Gathes Serif (display, all caps)
          EB Garamond (body; italic for emphasis)
          JetBrains Mono (labels, nav, fine print; spaced caps)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Gathes Serif';
  src: url('fonts/GathesSerif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* vertical rhythm (shared steps, as Takapoto) */
  --pad-xs: clamp(24px, 3.5vh, 40px);
  --pad-sm: clamp(40px, 6vh, 64px);
  --pad-md: clamp(48px, 7vh, 84px);
  --pad-lg: clamp(56px, 9vh, 110px);
  --pad-xl: clamp(88px, 12vh, 150px);
  --pad-2xl: clamp(110px, 15vh, 180px);
  --pad-hero: clamp(128px, 18vh, 200px);

  /* ── brand palette (sampled from the 2025 brand board swatches) ── */
  --cream:       #FAF9F6;   /* page background                        */
  --cream-deep:  #F1EEE7;   /* section alternation                    */
  --ink:         #1C1A19;   /* body text                              */
  --navy:        #262262;   /* the potter's mark                      */
  --royal:       #200C9B;   /* brand lead colour; footer              */
  --brick:       #A7362D;
  --red:         #E1101D;
  --sunflower:   #FDD74F;
  --mandarin:    #DE7D44;
  --blush:       #FFD4C3;
  --lime:        #A9D245;

  --ink-80: rgba(28, 26, 25, 0.84);
  --ink-60: rgba(28, 26, 25, 0.62);
  --ink-40: rgba(28, 26, 25, 0.45);
  --hair:   rgba(28, 26, 25, 0.12);
  --hair-light: rgba(250, 249, 246, 0.22);

  --display: 'Gathes Serif', 'Oswald', 'Arial Narrow', sans-serif;
  --serif:   'EB Garamond', Garamond, Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

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

/* ── type helpers ─────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1; }
.h-lg { font-size: clamp(34px, 4vw, 60px); }
.h-md { font-size: clamp(26px, 2.8vw, 42px); }
.label { font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; }
em { font-style: italic; }

/* underline text link; buttons are retired, as on Takapoto */
.hb-link { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: inherit; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: opacity .3s ease; }
.hb-link:hover { opacity: .6; }
.hb-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 30px; }

/* ── reveal on scroll ─────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =============================================================
   NAV + MEGA MENU
   ============================================================= */
.mm-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.94); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.mm-nav.is-scrolled { border-bottom-color: var(--hair); }
.mm-nav__inner { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.mm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.mm-brand img { height: 86px; width: auto; }
.mm-nav__inner { padding-top: 4px; padding-bottom: 4px; }
.mm-brand span { font-family: var(--display); font-size: 21px; letter-spacing: .02em; line-height: 1; }
.mm-links { margin-left: auto; display: flex; gap: clamp(22px, 2.6vw, 40px); list-style: none; align-items: center; }
.mm-trigger { background: none; border: 0; color: inherit; cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 14px 0; position: relative; white-space: nowrap; line-height: 1;
  display: inline-block; vertical-align: middle; }
.mm-trigger::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mm-trigger:hover::after, .mm-trigger[aria-expanded="true"]::after,
.mm-trigger[aria-current="page"]::after { transform: scaleX(1); }
.mm-links__sep { width: 1px; height: 14px; background: var(--hair); }

.mm-panels { position: fixed; top: 78px; left: 0; right: 0; z-index: 90;
  visibility: hidden; transition: visibility 0s linear .5s; }
.mm-panels.is-active { visibility: visible; transition: visibility 0s linear 0s; }
.mm-panel-wrap { position: relative; background: var(--cream); overflow: hidden; max-height: 0;
  border-bottom: 1px solid var(--hair); transition: max-height .5s cubic-bezier(.2,.8,.2,1); }
.mm-panels.is-active .mm-panel-wrap { max-height: 620px; }
.mm-panel { max-width: var(--max); margin: 0 auto; padding: 52px var(--gutter) 56px;
  display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr; gap: clamp(40px, 5vw, 88px);
  opacity: 0; transform: translateY(8px); position: absolute; inset: 0; pointer-events: none;
  transition: opacity .35s ease .05s, transform .45s cubic-bezier(.2,.8,.2,1) .05s; }
.mm-panel.is-shown { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.mm-col__head { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-60); padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--hair); }
.mm-col ul { list-style: none; }
.mm-col li { padding: 9px 0; }
.mm-col a { display: block; text-decoration: none; font-family: var(--serif); font-size: 22px;
  line-height: 1.2; color: var(--ink); transition: color .25s, padding-left .45s cubic-bezier(.2,.8,.2,1); }
.mm-col a:hover { color: var(--royal); padding-left: 6px; }
.mm-col a small { display: block; margin-top: 3px; font-size: 14px; font-style: italic; color: var(--ink-60); }
.mm-col a[aria-current="page"] { color: var(--royal); }
.mm-feature { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 380px; overflow: hidden;
  background-size: cover; background-position: center; text-decoration: none; color: var(--cream); }
.mm-feature::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.mm-feature__text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.mm-feature__title { font-family: var(--display); font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.mm-feature__cta { margin-top: 10px; display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* social icons in the header */
.mm-social { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.mm-social a { width: 34px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.mm-social a:hover { color: var(--royal); }
.mm-mobile__social { display: flex; gap: 24px; padding: 26px 0 0; }
.mm-mobile__social a { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }

/* search */
.mm-search-btn { background: none; border: 0; cursor: pointer; color: inherit; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; margin-left: -8px; }
.mm-search-btn:hover { color: var(--royal); }
.mm-search { position: fixed; top: 94px; left: 0; right: 0; z-index: 98; background: var(--cream);
  border-bottom: 1px solid var(--hair); box-shadow: 0 30px 60px -40px rgba(28,26,25,.35); }
.mm-search__inner { max-width: 880px; margin: 0 auto; padding: 34px var(--gutter) 40px; }
.mm-search__label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 10px; }
.mm-search__input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); padding: 6px 0 12px; color: var(--ink); outline: none; border-radius: 0; }
.mm-search__input::placeholder { color: var(--ink-40); font-style: italic; }
.mm-search__input::-webkit-search-cancel-button { display: none; }
.mm-search__results { list-style: none; margin-top: 18px; max-height: 56vh; overflow-y: auto; }
.mm-search__results li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.mm-search__results li a:hover .mm-sr__title, .mm-search__results li a:focus .mm-sr__title { color: var(--royal); }
.mm-sr__thumb { width: 44px; height: 44px; object-fit: cover; outline: 1px solid var(--hair); outline-offset: -1px; background: var(--cream-deep); }
.mm-sr__title { font-size: 20px; line-height: 1.2; }
.mm-sr__text { display: block; font-size: 15px; font-style: italic; color: var(--ink-60); }
.mm-sr__type { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-60); }
.mm-search__empty { padding: 16px 0; font-style: italic; color: var(--ink-60); }

/* announcement bar (home page) — sits above the nav */
.announce { position: fixed; top: 0; left: 0; right: 0; z-index: 101; background: var(--royal); color: var(--cream);
  text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.5; padding: 10px 44px; }
.announce a { color: inherit; }
.announce__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: inherit; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px 8px; opacity: .8; }
.has-announce .mm-nav { top: var(--announce-h, 38px); }
@media (max-width: 760px) {
  .announce { font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none; padding: 9px 40px; }
}
.has-announce .mm-panels, .has-announce .mm-search { margin-top: var(--announce-h, 38px); }
.has-announce .mm-mobile { margin-top: var(--announce-h, 38px); }

/* mobile menu */
.mm-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; color: var(--ink); }
.mm-burger span, .mm-burger::before, .mm-burger::after { content: ''; position: absolute; left: 11px; right: 11px;
  height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.mm-burger::before { top: 15px; } .mm-burger span { top: 21px; } .mm-burger::after { top: 27px; }
.mm-open .mm-burger::before { transform: translateY(6px) rotate(45deg); }
.mm-open .mm-burger span { opacity: 0; }
.mm-open .mm-burger::after { transform: translateY(-6px) rotate(-45deg); }
.mm-mobile { display: none; }

@media (max-width: 1080px) {
  .mm-links, .mm-panels, .mm-social { display: none; }
  .mm-burger { display: block; margin-left: 0; }
  .mm-search-btn { margin-left: auto; }
  .mm-search { top: 76px; }
  .mm-search__results li a { grid-template-columns: 40px 1fr; }
  .mm-sr__type { display: none; }
  .mm-brand img { height: 64px; }
  .mm-nav__inner { padding-top: 6px; padding-bottom: 6px; }
  .mm-brand span { font-size: 18px; }
  .mm-mobile { display: block; position: fixed; inset: 76px 0 0 0; z-index: 95; background: var(--cream);
    overflow-y: auto; padding: 12px var(--gutter) 48px; transform: translateY(-8px); opacity: 0;
    visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
  .mm-open .mm-mobile { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
  .mm-mobile details { border-bottom: 1px solid var(--hair); }
  .mm-mobile summary, .mm-mobile > a { display: flex; justify-content: space-between; align-items: center;
    list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--display); font-size: 24px;
    text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--hair); }
  .mm-mobile details summary { border-bottom: 0; }
  .mm-mobile summary::-webkit-details-marker { display: none; }
  .mm-mobile summary::after { content: '+'; font-family: var(--mono); font-size: 18px; }
  .mm-mobile details[open] summary::after { content: '\2212'; }
  .mm-mobile ul { list-style: none; padding: 0 0 18px; }
  .mm-mobile li a { display: block; padding: 9px 0; font-size: 20px; text-decoration: none; color: var(--ink-80); }
  .mm-open { overflow: hidden; }
}

/* =============================================================
   MAGAZINE HEADERS (.sh) — Magazine 1: text left, image right.
   .sh--left is Magazine 2, the mirror. Image bleeds to the edge.
   ============================================================= */
.sh { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: var(--pad-hero) 0 var(--pad-md) var(--gutter); }
.sh--left { grid-template-columns: 7fr minmax(320px, 5fr);
  padding: var(--pad-lg) var(--gutter) var(--pad-lg) 0; }
.sh__kick { font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--royal); margin-bottom: 18px; }
.sh__text h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 5.6vw, 92px); line-height: .95; color: var(--navy); }
.sh__text h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 1; color: var(--navy); }
.sh__text p { margin: 22px 0 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6;
  color: var(--ink-80); max-width: 40ch; text-wrap: pretty; }
.sh__text p em { color: var(--ink); }
.sh__img { aspect-ratio: 16 / 10; max-height: 76vh; width: 100%;
  background-size: cover; background-position: center; }
@media (max-width: 820px) {
  .sh, .sh--left { grid-template-columns: 1fr; padding: 96px 20px var(--pad-sm); }
  .sh__img { order: -1; aspect-ratio: 4 / 3; margin: 0 -20px; width: calc(100% + 40px); }
  .sh--left { padding-top: var(--pad-sm); }
}

/* ── stanza: centred heading, a few serif lines, one link ── */
.hb-story { text-align: center; padding: var(--pad-xl) 24px var(--pad-md); }
.hb-story h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.02; color: var(--navy); max-width: 22ch; margin: 0 auto; }
.hb-story p { margin: 20px auto 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65;
  color: var(--ink-80); max-width: 56ch; text-wrap: pretty; }

/* ── image row ── */
.hb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px);
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.hb-card__img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.hb-card__cap { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-60); }
@media (max-width: 760px) { .hb-row { grid-template-columns: 1fr 1fr; } .hb-row > :last-child:nth-child(odd) { display: none; } }

/* ── sections ── */
.section { padding: var(--pad-xl) 0; }
.section--deep { background: var(--cream-deep); }
.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 100px);
  align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.section__head p { color: var(--ink-60); font-style: italic; max-width: 48ch; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; gap: 14px; } }

/* =============================================================
   FOOTER — Royal Blue, cream type
   ============================================================= */
.foot { background: var(--royal); color: var(--cream); }
.foot a { text-decoration: none; }
.foot__band { padding: var(--pad-lg) 0; border-bottom: 1px solid var(--hair-light);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.foot__band h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1; }
.foot__band p { margin-top: 14px; font-size: 18px; color: rgba(250,249,246,.78); max-width: 42ch; }
.foot__band .hb-link { justify-self: start; }
.foot__signup { width: 100%; max-width: 520px; }
.foot__signup-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(250,249,246,.6); margin-bottom: 12px; }
.foot__signup-row { display: flex; border-bottom: 1px solid rgba(250,249,246,.7); }
.foot__signup-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); font: inherit; font-size: 19px; padding: 12px 0; }
.foot__signup-row input::placeholder { color: rgba(250,249,246,.5); }
.foot__signup-row input:focus { outline: none; }
.foot__signup-row:focus-within { border-bottom-color: var(--cream); }
.foot__signup-row button { background: transparent; border: 0; color: var(--cream); cursor: pointer; padding: 12px 0 12px 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.foot__signup-row button:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: clamp(28px, 3vw, 56px);
  padding: var(--pad-md) 0; }
.foot__brand img { height: 96px; width: auto; }
.foot__brand p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: rgba(250,249,246,.78); max-width: 32ch; }
.foot__col h4 { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(250,249,246,.6); margin-bottom: 16px; }
.foot__col ul { list-style: none; }
.foot__col li { padding: 5px 0; font-size: 17px; }
.foot__col a:hover { opacity: .65; }
.foot__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 0 34px; border-top: 1px solid var(--hair-light);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,249,246,.66); }
.foot__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__bottom a:hover { color: var(--cream); }
@media (max-width: 980px) {
  .foot__band { grid-template-columns: minmax(0, 1fr); }
  .foot__band > * { min-width: 0; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ── lightbox ── */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: var(--cream); padding: 24px; }
.lb.is-open { display: flex; }
.lb__btn { position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding: 14px; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb__btn:hover { color: var(--royal); }

/* "Join our newsletter" links (#footEmail) land with the whole Stay in touch band in view, below the fixed nav */
#footEmail { scroll-margin-top: 240px; }
@media (max-width: 820px) { #footEmail { scroll-margin-top: 330px; } }

/* proudly NZ line in the footer brand column: reads as the sign-off of the brand text */
.foot__brand .foot__nz { display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: none;
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: rgba(250,249,246,.85); }
.foot__nz-flag { flex: none; display: block; width: 30px; height: 15px; box-shadow: 0 0 0 1px rgba(250,249,246,.35); }
