/* ==========================================================================
   Linda Kane — gallery & studio store
   Design system modelled on goodman-gallery.com:
   monochrome palette, Helvetica Neue UI + serif display, hairline rules,
   swipe underlines, slow cubic-bezier reveals.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --black: #000;
  --white: #fff;
  --grey: #878787;         /* secondary text */
  --grey-mid: #d2d2d2;     /* disabled / faint text */
  --rule: #e9e9e9;         /* hairlines + hover fills */
  --panel: #f2f2f2;        /* tinted section backgrounds */
  --sold: #b2b2b2;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Times New Roman", Times, Georgia, serif;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-soft: cubic-bezier(0.4, 0.4, 0.1, 1);
  --ease-swipe: cubic-bezier(0.61, 1, 0.88, 1);

  --gutter: 20px;
  --header-h: 62px;
  --max: 1680px;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 44px; } }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--black); color: var(--white); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.d1 { font-size: clamp(40px, 8.4vw, 116px); }
.d2 { font-size: clamp(32px, 5.4vw, 74px); }
.d3 { font-size: clamp(26px, 3.4vw, 46px); }
.d4 { font-size: clamp(21px, 2.2vw, 30px); line-height: 1.12; }

.serif      { font-family: var(--font-serif); font-weight: 300; }
.serif-em   { font-family: var(--font-serif); font-weight: 300; font-style: italic; }

.eyebrow {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grey);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.38;
  letter-spacing: -0.008em;
}

.prose p { max-width: 62ch; margin-bottom: 1.15em; font-size: 15px; line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose--serif p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.62;
}

.muted { color: var(--grey); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 1080px; }

.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--panel { background: var(--panel); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .meta,
.section--dark .muted { color: var(--grey-mid); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.section--dark .rule { background: #333; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.section--dark .section-head { border-color: #333; }

.stack-lg > * + * { margin-top: clamp(40px, 6vw, 88px); }

/* --------------------------------------------------------------------------
   5. Links & buttons
   -------------------------------------------------------------------------- */

/* Underline that swipes out to the right then back in from the left. */
@keyframes swipeRightThenLeft {
  0%   { transform-origin: 100% 100%; transform: scaleX(1); }
  49%  { transform-origin: 100% 100%; transform: scaleX(0); }
  50%  { transform-origin: 0 100%;    transform: scaleX(0); }
  100% { transform-origin: 0 100%;    transform: scaleX(1); }
}

.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: 0 100%;
}
.link:hover::after { animation: swipeRightThenLeft 0.62s var(--ease-soft); }

.link--quiet::after { background: currentColor; opacity: 0.35; }
.link--quiet:hover::after { opacity: 1; }

/* Link with no rule until hovered */
.link-hidden { position: relative; display: inline-block; padding-bottom: 2px; }
.link-hidden::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 100%;
  transition: transform 0.45s var(--ease-out);
}
.link-hidden:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-swipe),
              color 0.25s var(--ease-swipe),
              border-color 0.25s var(--ease-swipe);
}
.btn:hover { background: var(--black); color: var(--white); }

.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--black); }

.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--black); }

.btn--block { width: 100%; }

.btn--wide { min-height: 54px; padding-inline: 36px; }

.btn[disabled], .btn.is-disabled {
  pointer-events: none;
  border-color: var(--rule);
  background: var(--rule);
  color: var(--sold);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Arrow that nudges on hover */
.arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow, .link:hover .arrow, .link-hidden:hover .arrow { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.4s linear, color 0.4s linear, border-color 0.4s linear,
              transform 0.5s var(--ease-out);
}

/* Transparent while sitting on top of a hero image */
.site-header--over {
  background: transparent;
  border-color: transparent;
  color: var(--white);
}
.site-header--over.is-solid {
  background: var(--white);
  border-color: var(--rule);
  color: var(--black);
}
.site-header.is-hidden { transform: translateY(-101%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span { display: block; font-family: var(--font-sans); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 4px; opacity: 0.6; }

.nav-primary { display: none; }
@media (min-width: 1000px) {
  .nav-primary { display: flex; align-items: center; gap: 30px; }
}
.nav-primary a {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-primary a.is-current::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 18px; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: currentColor;
  font-size: 10px;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease-out);
}
/* White numeral over a currentColor pill: `difference` flips it to whichever
   of black/white stays legible, so one rule covers the light and dark header. */
.cart-count b { color: var(--white); font-weight: 400; mix-blend-mode: difference; }
.cart-count.is-bump { transform: scale(1.35); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
}
@media (min-width: 1000px) { .menu-toggle { display: none; } }
.menu-toggle i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.2s linear;
}
body.menu-open .menu-toggle i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-toggle i:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle i:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile overlay menu */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--white);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.35s linear, transform 0.5s var(--ease-out), visibility 0.35s;
}
body.menu-open .menu-panel { opacity: 1; visibility: visible; transform: none; }

