/* ==========================================================================
   Lazy A Mae Creations — site styles
   Brand colors: teal #00535b · cream #f1e4cb · brown #440e00 · orange #b44313
   Brand fonts:  Droid Serif (via Noto Serif) · Paytone One · Playlist Script
   ========================================================================== */

/* Playlist Script by Artimasa (free, commercial use allowed), self-hosted.
   Allura from Google Fonts is the fallback while it loads. */
@font-face {
  font-family: "Playlist Script";
  src: url("../assets/fonts/PlaylistScript.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Brand */
  --teal: #00535b;
  --cream: #f1e4cb;
  --brown: #440e00;
  --orange: #b44313;

  /* Derived tints / shades */
  --teal-dark: #003f45;
  --teal-light: #1d6d74;
  --cream-light: #f8f0e0;
  --cream-dark: #e6d5b4;
  --brown-soft: #5c2a17;
  --rope-1: #d9c3a0;
  --rope-2: #cfae8a;
  --rope-3: #c49a80;

  /* Type */
  --font-heading: "Droid Serif", "Noto Serif", Georgia, serif;
  --font-body: "Droid Serif", "Noto Serif", Georgia, serif;
  --font-accent: "Paytone One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-script: "Playlist Script", "Allura", "Brush Script MT", cursive;
  /* Spaced capitals as on the banner ("GIVING OLD ROPES NEW LIFE") */
  --font-caps: "Montserrat", "Glacial Indifference", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
  --tab-overhang: 88px; /* how far the logo tab hangs below the header bar */
  --radius: 6px;
  --shadow: 0 6px 18px rgba(68, 14, 0, 0.14);

  /* Subtle paper grain for the cream background */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .27 0 0 0 0 .06 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image: var(--paper);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  /* Sticky footer: on short pages the footer sits at the bottom of the
     screen instead of floating up with empty space beneath it */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); }
a:hover { color: var(--orange); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--brown);
  text-wrap: balance;
}
.lede, .subtitle, .tagline, .intro { text-wrap: balance; }

p { margin: 0 0 1em; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--cream);
  color: var(--teal);
  padding: 8px 14px;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.script { font-family: var(--font-script); font-weight: 400; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--teal);
  color: var(--cream);
  height: var(--header-h);
  box-shadow: 0 2px 0 var(--teal-dark);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  align-self: flex-start;
  display: block;
  width: 210px;
  margin-right: 28px;
  padding: 12px 18px 14px;
  background-color: var(--cream);
  background-image: var(--paper);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
  flex: none;
}
.brand img { width: 100%; height: auto; }

.nav-divider {
  width: 2px;
  height: 52px;
  background: rgba(241, 228, 203, 0.55);
  margin-right: clamp(12px, 3vw, 40px);
  flex: none;
}

.site-nav { flex: 1; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 4px 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-list a:hover { color: #fff; border-bottom-color: rgba(180, 67, 19, 0.6); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--orange); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 2px solid rgba(241, 228, 203, 0.6);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  font: 700 0.95rem var(--font-heading);
  align-items: center;
  gap: 8px;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Decorative pieces
   -------------------------------------------------------------------------- */

/* Watercolor Aztec corner bursts (from the printed price tags / cards) */
.has-corners { position: relative; overflow: hidden; isolation: isolate; }

/* The artwork is a half-burst whose straight diagonal edge runs from
   (71%, 0) to (0, 69%). Shifting it by the midpoint of that edge
   (36%, 34%) puts the burst's center exactly on the section corner. */
.corner-burst {
  position: absolute;
  width: clamp(130px, 17vw, 250px);
  height: auto;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}
.corner-burst.tl { top: 0; left: 0; transform: translate(-36%, -34%); }
.corner-burst.tr { top: 0; right: 0; transform: translate(36%, -34%) scaleX(-1); }
.corner-burst.bl { bottom: 0; left: 0; transform: translate(-36%, 34%) scaleY(-1); }
.corner-burst.br { bottom: 0; right: 0; transform: translate(36%, 34%) scale(-1, -1); }


/* Orange rule with a diamond in the middle (as on the business cards) */
.diamond-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 80%);
  margin: 0 auto;
  color: var(--orange);
}
.diamond-rule::before,
.diamond-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.diamond-rule span {
  width: 12px; height: 12px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.diamond-rule.teal span { background: var(--teal); }

/* Line with diamond end caps (as on the custom-order sign) */
.capped-rule {
  position: relative;
  height: 2px;
  background: var(--orange);
  margin: 0 auto;
  width: min(520px, 90%);
}
.capped-rule::before,
.capped-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  background: var(--orange);
  transform: translateY(-50%) rotate(45deg);
}
.capped-rule::before { left: -4px; }
.capped-rule::after { right: -4px; }

