/* Karat & Carat demonstration. One file, no framework. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallback so the swap to the web font barely moves the layout. */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Noto Serif"), local("DejaVu Serif");
  size-adjust: 84%;
  ascent-override: 110%;
  descent-override: 34%;
  line-gap-override: 0%;
}

:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ivory: #f4f0e8;
  --ink: #1b1915;
  --ink-2: #3b3730;
  --muted: #5e584e;
  --line: #e4ddd0;
  --mat: #ece6db;      /* one shared mat behind every product tile */
  --gold: #b08d4a;        /* decorative only: rules, stars */
  --gold-text: #7f6128;   /* text on light: 5.6:1 on --bg */
  --gold-light: #d8bd85;  /* text on the dark proposal: 9:1 */
  --night: #15130f;
  --night-2: #201d18;
  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, ul, ol, dl, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }

/* Demo bar and header */
.demo-bar {
  background: var(--ink);
  color: #e9e3d6;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.45;
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(251, 250, 247, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.amp { font-style: italic; color: var(--gold-text); }
.nav { display: none; gap: 32px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #3a342a; border-color: #3a342a; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.75rem; letter-spacing: 0.12em; }

/* Type */
.eyebrow {
  font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text);
}
h2 { font-family: var(--serif); font-size: clamp(2.05rem, 6.4vw, 3.15rem); line-height: 1.08; letter-spacing: -0.005em; }
.body { color: var(--ink-2); font-size: 1.03rem; max-width: 36em; }
.body.small, .small { font-size: 0.92rem; color: var(--muted); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 20px; }
.price { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.3rem, 15vw, 6.6rem); line-height: 0.95; letter-spacing: -0.015em;
  margin: 18px 0 14px;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.25; color: var(--ink-2); }
.lede { margin-top: 14px; color: var(--muted); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .actions .btn { flex: 1 1 0; padding: 0 10px; font-size: 0.75rem; letter-spacing: 0.12em; }
.actions-center { justify-content: center; }
.btn-gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--night); }
.btn-gold:hover { background: #e6cf9f; border-color: #e6cf9f; }
.custom-copy .btn { width: 100%; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ivory); }
figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
figcaption a { text-decoration: none; }
figcaption a:hover { color: var(--ink); text-decoration: underline; }