.menu-panel nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.menu-panel nav a:first-child { border-top: 1px solid var(--rule); }

.menu-foot { display: grid; gap: 6px; padding-top: 30px; }

/* Push page content below the fixed bar (heroes opt out). */
.page-top { padding-top: var(--header-h); }

/* --------------------------------------------------------------------------
   7. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-soft), transform 1.05s var(--ease-soft);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.06s !important; }
}

/* --------------------------------------------------------------------------
   8. Media frames
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s linear, transform 0.9s var(--ease-out), filter 0.6s linear;
}
.frame img.is-loaded { opacity: 1; }
.frame--ratio-3-4 { aspect-ratio: 3 / 4; }
.frame--ratio-4-3 { aspect-ratio: 4 / 3; }
.frame--ratio-1-1 { aspect-ratio: 1 / 1; }
.frame--ratio-16-9 { aspect-ratio: 16 / 9; }
.frame--contain { background: var(--panel); }
.frame--contain img { object-fit: contain; }

a:hover > .frame img,
.card:hover .frame img { transform: scale(1.035); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 34%, rgba(0,0,0,0.62) 100%);
}
.hero__body { position: relative; width: 100%; padding-block: clamp(40px, 7vw, 92px); }
.hero__title { max-width: 16ch; }
.hero__sub { max-width: 46ch; margin-top: 20px; color: rgba(255,255,255,0.86); }
.hero__actions { margin-top: 30px; }

.hero--short { min-height: 62svh; }

/* Page banner (interior pages) */
.page-head { padding-block: clamp(34px, 5vw, 68px) clamp(24px, 3vw, 40px); }
.page-head .crumbs { margin-bottom: 18px; }
.crumbs { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.crumbs a:hover { color: var(--black); }
.crumbs span { padding: 0 7px; color: var(--grey-mid); }

/* --------------------------------------------------------------------------
   10. Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(26px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--works { grid-template-columns: repeat(2, 1fr); }
.grid--shop  { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 700px)  { .grid--works { grid-template-columns: repeat(3, 1fr); } .grid--shop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--works { grid-template-columns: repeat(4, 1fr); } .grid--shop { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; }
.card__body { padding-top: 12px; }
.card__title { font-family: var(--font-serif); font-weight: 300; font-size: 18px; line-height: 1.22; }
.card__title em { font-style: italic; }
.card__meta { margin-top: 4px; font-size: 12px; color: var(--grey); }
.card__price { margin-top: 7px; font-size: 12px; letter-spacing: 0.02em; }
.card__price.is-sold { color: var(--sold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }

.tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag--dark { background: var(--black); color: var(--white); }

/* Editorial split */
.split { display: grid; gap: clamp(26px, 4vw, 60px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
  .split--flip > *:first-child { order: 2; }
}

/* Feature strip: three stacked editorial rows */
.feature-row { display: grid; gap: 20px clamp(20px, 3vw, 48px); padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .feature-row { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

/* --------------------------------------------------------------------------
   11. Filters / toolbar
   -------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding-block: 14px;
  border-block: 1px solid var(--rule);
  margin-bottom: clamp(26px, 3vw, 44px);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 0.22s var(--ease-swipe), background-color 0.22s var(--ease-swipe), color 0.22s var(--ease-swipe);
}
.chip:hover { border-color: var(--black); }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 36px 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}
select:focus-visible { outline: 1px solid var(--black); }

.result-count { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

.empty-state { padding-block: 80px; text-align: center; color: var(--grey); }

/* --------------------------------------------------------------------------
   12. Detail pages
   -------------------------------------------------------------------------- */
.detail { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 940px) {
  .detail { grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr); }
  .detail__aside { position: sticky; top: calc(var(--header-h) + 34px); }
}

.detail__stage {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 46px);
  background: var(--panel);
  cursor: zoom-in;
}
.detail__stage img { max-height: 76svh; width: auto; max-width: 100%; object-fit: contain; }
.detail__stage--static { cursor: default; }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  padding: 2px;
  transition: border-color 0.25s var(--ease-swipe);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-active, .thumbs button:hover { border-color: var(--black); }

.spec { border-top: 1px solid var(--rule); }
.spec div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.spec dt { color: var(--grey); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; padding-top: 1px; }
.spec dd { margin: 0; }

.price-lg { font-family: var(--font-serif); font-weight: 300; font-size: 30px; letter-spacing: -0.01em; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; }
.qty button { width: 40px; height: 44px; font-size: 16px; line-height: 1; }
.qty button:hover { background: var(--rule); }
.qty button:first-child { border-radius: 999px 0 0 999px; }
.qty button:last-child { border-radius: 0 999px 999px 0; }
.qty span { min-width: 34px; text-align: center; font-size: 13px; }

.accordion { border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.accordion__head i {
  position: relative;
  width: 11px; height: 11px;
  flex: 0 0 auto;
}
.accordion__head i::before, .accordion__head i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.accordion__head i::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__head i::after { transform: rotate(0deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease-soft), opacity 0.4s linear;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; opacity: 1; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: 16px; font-size: 14px; line-height: 1.65; color: #333; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(255,255,255,0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s linear, visibility 0.35s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88svh; width: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   13. Cart
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; gap: clamp(30px, 4vw, 60px); align-items: start; }
@media (min-width: 940px) { .cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr); } }

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) { .cart-row { grid-template-columns: 116px 1fr auto; align-items: start; } }
.cart-row__img { background: var(--panel); aspect-ratio: 1; overflow: hidden; }
.cart-row__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cart-row__line { font-size: 14px; white-space: nowrap; }