/* Brush-stroke label (teal or orange) */
.brush {
  display: inline-block;
  position: relative;
  padding: 0.35em 1.4em 0.4em;
  color: var(--cream);
  background: var(--teal);
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  clip-path: polygon(
    2% 18%, 6% 4%, 14% 10%, 24% 2%, 38% 8%, 52% 1%, 66% 7%, 80% 2%, 92% 9%, 98% 3%,
    100% 30%, 97% 52%, 100% 76%, 96% 96%, 86% 90%, 72% 98%, 58% 92%, 44% 99%, 30% 93%,
    16% 99%, 6% 92%, 0% 80%, 3% 56%, 0% 36%
  );
}
h2.brush, h3.brush { margin: 0; color: var(--cream); }
.brush.orange { background: var(--orange); }
.brush.script {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  padding: 0.12em 1.1em 0.22em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .icon { width: 1.4em; height: 1.4em; }

.btn-primary { background: var(--teal); color: var(--cream); }
.btn-primary:hover { background: var(--teal-dark); color: var(--cream); }

.btn-outline { background: var(--cream-light); color: var(--teal); }
.btn-outline:hover { background: var(--cream); color: var(--teal-dark); }

.btn-light { background: var(--cream); color: var(--teal); border-color: var(--cream); }
.btn-light:hover { background: #fff; color: var(--teal-dark); }

.btn-lg { font-size: clamp(1.2rem, 2.4vw, 1.75rem); padding: 0.6em 1.5em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Image placeholders (swap each for an <img> once photos are ready)
   -------------------------------------------------------------------------- */
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      -35deg,
      var(--rope-1) 0 14px,
      var(--rope-2) 14px 22px,
      var(--rope-1) 22px 34px,
      var(--rope-3) 34px 40px
    );
  box-shadow: var(--shadow);
}
.placeholder::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(68, 14, 0, 0.35);
  border-radius: 4px;
  pointer-events: none;
}
.placeholder span {
  position: relative;
  z-index: 1;
  max-width: 80%;
  padding: 0.5em 0.9em;
  background: rgba(248, 240, 224, 0.92);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  border-radius: 4px;
}
.placeholder span::before {
  content: "Photo coming soon";
  display: block;
  font-family: var(--font-accent);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.placeholder.portrait { aspect-ratio: 4 / 5; }
.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.wide { aspect-ratio: 16 / 9; }

/* Real photos get the same frame and crop shapes as the placeholders.
   Tweak the focal point per photo with style="object-position: x% y%". */
.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--rope-1);
}
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.wide { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   Page sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-tight { padding-block: clamp(24px, 4vw, 44px); }

.page-hero {
  text-align: center;
  padding-top: calc(var(--tab-overhang) + 18px); /* clear the hanging logo tab */
  padding-bottom: clamp(12px, 2vw, 24px);
}
.page-hero h1 {
  color: var(--teal); /* teal bold serif, as on the "Custom Orders Welcome!" sign */
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 0.15em;
}
.page-hero .subtitle {
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  margin: 0.4em auto 0;
  max-width: 46ch;
}
.page-hero .script-subtitle {
  font-family: var(--font-script);
  color: var(--teal);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.45em 0 0;
}

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  color: var(--brown);
  margin: 0 0 12px;
}

