/* ==========================================================
   Katie Jagla Style — site styles
   Palette from 260909_KJS_UPDATES + brand asset colors
   ========================================================== */

@font-face {
  font-family: "TAY Crumb";
  src: url("fonts/tay-crumb.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "KJ Marker";
  src: url("fonts/kj-marker.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --sand:    #e7d3b8;
  --cream:   #f3ebe0;
  --olive:   #848213;
  --sage:    #a1b1a6;
  --mustard: #dabd19;
  --cobalt:  #005cd7;
  --red:     #d82020;
  --orange:  #fd8c3c;
  --sky:     #3ea8f5;
  --navy:    #1f2a6b;
  --ink:     #0f0f10;

  /* Brand type. Spirits Neutral loads from Adobe Fonts (see index.html). */
  --font-display: "TAY Crumb", "Arial Black", sans-serif;
  --font-serif:   "spirits-neutral", "Instrument Serif", "Times New Roman", serif;
  --font-hand:    "KJ Marker", "Comic Sans MS", cursive;
  --track-hand:   -0.04em;   /* matches Illustrator tracking -40 */

  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.35;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.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;
}

/* ---------- Shared ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8em 1.9em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--sand { background: var(--sand); color: var(--navy); font-size: 0.8rem; }
.btn--red { background: var(--red); color: var(--cream); }

/* Katie's doodles as fixed decoration */
.deco { position: absolute; height: auto; pointer-events: none; z-index: 1; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;          /* full first screen */
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px var(--gutter) clamp(64px, 8vw, 120px); text-align: center;
}
.hero__logo {
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.hero__logo picture { display: block; width: min(100%, 1320px, calc((100svh - 280px) * 1.84)); }
.hero__gif { width: 100%; height: auto; }
.hero__line {
  margin: clamp(0px, .6vw, 10px) 0 0;
  display: flex; flex-direction: column; align-items: center; gap: .2em;
}
.hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .26em; text-transform: uppercase;
  line-height: 1;
}
.hero__quirk {
  margin-top: .45em;
  font-family: var(--font-hand); letter-spacing: var(--track-hand);
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1;
  color: var(--red); transform: rotate(-3deg);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about { position: relative; background: var(--olive); padding: clamp(56px, 7vw, 110px) var(--gutter) clamp(110px, 12vw, 180px); }
.about__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(32px, 5vw, 88px); align-items: start;
}
.portrait { margin: 0; position: relative; transform: rotate(-2deg); aspect-ratio: 900 / 1031; }
.portrait__photo {
  position: absolute; inset: 10% 10% 9.5% 9.5%;
  background: var(--sage);
  overflow: hidden;
}
.portrait__photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { display: none; }
.portrait__photo.is-missing img { display: none; }
.portrait__photo.is-missing .portrait__ph {
  display: grid; place-items: center; height: 100%;
  font-family: var(--font-hand); letter-spacing: var(--track-hand); font-size: clamp(20px, 2vw, 30px); text-align: center; color: var(--cream);
}
.portrait__frame { position: absolute; inset: 0; width: 100%; height: 100%; }

.about__copy { position: relative; padding-top: clamp(0px, 2vw, 24px); }
.about__copy p { margin: 0 0 1em; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.28; max-width: 30em; }
.about__illo { width: clamp(150px, 20vw, 250px); height: auto; margin: 4px 0 0 auto; transform: rotate(4deg); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  position: relative; background: var(--cobalt); color: var(--sand);
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(28px, 4vw, 48px);
}
.contact__wave { position: absolute; left: 0; right: 0; top: 1px; transform: translateY(-100%); line-height: 0; }
.contact__wave { pointer-events: none; }
.contact__wave svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.contact__wave path { fill: var(--cobalt); }
.about__wave path { fill: var(--olive); }

.contact__inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.contact__title {
  margin: 0 0 clamp(28px, 4vw, 56px); text-align: center;
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(68px, 9vw, 132px); line-height: 1; letter-spacing: -0.02em;
}

.form { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.field { position: relative; }
.field label {
  position: absolute; top: 16px; left: 22px;
  font-family: var(--font-display);
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sand); pointer-events: none;
}
.field input, .field textarea {
  width: 100%; background: transparent;
  border: 2px solid var(--sand); border-radius: 14px;
  color: var(--cream); font: inherit; font-size: 1.1rem;
  outline: none; transition: border-color .15s, background .15s;
}
.field input { height: 76px; padding: 34px 22px 8px; }
.field textarea { min-height: 220px; padding: 42px 22px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cream); background: rgba(255,255,255,.06); }
.form .btn { justify-self: center; margin-top: 8px; }
.form-note { text-align: center; margin: 0; font-family: var(--font-hand); letter-spacing: var(--track-hand); font-size: 1.15rem; color: var(--cream); }

.footer {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.footer > :last-child { justify-self: end; }
.footer__mark { width: 40px; height: auto; }
.footer__links { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }


/* ==========================================================
   MOTION: hand-drawn "line boil"
   Applied to Katie's line illustrations only. Photos stay still.
   ========================================================== */
@keyframes boil {
  0%      { filter: url(#boil-a); }
  33.33%  { filter: url(#boil-b); }
  66.66%  { filter: url(#boil-c); }
}
.deco,
.about__illo,
.portrait__frame,
.footer__mark {
  animation: boil .45s steps(1) infinite;
}
.deco:nth-of-type(2n) { animation-delay: -.15s; }
.about__illo { animation-delay: -.2s; }
.portrait__frame { animation-delay: -.3s; }

@media (prefers-reduced-motion: reduce) {
  .deco, .about__illo, .portrait__frame, .footer__mark { animation: none !important; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 720px) {
  .hero { min-height: 70vh; min-height: 70svh; }
  .about__inner { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 340px); margin: 0 auto; }
  .about__illo { margin: 8px auto 0; }
  .deco--hide-m { display: none; }
  .field label { left: 18px; }
  .field input, .field textarea { padding-left: 18px; padding-right: 18px; }
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer > :last-child { justify-self: center; }
  .footer__links { justify-content: center; }
  .footer__mark { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Signature hero line: longer, so allow a clean two-line wrap */
.hero__quirk.hero__quirk--sig { white-space: pre-line; text-align: center; line-height: 1.05; }
