/* ==========================================================================
   Maw Poke | Foundation
   Tokens, reset, typography, layout, buttons.
   Palette is lifted from the current mawpokeria.com and the logo artwork.
   Shape language is liquid glass: soft continuous radii, translucent
   materials, specular edges. Colours are untouched.
   ========================================================================== */

:root {
  /* Colours: the only thing carried over untouched from the old site. */
  --ink: #2B312F;
  --cream: #F2F0EB;
  /* The page ground: an icy, faintly blue white. */
  --ice: #F1F5F8;
  /* The warm tan the brand artwork is built on. It is no longer the page
     ground, only the fill of the bands and tiles that want to feel warm. */
  --sand: #E3CAAB;
  --sand-deep: #D9BE99;
  --white: #FFFFFF;
  --green: #425A32;
  --olive: #627023;
  --ink-12: rgba(43, 49, 47, 0.12);
  --ink-55: rgba(43, 49, 47, 0.55);
  --cream-60: rgba(242, 240, 235, 0.6);
  --sand-60: rgba(227, 202, 171, 0.6);

  /* Surfaces */
  --surface-canvas: var(--ice);
  --surface-raised: var(--white);
  --surface-dark: var(--ink);
  --surface-accent: var(--green);

  /* ------------------------------------------------------------ glass -- */
  /* A liquid glass surface is four things stacked: a blurred backdrop, a
     translucent tint, a bright specular rim, and a soft cast shadow. */
  --glass-blur: 26px;
  --glass-sat: 168%;
  --glass-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));

  --glass-fill: rgba(255, 255, 255, 0.52);
  --glass-fill-strong: rgba(255, 255, 255, 0.74);
  --glass-fill-soft: rgba(255, 255, 255, 0.34);
  --glass-stroke: rgba(255, 255, 255, 0.68);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.9),
               inset 0 -1px 0 rgba(255, 255, 255, 0.28),
               inset 1px 0 0 rgba(255, 255, 255, 0.34),
               inset -1px 0 0 rgba(255, 255, 255, 0.34);

  /* On ink and green bands the same material inverts. */
  --glass-fill-dark: rgba(255, 255, 255, 0.075);
  --glass-fill-dark-strong: rgba(255, 255, 255, 0.13);
  --glass-stroke-dark: rgba(255, 255, 255, 0.2);
  --glass-rim-dark: inset 0 1px 0 rgba(255, 255, 255, 0.28),
                    inset 0 -1px 0 rgba(255, 255, 255, 0.06);

  /* Elevation: green tinted so the shadow never reads as neutral grey. */
  --shadow-xs: 0 1px 2px rgba(43, 49, 47, 0.06);
  --shadow-sm: 0 2px 6px rgba(43, 49, 47, 0.05), 0 6px 16px rgba(43, 49, 47, 0.05);
  --shadow-md: 0 4px 10px rgba(43, 49, 47, 0.06), 0 16px 40px rgba(43, 49, 47, 0.09);
  --shadow-lg: 0 10px 24px rgba(43, 49, 47, 0.08), 0 34px 80px rgba(43, 49, 47, 0.14);
  --shadow-float: 0 18px 40px rgba(43, 49, 47, 0.12), 0 50px 110px rgba(43, 49, 47, 0.16);

  /* Type */
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  --text-caption: 0.75rem;
  --text-body-sm: 0.9375rem;
  --text-body: 1rem;
  --text-subheading: 1.0625rem;
  --text-heading-sm: clamp(1.25rem, 1rem + 1.1vw, 1.5rem);
  --text-heading-lg: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  --text-display: clamp(2.6rem, 0.9rem + 8.2vw, 7.5rem);
  --text-display-sm: clamp(2rem, 0.9rem + 5.2vw, 4.5rem);

  /* Tracking widens with size on caps, and stays close to normal on
     sentence case running text. */
  --track-caption: 0.016em;
  --track-body-sm: 0.004em;
  --track-body: 0.004em;
  --track-ui: 0.031em;
  --track-heading: 0.036em;
  --track-heading-lg: 0.05em;
  --track-display: 0.028em;

  /* Spacing */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-10: 10px;
  --sp-15: 15px;
  --sp-16: 16px;
  --sp-19: 19px;
  --sp-20: 20px;
  --sp-28: 28px;
  --sp-30: 30px;
  --sp-32: 32px;
  --sp-50: 50px;
  --sp-55: 55px;

  /* Layout */
  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 55px);
  --section-gap: clamp(64px, 9vw, 128px);
  --element-gap: 20px;

  /* Shape: a continuous radius scale replaces the old zero radius. */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-2xl: 44px;
  --radius-pill: 999px;

  --hairline: 1px solid var(--ink-12);

  --nav-h: 62px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-glass: cubic-bezier(0.32, 0.72, 0, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip, not hidden: the marquee bleeds past the viewport on purpose */
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 56px);
}

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--w-regular);
  line-height: 1.7;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--green); color: var(--cream); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-16);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-15) var(--sp-19);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: var(--text-body-sm);
  letter-spacing: var(--track-ui);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-16); }

/* ---------------------------------------------------------- typography -- */

.display {
  font-size: var(--text-display);
  font-weight: var(--w-bold);
  line-height: 0.94;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

.display-sm {
  font-size: var(--text-display-sm);
  font-weight: var(--w-bold);
  line-height: 1.02;
  letter-spacing: var(--track-heading-lg);
  text-transform: uppercase;
}

.heading-lg {
  font-size: var(--text-heading-lg);
  font-weight: var(--w-bold);
  line-height: 1.16;
  letter-spacing: var(--track-heading-lg);
  text-transform: uppercase;
}

.heading-sm {
  font-size: var(--text-heading-sm);
  font-weight: var(--w-bold);
  line-height: 1.3;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
}

.eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--w-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--green);
}
.section-ink .eyebrow,
.footer-band .eyebrow { color: inherit; opacity: 0.75; }