/* ---- Home hero ---- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 420px;
  border-bottom: 2px solid var(--cream-dark);
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  padding-top: 112px; /* clear the hanging logo tab */
}
/* Matches the printed banner: script line, orange diamond rule, spaced caps */
.hero-script {
  font-family: var(--font-script);
  color: var(--teal);
  font-size: clamp(2.5rem, 3.9vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.home-hero h1 {
  font-family: var(--font-caps);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown);
  font-size: clamp(1.3rem, 2.15vw, 2.05rem);
  line-height: 1.3;
  margin: 18px 0 16px;
  text-wrap: wrap;
}
.home-hero .lede {
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 36ch;
  margin: 0 auto 28px;
  line-height: 1.4;
}
.home-hero-media { position: relative; min-height: max(420px, min(38vw, 720px)); }

/* Small laptops: keep the hero short enough that the wide photo isn't squeezed */
@media (min-width: 1101px) and (max-width: 1400px) {
  .home-hero-copy { padding-top: 100px; padding-bottom: 40px; }
  .home-hero .lede { margin-bottom: 22px; }
  .home-hero .btn-row { gap: 12px; flex-wrap: nowrap; }
  .home-hero .btn { font-size: 0.98rem; padding: 0.7em 1.05em; white-space: nowrap; }
}
.home-hero-media .placeholder {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.home-hero-media .placeholder::after { inset: 12px; }
.home-hero-media .photo {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ---- Category cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.card .placeholder,
.card .photo { transition: transform 0.25s ease; }
a.card:hover .placeholder,
a.card:hover .photo { transform: translateY(-4px); }
a.card:hover { color: inherit; }
.card .brush {
  margin-top: -18px;
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  min-width: 70%;
}
.card p {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 32ch;
}

/* ---- Story teaser (home) ---- */
.story-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.story-teaser .placeholder,
.story-teaser .photo { aspect-ratio: 21 / 9; }
.story-teaser-copy {
  border-left: 3px solid var(--orange);
  padding-left: clamp(16px, 3vw, 32px);
}
.story-teaser-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.text-link {
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---- Teal call-to-action band ---- */
.cta-band {
  background: var(--teal);
  color: var(--cream);
  padding-block: clamp(28px, 4vw, 44px);
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 6px;
}
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band { position: relative; overflow: hidden; }

/* ---- Footer ---- */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding-block: 20px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before {
  content: "";
  width: 2px; height: 28px;
  background: rgba(241, 228, 203, 0.45);
  margin-inline: clamp(14px, 3vw, 36px);
}
.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 1.05rem;
  padding: 6px 0;
}
.footer-links a { text-underline-offset: 4px; }
.footer-links a:hover { color: #fff; }
.footer-links .icon { width: 1.6em; height: 1.6em; }

.footer-legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}
.footer-legal .script { font-size: 1.5em; opacity: 1; }

/* ---- Our Creations ---- */
.creations-grid .card p { font-size: 1rem; }

/* ---- Our Story ---- */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.story-copy {
  padding-right: clamp(0px, 2vw, 28px);
  border-right: 2px solid var(--orange);
}
.story-copy p { font-size: 1.05rem; line-height: 1.55; }
.story-copy .mountains { width: 100%; max-width: 360px; margin: 18px auto 0; color: var(--brown); }
.story-side { display: grid; gap: 18px; }
.story-side-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.promise {
  text-align: center;
}
.promise .brush { margin-bottom: 12px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); padding-inline: 0.8em; }
.promise p { margin: 0 0 12px; font-size: 1rem; line-height: 1.45; }

/* ---- Custom Orders ---- */
.custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.custom-layout > .placeholder,
.custom-layout > .photo { aspect-ratio: 4 / 4.3; }
.process h2 {
  color: var(--teal);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  counter-increment: step;
}
.step-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.step-icon .icon { width: 32px; height: 32px; }
.steps h3 {
  font-size: 1.2rem;
  margin: 4px 0 4px;
}
.steps h3::before { content: counter(step) ". "; }
.steps p { margin: 0; font-size: 0.98rem; line-height: 1.45; }

.examples-head { text-align: center; margin-bottom: 14px; }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.examples-grid .placeholder,
.examples-grid .photo { aspect-ratio: 1 / 1; }


/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.25fr) minmax(0, 1.13fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 2px solid rgba(180, 67, 19, 0.7);
}
.contact-info li:last-child { border-bottom: 0; }
.info-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.info-icon .icon { width: 28px; height: 28px; }
.contact-info h3 { font-size: 1.2rem; margin: 0; }
.contact-info p { margin: 0; font-size: 0.98rem; line-height: 1.4; }
.contact-info a { font-size: 0.92rem; overflow-wrap: break-word; }

.find-us { margin-top: 18px; }
.find-us .brush { margin-bottom: 12px; }
.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-underline-offset: 4px;
}
.social-list a:hover { color: var(--orange); }
.social-list .icon { width: 36px; height: 36px; }
.icon-etsy { color: #f1641e; }
.icon-fb { color: #1877f2; }

.contact-center { text-align: center; }
.contact-center .tagline {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  margin: 0 0 6px;
}
.contact-center .intro { margin: 0 auto 18px; max-width: 44ch; }
.contact-center .btn-row { margin-top: 20px; gap: 14px; }
.contact-center .btn-row .btn { flex: 1 1 auto; white-space: nowrap; font-size: 1rem; padding-inline: 1.1em; }

.form-card {
  background: var(--cream-light);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow);
}
.form-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(1.25rem, 1.75vw, 1.6rem);
  white-space: nowrap;
  margin-bottom: 16px;
}
.form-card h2 .star { width: 14px; height: 14px; color: var(--teal); flex: none; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--brown);
  background: #fffaf1;
  border: 1.5px solid #a8907a;
  border-radius: var(--radius);
  padding: 10px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 83, 91, 0.2);
}
.form-card .btn { width: 100%; }
.hidden-field { display: none; }