.summary { padding: 26px; background: var(--panel); }
.summary__line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; }
.summary__line--total { border-top: 1px solid var(--grey-mid); margin-top: 10px; padding-top: 16px; font-size: 17px; font-family: var(--font-serif); }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--white);
  font-size: 14px;
  transition: border-color 0.22s var(--ease-swipe);
}
.field select { border-radius: 0; text-transform: none; letter-spacing: 0; font-size: 14px; padding-right: 36px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--black); }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note { font-size: 12px; color: var(--grey); margin-top: 10px; }

.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
}
.newsletter input::placeholder { color: inherit; opacity: 0.55; }
.newsletter input:focus { outline: none; }

.form-status {
  margin-top: 14px;
  padding: 13px 16px;
  background: var(--panel);
  font-size: 13px;
  display: none;
}
.form-status.is-shown { display: block; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(48px, 6vw, 84px) 30px; }
.site-footer a:hover { opacity: 0.62; }
.footer-top { display: grid; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid #333; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 60px; } }

.footer-cols { display: grid; gap: 32px; padding-block: 46px; }
@media (min-width: 620px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h4 { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; font-weight: 400; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a, .footer-cols p { font-size: 13px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid #333;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   16. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  right: var(--gutter);
  bottom: 22px;
  z-index: 130;
  max-width: 330px;
  padding: 15px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 0.3s linear, transform 0.5s var(--ease-out), visibility 0.3s;
}
.toast.is-shown { opacity: 1; transform: none; visibility: visible; }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.hide-s { display: none; }
@media (min-width: 700px) { .hide-s { display: initial; } }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.site-header--over:not(.is-solid) :focus-visible { outline-color: var(--white); }