/* Running copy is sentence case now: caps at paragraph length fight the
   soft material and cost a third of the reading speed. */
.lead {
  font-size: var(--text-subheading);
  font-weight: var(--w-regular);
  line-height: 1.68;
  letter-spacing: var(--track-body);
  color: var(--ink-55);
}
.section-ink .lead,
.footer-band .lead { color: rgba(242, 240, 235, 0.78); }

.body-copy {
  font-size: var(--text-body);
  line-height: 1.75;
  letter-spacing: var(--track-body);
}

.caption {
  font-size: var(--text-caption);
  letter-spacing: var(--track-caption);
  text-transform: uppercase;
}

.italic-break { font-style: italic; }

/* ------------------------------------------------------------- layout -- */

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

.wrap-wide {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-gap); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }

.section-ink {
  background: var(--surface-dark);
  color: var(--cream);
}
.section-ink ::selection { background: var(--cream); color: var(--ink); }

.section-white { background: var(--surface-raised); }

.stack > * + * { margin-top: var(--element-gap); }
.stack-lg > * + * { margin-top: var(--sp-32); }

.center { text-align: center; }
.measure { max-width: 62ch; margin-inline: auto; }

.rule { height: 1px; background: var(--ink-12); border: 0; margin: 0; }
.section-ink .rule { background: var(--cream); opacity: 0.2; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  padding: var(--sp-15) var(--sp-28);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-body-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: background-color 0.28s var(--ease-glass),
              color 0.28s var(--ease-glass),
              border-color 0.28s var(--ease-glass),
              box-shadow 0.34s var(--ease-glass);
}

/* Specular sweep: a wide highlight that slides across on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 66%);
  transform: translate3d(-130%, 0, 0);
  transition: transform 0.7s var(--ease-glass);
  pointer-events: none;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translate3d(130%, 0, 0); }

.btn:active { transform: none; }

/* Black is action. The accent is never a button fill. */
.btn-fill {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-fill:hover, .btn-fill:focus-visible {
  background: var(--green);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Outline is a glass pill: it borrows the colour behind it. */
.btn-outline {
  background: var(--glass-fill-soft);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink);
  border-color: rgba(43, 49, 47, 0.22);
  box-shadow: var(--shadow-xs), var(--glass-rim);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--glass-fill-strong);
  border-color: rgba(43, 49, 47, 0.34);
  box-shadow: var(--shadow-md), var(--glass-rim);
}

.section-ink .btn-outline,
.footer-band .btn-outline {
  color: var(--cream);
  background: var(--glass-fill-dark);
  border-color: var(--glass-stroke-dark);
  box-shadow: var(--glass-rim-dark);
}
.section-ink .btn-outline:hover, .section-ink .btn-outline:focus-visible,
.footer-band .btn-outline:hover, .footer-band .btn-outline:focus-visible {
  background: var(--glass-fill-dark-strong);
  border-color: rgba(255, 255, 255, 0.4);
}

.section-ink .btn-fill,
.footer-band .btn-fill {
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md), inset 0 -1px 0 rgba(43, 49, 47, 0.08);
}
.section-ink .btn-fill:hover, .section-ink .btn-fill:focus-visible,
.footer-band .btn-fill:hover, .footer-band .btn-fill:focus-visible {
  background: var(--white);
  border-color: var(--white);
}
.section-ink .btn-fill::before,
.footer-band .btn-fill::before {
  background: linear-gradient(105deg, transparent 30%, rgba(43, 49, 47, 0.14) 48%, transparent 66%);
}

.btn-block { width: 100%; }

.btn-lg { padding: var(--sp-19) var(--sp-32); font-size: var(--text-body); }

.link-underline {
  text-transform: uppercase;
  font-size: var(--text-body-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-ui);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.18s var(--ease);
}
.link-underline:hover { opacity: 0.6; }

/* -------------------------------------------------------------- forms -- */

.field { display: block; }

.field-label {
  display: block;
  font-size: var(--text-caption);
  font-weight: var(--w-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
  color: var(--ink-55);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(43, 49, 47, 0.16);
  border-radius: var(--radius);
  padding: var(--sp-15) var(--sp-19);
  font-size: var(--text-body-sm);
  letter-spacing: var(--track-body);
  box-shadow: inset 0 1px 2px rgba(43, 49, 47, 0.05);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), background-color 0.24s var(--ease);
  appearance: none;
}
.field-textarea { min-height: 150px; resize: vertical; line-height: 1.7; border-radius: var(--radius-md); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(66, 90, 50, 0.14), inset 0 1px 2px rgba(43, 49, 47, 0.04);
  outline: none;
}
.field-input::placeholder, .field-textarea::placeholder { color: rgba(43, 49, 47, 0.42); }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B312F' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-19) center;
  background-size: 12px 8px;
  padding-right: 46px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-15);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  letter-spacing: var(--track-body-sm);
  color: var(--ink-55);
}
.field-check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border-radius: 7px;
  accent-color: var(--green);
}

.form-note {
  font-size: var(--text-caption);
  letter-spacing: var(--track-caption);
  color: var(--ink-55);
  line-height: 1.6;
}

.form-status {
  border: 1px solid rgba(43, 49, 47, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  padding: var(--sp-15) var(--sp-19);
  font-size: var(--text-body-sm);
  letter-spacing: var(--track-body-sm);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(98, 112, 35, 0.12); }

/* honeypot: clip instead of a negative offset, which would add sideways scroll */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