/* ---- Simple pages (thank-you, 404) ---- */
.simple-page {
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
  padding-top: calc(var(--tab-overhang) + 40px);
  min-height: 55vh;
}
.simple-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--teal); }
.simple-page .script-line {
  font-family: var(--font-script);
  color: var(--teal);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}
.simple-page p { max-width: 46ch; margin: 18px auto 28px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --tab-overhang: 62px; }
  /* stacked home hero: keep the photo out from under the logo tab */
  main > .home-hero:first-child { padding-top: var(--tab-overhang); }
  /* Stack the hero (photo on top) wherever a side-by-side layout would
     squeeze the wide hero photo */
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-media { min-height: 0; order: -1; }
  .home-hero-media .placeholder,
  .home-hero-media .photo { position: relative; aspect-ratio: 16 / 10; max-height: 640px; }
  .home-hero-copy { padding-top: 36px; }
  .nav-list a { font-size: 1.02rem; }
  .brand { width: 180px; margin-right: 18px; }
  .story-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .story-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-side-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-copy { border-right: 0; padding-right: 0; }
  .custom-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .custom-layout > .placeholder,
  .custom-layout > .photo { aspect-ratio: 4 / 3; }
  .custom-examples { grid-column: 1 / -1; }
  .examples-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .contact-center { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand { width: 116px; padding: 6px 11px 8px; border-radius: 0 0 10px 10px; }
  :root { --tab-overhang: 26px; }
  .nav-divider { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--teal);
    border-top: 1px solid rgba(241, 228, 203, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    padding-left: calc(132px + var(--gutter) + 12px);
  }
  .nav-list a { display: block; padding: 12px 4px; font-size: 1.15rem; border-bottom-width: 3px; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .story-teaser { grid-template-columns: 1fr; }
  .story-teaser-copy { border-left: 0; padding-left: 0; border-top: 3px solid var(--orange); padding-top: 16px; }

  .story-layout,
  .custom-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .story-side { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-center { order: 0; }

    .footer-links { flex-direction: column; gap: 4px; }
  .footer-links li + li::before { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav-list { padding-left: var(--gutter); }
  .card-grid { grid-template-columns: 1fr; }
  .card .placeholder,
  .card .photo { aspect-ratio: 16 / 10; }
  .story-side-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .steps li { grid-template-columns: 52px 1fr; }
  .step-icon { width: 52px; height: 52px; }
  .step-icon .icon { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Home: six category cards in three columns
   -------------------------------------------------------------------------- */
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(28px, 3.5vw, 44px); }
@media (max-width: 900px) { .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid.three { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Our Creations: filterable gallery
   -------------------------------------------------------------------------- */
.anchor { position: relative; top: -20px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}
.filter-btn {
  font: 700 1rem var(--font-heading);
  color: var(--teal);
  background: var(--cream-light);
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { background: var(--cream); }
.filter-btn[aria-pressed="true"] { background: var(--teal); color: var(--cream); }

.category-intros { text-align: center; min-height: 3.4em; margin-bottom: clamp(18px, 3vw, 30px); }
.category-intro {
  margin: 0 auto;
  max-width: 60ch;
  font-style: italic;
  font-size: 1.08rem;
  text-wrap: balance;
}

/* Masonry-style grid: photos keep their natural shape, nothing gets cropped */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 280px;
  column-gap: clamp(14px, 2vw, 24px);
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 24px);
}
.gallery-item[hidden] { display: none; }
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-open img {
  width: 100%;
  height: auto;
  background: var(--rope-1);
  transition: transform 0.35s ease;
}
.gallery-open:hover img { transform: scale(1.03); }
.gallery-caption {
  margin: 8px 2px 0;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.gallery-cta {
  background: var(--teal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gallery-cta .script { font-size: 2.1rem; line-height: 1.05; margin: 0 0 10px; }
.gallery-cta p { margin: 0 0 18px; }

/* Photo viewer */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: clamp(12px, 3vw, 40px);
  border: 0;
  background: rgba(30, 8, 0, 0.92);
  color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(30, 8, 0, 0.6); }
.lb-figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100% - 3.5em);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lb-caption { margin-top: 14px; font-style: italic; font-size: 1.1rem; text-align: center; }
.lb-btn {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(241, 228, 203, 0.6);
  background: rgba(0, 83, 91, 0.85);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: var(--teal); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 1.8rem; }
@media (max-width: 600px) {
  .lightbox[open] { gap: 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-img { max-height: calc(100% - 9em); }
  .filter-btn { font-size: 0.92rem; padding: 0.45em 0.95em; }
  .gallery { columns: 2; }
}

/* Section headings inside a page: heading + the standard diamond rule */
.section-heading { text-align: center; margin-bottom: clamp(22px, 3vw, 34px); }
.section-heading h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.3em; }