/* Proof band */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 30px 0 22px; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; text-align: center; }
.proof-list li { display: flex; flex-direction: column; gap: 4px; }
.proof-list strong { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; }
.proof-list span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.proof-list .star { font-family: var(--sans); font-size: 0.55em; color: var(--gold); vertical-align: 0.5em; margin-left: 2px; }
.proof-note { text-align: center; margin-top: 22px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-ivory { background: var(--ivory); }
.section-head { margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .body { margin-top: 16px; }
.section-head.center { text-align: center; }
.section-head.center .body { margin-left: auto; margin-right: auto; }

/* Collection tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; }
.tile a { display: block; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; padding: 8px; background: var(--mat); transition: transform .6s ease; }
.tile a:hover img { transform: scale(1.025); }
.tile h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; margin-top: 14px; }
.tile p { font-size: 0.95rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.tile .from { color: var(--gold-text); font-weight: 600; letter-spacing: 0.02em; margin-top: 6px; font-size: 0.95rem; }
.tile-custom { display: flex; }
.tile-custom a { flex: 1; display: flex; }
.tile-custom-inner {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  flex: 1; min-height: 100%; padding: 18px;
  background: var(--night); color: #f3eee4;
}
.tile-custom .eyebrow { color: var(--gold-light); font-size: 0.75rem; }
.tile-custom-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.12; }
.tile-custom-link { font-size: 0.95rem; color: var(--gold-light); white-space: nowrap; border-bottom: 1px solid rgba(216,189,133,.5); align-self: flex-start; padding-bottom: 2px; }

/* Vintage */
.vintage-grid { display: grid; gap: 32px; }
.vintage-head { margin-bottom: 0; }
.charms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.charms li { display: flex; }
.charms a { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.charms img { width: 100%; aspect-ratio: 1; object-fit: cover; padding: 6px; background: var(--mat); }
.charm-name { display: block; margin: 10px 0 2px; font-size: 0.88rem; line-height: 1.35; color: var(--ink-2); }
.charms .price { display: block; margin-top: auto; padding-top: 2px; font-size: 0.92rem; color: var(--gold-text); font-weight: 600; }

/* Story */
.story-grid { display: grid; gap: 36px; }
.story-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ebebeb; }
.story-copy h2 { margin: 14px 0 20px; }
.pull { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--gold); }
.pull p { font-family: var(--serif); font-style: italic; font-size: 1.65rem; line-height: 1.25; }
.pull footer { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.people { display: grid; gap: 0; margin: 8px 0 22px; border-top: 1px solid var(--line); }
.people div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.people dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.people dd { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Reviews */
.quotes { display: grid; gap: 14px; }
.quotes blockquote { height: 100%; padding: 22px 0 6px; border-top: 1px solid #d9d0bf; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quotes p { font-family: var(--serif); font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.quotes footer { font-size: 0.82rem; color: var(--muted); }
.quotes .who { color: var(--ink); font-weight: 600; }

/* Custom */
.custom-grid { display: grid; gap: 36px; }
.custom-copy h2 { margin: 14px 0 20px; }
.examples { margin-top: 26px; border-top: 1px solid var(--line); }
.examples li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }
.custom-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eeeeee; }

/* FAQ */
.faq { border-top: 1px solid #d9d0bf; }
.faq details { border-bottom: 1px solid #d9d0bf; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* Proposal (clearly separate from the shop) */
.proposal { background: var(--night); color: #ece6da; padding: 0 0 80px; }
.proposal-divider { background: var(--night-2); border-bottom: 1px solid #3a342a; padding: 14px 0; margin-bottom: 64px; }
.proposal-divider p { font-size: 0.8rem; letter-spacing: 0.08em; color: #cfc6b5; text-align: center; }
.proposal h2 { color: #fbf7ef; }
.proposal .body { color: #cfc6b5; }
.eyebrow-gold { color: var(--gold-light); }
.demo-grid { display: grid; gap: 40px; margin-top: 8px; }

.chat { background: #f7f3eb; color: var(--ink); border-radius: 18px; overflow: hidden; max-width: 460px; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-top strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.chat-sub { display: block; font-size: 0.78rem; color: var(--muted); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--gold-light); display: grid; place-items: center; font-family: var(--serif); font-size: 0.85rem; flex: none; }
.chat-tag { margin-left: auto; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 20px; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 14px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.msg-in { align-self: flex-end; background: var(--night); color: #f6f1e7; border-bottom-right-radius: 4px; }
.msg-out { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-photo { padding: 6px 6px 11px; }
.msg-photo img { border-radius: 11px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.msg-photo p { padding: 9px 8px 0; }
.msg-note { align-self: center; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); padding: 2px 10px; border-top: 1px solid var(--line); }
.chat-caption { display: block; margin: 0; padding: 12px 16px 16px; font-size: 0.8rem; color: var(--muted); background: #f7f3eb; border-top: 1px solid var(--line); }

.services-title { font-family: var(--serif); font-size: 1.7rem; color: #fbf7ef; margin-bottom: 8px; }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid #3a342a; }
.service-list li:last-child { border-bottom: 0; }
.num { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-light); line-height: 1.5; }
.service-list h4 { font-size: 1rem; font-weight: 600; color: #fbf7ef; letter-spacing: 0.01em; }
.service-list p { color: #c9c0ae; font-size: 0.95rem; margin-top: 4px; }

.examples-row { margin-top: 64px; }
.examples-note { color: #c9c0ae; font-size: 0.95rem; max-width: 40em; margin-top: 6px; }
.sample-cards { display: grid; gap: 14px; margin-top: 24px; }
.sample-cards li { background: var(--night-2); border: 1px solid #3a342a; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.sample-kind { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.sample-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.32; color: #fbf7ef; }
.sample-meta { font-size: 0.82rem; color: #b5ab98; margin-top: auto; }
.principles { display: grid; gap: 1px; margin-top: 56px; background: #3a342a; border: 1px solid #3a342a; }
.principles div { background: var(--night); padding: 24px 22px; }
.principles h3 { font-family: var(--serif); font-size: 1.45rem; color: #fbf7ef; }
.principles p { color: #c9c0ae; font-size: 0.95rem; margin-top: 6px; }

.next { margin-top: 48px; text-align: center; }
.next-title { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); }
.next-body { font-family: var(--serif); font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.25; color: #fbf7ef; max-width: 26em; margin: 12px auto 0; }

.next-ask { margin-top: 22px; font: 600 0.82rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.next-link { margin-top: 14px; font-size: 0.85rem; }
.next-link a { color: #b5ab98; text-decoration: none; border-bottom: 1px solid #4a4336; padding-bottom: 1px; }
.next-link a:hover { color: #fbf7ef; }

/* Full-width close-up */
.band { background: var(--ivory); }
.band img { width: 100%; height: auto; }
.band figcaption { border-top: 0; padding-top: 12px; padding-bottom: 14px; margin-top: 0; }

/* Footer */
.site-footer { background: var(--bg); padding: 44px 0 52px; border-top: 1px solid var(--line); text-align: center; }
.footer-mark { font-family: var(--serif); font-size: 1.7rem; }
.footer-demo { margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
.site-footer .fine { max-width: 44em; margin: 12px auto 0; }

/* Wider screens */
/* Phones: one brand name above the photo (the header carries it), tighter rhythm */
@media (max-width: 899px) {
  .hero { padding: 22px 0 44px; }
  .hero-grid { gap: 28px; }
  .hero h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero .eyebrow { margin-bottom: 12px; }
  .tagline { font-style: normal; font-size: clamp(2.15rem, 9.6vw, 2.7rem); line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); }
  .lede { margin-top: 14px; font-size: 0.98rem; }
  .actions { margin-top: 22px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head .eyebrow { margin-bottom: 10px; }
  h2 { font-size: clamp(1.85rem, 7.6vw, 2.3rem); line-height: 1.1; }
  .body { font-size: 0.98rem; }
  .tiles { gap: 24px 12px; }
  .tile h3 { font-size: 1.32rem; margin-top: 10px; }
  .proof { padding: 24px 0 18px; }
  .proof-list { gap: 20px 12px; }
  .proof-list strong { font-size: 1.95rem; }
  .proof-note { margin-top: 16px; }
  .pull { margin: 24px 0; }
  .pull p { font-size: 1.45rem; }
  .quotes p { font-size: 1.22rem; }
  .faq summary { padding: 17px 36px 17px 0; font-size: 1.25rem; }
  .proposal { padding-bottom: 64px; }
  .proposal-divider { margin-bottom: 52px; }
  .examples-row, .principles { margin-top: 48px; }
  .sample-text { font-size: 1.2rem; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 18px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .sample-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .charms { gap: 16px; }
  .charm-name { font-size: 0.88rem; }
  .proof-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 64px; }
  .hero-figure { max-width: 540px; justify-self: end; width: 100%; }
  .hero .actions .btn { flex: 0 0 auto; padding: 0 26px; font-size: 0.8rem; letter-spacing: 0.16em; }
  .custom-copy .btn { width: auto; }
  .section { padding: 104px 0; }
  .vintage-grid { grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 56px; }
  .story-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 72px; }
  .custom-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 72px; }
  .custom-figure { max-width: 440px; justify-self: end; width: 100%; }
  .faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
  .demo-grid { grid-template-columns: 460px 1fr; gap: 72px; align-items: start; }
  .proposal-divider { margin-bottom: 88px; }
}
@media (min-width: 1040px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
