/* Hand & Vow brand pages: homepage, privacy, 404.
   The ring designer (design.html) and admin (admin.html) carry their own styles using the same tokens. */
:root {
  --ivory: #FBF8F2;
  --cream: #F4EEE4;
  --sand: #E7DCC8;
  --line: #DCCDB2;
  --ink: #1E1C19;
  --ink-2: #474238;
  --muted: #6E665A;
  --gold: #A88A5A;
  --gold-text: #7D6338;
  --champagne: #D4BC8C;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Faint paper grain for warmth */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--champagne); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.4vw, 66px); line-height: 1.05; }
.hero h1 .line { display: block; white-space: nowrap; }
@media (max-width: 520px) { .hero h1 .line { white-space: normal; } }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
h3 { font-size: 27px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-text); }
p { margin: 0 0 1em; }
.eyebrow, .rule-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 18px;
}
/* The wordmark's gold rules, used as section labels */
.rule-label { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rule-label::before, .rule-label::after { content: ''; width: 44px; height: 1px; background: var(--gold); }
.rule-label.rule-left { justify-content: flex-start; }
.rule-label.rule-left::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: #3A352D; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 12.5px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--sand); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; }
.brand-mono { width: 48px; }
.brand-word { width: 300px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 1080px) { .brand-word { display: none; } }
@media (max-width: 820px) { .site-nav { display: none; } }

/* Hero */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* The arch: a solid frame with an offset gold outline, like the monogram's outlined V over the solid H */
.hero-art { margin: 0; }
.arch { position: relative; aspect-ratio: 9 / 11; max-width: 440px; margin: 0 auto; }
.arch-fill, .arch-line { position: absolute; inset: 0; border-radius: 999px 999px 6px 6px; }
.arch-fill {
  overflow: hidden;
  /* Centered low and ending in a warm sand tone so the arch's curved top stays visible against the page. */
  background: radial-gradient(85% 55% at 50% 58%, #FFFFFF 0%, #F8F3EA 55%, #ECE2D0 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 138, 90, .22), 0 40px 80px -48px rgba(60, 45, 20, .45);
}
.arch-fill img { width: 100%; height: 100%; object-fit: cover; }
.arch-line { border: 1.5px solid var(--gold); transform: translate(18px, -18px); }
.hero-art figcaption { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.hero-art figcaption a { display: block; margin-top: 6px; color: var(--gold-text); font-weight: 600; text-underline-offset: 4px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section-lede { font-size: 18px; color: var(--ink-2); margin: 18px auto 0; max-width: 36em; }

/* Steps with outlined numerals */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--line); }
.numeral {
  display: block;
  font: 500 96px/1 var(--serif);
  color: transparent;
  -webkit-text-stroke: 1.25px var(--gold);
  margin: 6px 0 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* Shapes */
.shapes { list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.shapes a {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 6px 16px; border-radius: 14px; text-decoration: none;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.shapes svg { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; transition: stroke .25s var(--ease); }
.shapes svg path:not(:first-child), .shapes svg rect + rect, .shapes svg ellipse ~ path, .shapes svg circle ~ path { stroke-width: .8; opacity: .8; }
.shapes a:hover { background: var(--ivory); border-color: var(--line); transform: translateY(-3px); color: var(--ink); }
.shapes a:hover svg { stroke: var(--gold-text); }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.choice { background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 26px; }
.choice h3 { font-size: 25px; margin-bottom: 10px; }
.choice p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.piece { display: block; margin: 0; text-decoration: none; color: inherit; border-radius: 22px; }
.piece-frame {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  background: radial-gradient(110% 90% at 50% 35%, #FFFFFF 0%, var(--cream) 62%, var(--sand) 100%);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.piece-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.piece:hover .piece-frame { box-shadow: 0 30px 60px -40px rgba(60, 45, 20, .45); }
.piece:hover .piece-frame img { transform: scale(1.04); }
.piece-cap { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.piece-cap span { display: block; font: 500 24px/1.25 var(--serif); color: var(--ink); margin-bottom: 2px; }
.piece-go {
  margin: 12px 0 0; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text);
}
.piece-go::after { content: ' →'; display: inline-block; transition: transform .3s var(--ease); }
.piece:hover .piece-go::after, .piece:focus-visible .piece-go::after { transform: translateX(4px); }
.piece:focus-visible { outline-offset: 6px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.pricing-copy { font-size: 18px; color: var(--ink-2); padding-top: 6px; }
.pricing-copy .btn { margin-top: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; font: 500 24px/1.3 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { color: var(--ink-2); padding: 0 4px 24px; margin: 0; max-width: 44em; }

/* Closing */
.closing { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--sand); background:
  radial-gradient(60% 90% at 50% 0%, #FFFFFF 0%, transparent 70%), var(--ivory); }
.closing-inner { text-align: center; max-width: 720px; }
.closing-mono { width: 96px; margin: 0 auto 30px; }
.closing p { color: var(--ink-2); font-size: 18px; margin: 18px 0 30px; }

/* Footer */
.site-foot { background: var(--cream); border-top: 1px solid var(--sand); padding: 64px 0 28px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; align-items: flex-start; }
.foot-brand img { width: 200px; margin-bottom: 18px; }
.foot-brand p { max-width: 24em; margin: 0; }
.foot-brand .foot-contact { margin-top: 14px; }
.foot-contact a { color: var(--gold-text); font-weight: 500; text-underline-offset: 4px; }
.closing .closing-note { margin: 26px 0 0; font-size: 15.5px; color: var(--muted); }
.closing-note a { color: var(--gold-text); text-underline-offset: 4px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--gold-text); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-base p { margin: 0; }

/* Plain content pages (privacy, 404) */
.page { padding: clamp(56px, 8vw, 110px) 0; }
.page h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 18px; }
.page h2 { font-size: 30px; margin: 44px 0 12px; }
.page p, .page li { color: var(--ink-2); }
.page .updated { color: var(--muted); font-size: 14.5px; }
.lost { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.lost .numeral { font-size: 150px; margin: 0 auto 8px; }
.lost p { color: var(--ink-2); font-size: 18px; margin: 18px 0 32px; }
.lost .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Reveal on load / scroll */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .shapes { grid-template-columns: repeat(5, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 36px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .arch { max-width: 340px; }
  .arch-line { transform: translate(14px, -14px); }
  .pricing-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .arch { max-width: 240px; }
  .arch-line { transform: translate(10px, -10px); }
  .hero-art figcaption { margin-top: 16px; }
  .head-row { min-height: 64px; gap: 14px; }
  .brand-mono { width: 42px; }
  .lede { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .numeral { font-size: 76px; }
  .shapes { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .shapes a { flex-direction: row; justify-content: flex-start; padding: 12px 14px; gap: 14px; }
  .shapes svg { width: 40px; height: 40px; }
  .choice-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 21px; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}
