/* Furbox: a small portrait gallery. Gallery-green walls (limewash by day), gilt for everything you can press,
   and every style hung in the frame it would get in a real museum. */

:root {
  --wall: #e4e8df;
  --wall-deep: #d8ded3;
  --ink: #13221c;
  --ink-soft: #46554d;
  --placard: #f8f7f2;
  --placard-ink: #1b2620;
  --line: rgb(19 34 28 / 0.14);
  --gilt-1: #f1d58a;
  --gilt-2: #c99a3f;
  --gilt-3: #8c6322;
  --gilt-ink: #1d1505;
  --light: rgb(255 246 214 / 0.55);
  --shadow: 0 22px 40px -18px rgb(24 40 30 / 0.45), 0 4px 10px -4px rgb(24 40 30 / 0.3);
  --radius: 10px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #11241d;
    --wall-deep: #0c1b15;
    --ink: #efebdf;
    --ink-soft: #b2bdb4;
    --placard: #f3efe2;
    --placard-ink: #1b2620;
    --line: rgb(239 235 223 / 0.14);
    --light: rgb(255 226 160 / 0.16);
    --shadow: 0 26px 48px -18px rgb(0 0 0 / 0.75), 0 6px 12px -6px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Limewash grain, fixed so it never repaints while scrolling. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gilt-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 italic 30px/1 var(--serif); }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; color: var(--gilt-ink);
  background: linear-gradient(135deg, var(--gilt-1), var(--gilt-2) 55%, var(--gilt-3));
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.25), inset 0 0 0 5px rgb(0 0 0 / 0.15);
  font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  color: var(--gilt-ink);
  background: linear-gradient(180deg, var(--gilt-1), var(--gilt-2) 60%, #b5862f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -2px 0 rgb(0 0 0 / 0.14), 0 8px 18px -10px rgb(120 84 20 / 0.8);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; filter: grayscale(0.4); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost {
  color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); filter: none; }
.btn i { font-size: 20px; }

