/* Moody Ink Studio */

:root {
  /* Brand */
  --cherry: #6B0F1F;
  --sky: #BCD9F0;
  --mist: #DDECF8;
  --deep: #9CC2E5;

  /* Scheme (set per section by body[data-scheme]) */
  --bg: var(--sky);
  --fg: var(--cherry);
  --solid-bg: var(--cherry);
  --solid-fg: var(--sky);
  --focus: var(--cherry);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --label: "Big Shoulders Text", "Arial Narrow", sans-serif;
  --text: "Spectral", Georgia, serif;

  --gutter: clamp(16px, 3.5vw, 48px);
  --header-h: 76px;
  --max: 1440px;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

/* Cherry ink always sits on blue; sections shift between three shades of blue */
body[data-scheme="sky"]  { --bg: var(--sky); }
body[data-scheme="mist"] { --bg: var(--mist); }
body[data-scheme="deep"] { --bg: var(--deep); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.6 var(--text);
  transition: background-color .6s ease, color .6s ease;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 900; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--solid-bg); color: var(--solid-fg); font-family: var(--label); font-weight: 700; }
.skip:focus { top: 12px; }

/* The eye: a mask cut from the eye linocut, painted in the current colour */
.eye {
  display: inline-block;
  aspect-ratio: 900 / 581;
  background-color: currentColor;
  -webkit-mask: var(--eye-mask) center / contain no-repeat;
          mask: var(--eye-mask) center / contain no-repeat;
}

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  line-height: .84;
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .55rem 1.35rem .6rem;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 700 1.15rem/1 var(--label);
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.btn--solid:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--small { min-height: 44px; padding: .45rem 1rem .5rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0 var(--gutter);
  background: var(--bg);
  transition: background-color .6s ease, color .6s ease;
  font: 700 1.15rem/1 var(--label);
}
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; padding: .5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.nav a:hover { background-size: 100% 2px; }
.nav--right { margin-left: auto; }
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand .eye { width: 62px; }
.brand__name { font: 800 1.35rem/1 var(--display); text-transform: uppercase; white-space: nowrap; }

.header-pills { display: flex; gap: .5rem; margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem 1.05rem .4rem;
  border: 2px solid var(--cherry);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--cherry); color: var(--sky); }

.menu-toggle { display: none; align-items: center; gap: .55rem; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s; }
.menu-toggle__bars { position: relative; translate: 0 -4px; }
.menu-toggle__bars::before { content: ""; position: absolute; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem var(--gutter) 2rem;
  background: var(--cherry);
  color: var(--sky);
  --focus: var(--sky);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { padding: .35rem 0; font: 900 clamp(2.6rem, 12vw, 4rem)/1 var(--display); text-transform: uppercase; text-decoration: none; }
.menu__foot { font: 700 1.15rem/1.2 var(--label); }

@media (max-width: 959px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-pills { display: none; }
  .brand__name { display: none; }
  .brand .eye { width: 70px; }
}

main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.hero__eye {
  display: block;
  width: min(72vw, 620px, calc((100svh - var(--header-h)) * .58));
  margin: 0 auto clamp(1rem, 2.5vw, 1.75rem);
  animation: eye-open 1.25s .25s var(--ease-out) both;
}
@keyframes eye-open {
  from { clip-path: inset(50% 0 50% 0); transform: scaleY(.6); }
  60%  { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 0 0 0); transform: none; }
}
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  line-height: .82;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  text-align: left;
}
.hero__lede { max-width: 34rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* ---------- Statement ---------- */
.statement {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem var(--gutter);
  align-items: start;
}
.statement__title {
  grid-column: 1 / 9;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .84;
  text-wrap: balance;
}
.statement__body { grid-column: 1 / 7; max-width: 36rem; font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
.statement__figure { grid-column: 9 / 13; grid-row: 1 / 3; margin: 0; }
.statement__figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.statement__figure figcaption { margin-top: .6rem; font-style: italic; font-size: 1rem; }
@media (max-width: 799px) {
  .statement { grid-template-columns: 1fr; }
  .statement__title, .statement__body, .statement__figure { grid-column: 1; grid-row: auto; }
  .statement__figure { max-width: 22rem; }
}

/* ---------- Shared section bits ---------- */
.soon-gallery, .pets, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem var(--gutter);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head p { max-width: 30rem; }
@media (max-width: 799px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Coming soon: photo collage ---------- */
.collage { columns: 3 15rem; column-gap: clamp(.75rem, 1.5vw, 1.25rem); }
.collage__item { margin: 0 0 clamp(.75rem, 1.5vw, 1.25rem); break-inside: avoid; }
.collage__item img { display: block; width: 100%; height: auto; }
@media (max-width: 599px) { .collage { columns: 2; } }

/* ---------- Pet portraits ---------- */
.pets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pets__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.pets__lede { margin-top: 1.5rem; max-width: 32rem; font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
.pets__prices { margin: 0 0 1.5rem; max-width: 24rem; }
.pets__prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-top: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.pets__prices div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.pets__prices dt { font: 700 1.15rem/1.2 var(--label); }
.pets__prices dd { margin: 0; font: 700 1.3rem/1 var(--label); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 799px) { .pets { grid-template-columns: 1fr; } .pets__media { max-width: 26rem; } }
.steps { list-style: none; counter-reset: step; margin: 2rem 0; padding: 0; max-width: 34rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  padding: 1rem 0;
  border-top: 2px solid var(--fg);
}
.steps li::before { content: counter(step); font: 900 2.6rem/.9 var(--display); }
.steps li:last-child { border-bottom: 2px solid var(--fg); }
.steps strong { display: block; font: 700 1.25rem/1.2 var(--label); margin-bottom: .2rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__intro p { max-width: 30rem; margin-top: 1.5rem; }
.contact__details { margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact__details div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-top: .9rem; border-top: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.contact__details dt { font: 700 1.1rem/1.5 var(--label); }
.contact__details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 799px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font: 700 1.15rem/1.2 var(--label); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 2px solid var(--fg);
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  font-size: 1.05rem;
}
.field select option { color: var(--cherry); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-width: 4px; background: color-mix(in srgb, var(--cherry) 14%, transparent); }
.form__error { margin: 0; padding: .75rem 1rem; background: var(--cherry); color: var(--sky); font: 700 1.05rem/1.35 var(--label); }
.form__error[hidden] { display: none; }
.form .btn { justify-self: start; }
.form__note { font-size: .95rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; overflow: hidden; }
.wordmark {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font: 900 21.5vw/.78 var(--display);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); max-width: var(--max); margin: 0 auto; padding-top: 1.5rem; border-top: 2px solid var(--fg); }
.site-footer__head { font: 700 1.2rem/1.2 var(--label); margin-bottom: .4rem; }
.site-footer__small { max-width: var(--max); margin: 2.5rem auto 0; font-size: .95rem; }
@media (max-width: 699px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Shop badge ---------- */
.badge {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 25;
  display: grid;
  place-items: center;
  width: clamp(88px, 8vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--cherry);
  background: var(--mist);
  color: var(--cherry);
  text-decoration: none;
  transition: background-color .6s ease, color .6s ease, opacity .3s, scale .2s;
}
.badge:hover { scale: 1.06; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: var(--spin, 0deg); }
.badge text { fill: currentColor; font: 700 13.4px var(--label); letter-spacing: .04em; }
.badge .eye { width: 44%; }
.badge.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .badge svg { rotate: 0deg; }
}