/* ---------- frames ---------- */
/* .frame is the moulding, .canvas holds the picture. Each style gets the frame it would hang in. */
.frame {
  position: relative;
  padding: var(--fw, 14px);
  border-radius: 3px;
  background: linear-gradient(135deg, #f6dc8f, #b98a35 28%, #f3d27e 50%, #8f6421 74%, #e5bd63);
  box-shadow: var(--shadow), inset 0 0 0 2px rgb(255 240 200 / 0.5), inset 0 0 0 4px rgb(80 50 10 / 0.35);
}
.frame::after { /* inner lip */
  content: ''; position: absolute; inset: calc(var(--fw, 14px) - 4px); pointer-events: none;
  border: 4px solid rgb(70 44 8 / 0.35); border-radius: 2px;
}
.canvas { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a2620; }
.canvas img { width: 100%; height: 100%; object-fit: cover; }

.frame--royal { --fw: 18px; }
.frame--general { --fw: 16px; background: linear-gradient(135deg, #d9b766, #8a6222 30%, #d2ab5a 52%, #6f4d18 76%, #c69a45); }
.frame--holiday {
  --fw: 15px;
  background: linear-gradient(135deg, #7a4a2a, #4e2d17 35%, #8a5a36 55%, #3f2412 80%, #6d4124);
  box-shadow: var(--shadow), inset 0 0 0 2px rgb(255 220 180 / 0.18);
}
.frame--holiday::after { border-color: rgb(212 168 92 / 0.55); border-width: 2px; inset: calc(var(--fw) - 3px); }
.frame--watercolor {
  --fw: 8px;
  background: linear-gradient(135deg, #e7d6b8, #c9b18a 50%, #e2cfab);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(90 70 40 / 0.25);
}
.frame--watercolor::after { display: none; }
.frame--watercolor .canvas { box-shadow: 0 0 0 clamp(14px, 4.5%, 30px) #fbfaf5, 0 0 0 calc(clamp(14px, 4.5%, 30px) + 1px) rgb(0 0 0 / 0.08); margin: clamp(14px, 4.5%, 30px); }
.frame--storybook {
  --fw: 12px; border-radius: 18px;
  background: linear-gradient(160deg, #f6c9a8, #ee9b7b 45%, #f4b892);
  box-shadow: var(--shadow), inset 0 2px 0 rgb(255 255 255 / 0.5);
}
.frame--storybook::after { display: none; }
.frame--storybook .canvas { border-radius: 9px; }
.frame--astronaut {
  --fw: 7px;
  background: linear-gradient(135deg, #e9edf0, #8d969d 30%, #dfe4e8 52%, #6b737a 78%, #c6ccd1);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.6);
}
.frame--astronaut::after { display: none; }
.frame--popart { --fw: 0px; background: #111; box-shadow: 10px 10px 0 #ff3d8b, var(--shadow); border-radius: 0; }
.frame--popart::after { display: none; }
.frame--memorial {
  --fw: 9px;
  background: linear-gradient(135deg, #f4e6c3, #d7bd85 40%, #f6e9c9 60%, #c8ab70);
}
.frame--memorial::after { display: none; }
.frame--memorial .canvas { box-shadow: 0 0 0 clamp(12px, 4%, 24px) #f6f1e6; margin: clamp(12px, 4%, 24px); }

/* a gallery spotlight above any hung frame */
.hung { position: relative; }
.hung::before {
  content: ''; position: absolute; left: 50%; top: -22%; width: 125%; height: 80%; translate: -50% 0;
  background: radial-gradient(closest-side, var(--light), transparent);
  pointer-events: none; z-index: -1;
}

/* museum label */
.placard {
  margin: 18px auto 0; width: fit-content; max-width: 100%; padding: 10px 16px 11px; text-align: center;
  background: var(--placard); color: var(--placard-ink); border-radius: 2px;
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(0 0 0 / 0.05);
}
.placard b { display: block; font: 600 italic 20px/1.15 var(--serif); }
.placard span { display: block; font-size: 13px; line-height: 1.35; color: #4f5a53; margin-top: 2px; }

/* the original photo, pinned like a snapshot */
.polaroid {
  background: #fdfcf8; padding: 8px 8px 30px; border-radius: 2px; width: 150px;
  box-shadow: 0 14px 26px -12px rgb(0 0 0 / 0.55); rotate: -6deg;
}
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { font: 500 italic 16px/1 var(--serif); color: #3b3a33; text-align: center; margin-top: 8px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--placard-ink); }
.input, select.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius);
  border: 1.5px solid rgb(27 38 32 / 0.22); background: #fff; color: #13221c;
  font: 400 16px/1.2 var(--sans);
}
.input::placeholder { color: #6a756e; }
.input:focus { outline: none; border-color: var(--gilt-3); box-shadow: 0 0 0 3px rgb(201 154 63 / 0.35); }
.help { font-size: 13px; color: #56625a; }
.error { font-size: 14px; color: #a12a1c; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-title { font-size: clamp(36px, 5.2vw, 60px); max-width: 16ch; }
.lede { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 58ch; }

.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; max-width: min(520px, 100% - 32px);
  background: var(--placard); color: var(--placard-ink); padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.5);
}

/* reveal on scroll: frames are "hung" as they come into view */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px) rotate(var(--tilt, 0deg)); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--delay, 0s); }
  .reveal.in { opacity: 1; transform: none; }
}

/* legal pages */
.prose { max-width: 68ch; padding: 32px 0 80px; }
.prose h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.prose h2 { font-size: 28px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); margin-top: 10px; }
.prose a { color: var(--ink); }

/* questions, shared by the home page and the landing pages */
.faq { margin-top: 40px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 600 24px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font: 400 30px/1 var(--sans); color: var(--ink-soft); transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* footer index of every landing page */
.foot-links { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.foot-links div { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.foot-links b { flex-basis: 100%; font: 600 italic 18px/1.2 var(--serif); color: var(--ink); }
@media (max-width: 640px) { .foot-links { grid-template-columns: 1fr; } }

/* landing pages (one per style, and dog, cat, gift) */
.landing { padding-bottom: 40px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); margin: 8px 0 28px; }
.crumbs a { color: var(--ink-soft); }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.lp-hero h1 { font-size: clamp(38px, 4.4vw, 56px); padding-bottom: 4px; }
.lp-hero .lede { margin-bottom: 28px; }
.lp-hero .fine { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.lp-hero--wide { grid-template-columns: minmax(0, 760px); }
.lp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; padding-top: 40px; }
.lp-pair > :last-child { margin-top: 56px; }
.lp-frame { margin: 0; }
.lp-text { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 56px); margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); }
.lp-text h2, .lp-faq h2, .lp-more h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.lp-text p, .tips li { color: var(--ink-soft); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.facts li { display: flex; gap: 10px; }
.facts i { color: var(--gilt-2); margin-top: 4px; }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.lp-faq, .lp-more { margin-top: clamp(56px, 8vw, 96px); }
.lp-faq .faq { margin-top: 12px; }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(16px, 2.4vw, 32px); margin-top: 28px; align-items: start; }
.lp-grid a { color: inherit; text-decoration: none; }
.lp-grid a:nth-child(even) { margin-top: 32px; }
.lp-grid a:hover .frame { transform: translateY(-4px); }
.lp-grid .frame { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.lp-grid--wall { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-text { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-grid .placard span { display: none; }
}
