@font-face {
  font-family: Studio Serif;
  src: url("/assets/cormorant-garamond.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Studio Serif;
  src: url("/assets/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Studio Sans;
  src: url("/assets/jost.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f9f6ef;
  --ink: #192f27;
  --muted: #4e5b52;
  --line: #d3cdc0;
  --dark: #16362e;
  --light: #fff9eb;
  --gold: #dfbf80;
  --serif: "Studio Serif", Georgia, serif;
  --sans: "Studio Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.55 var(--sans); }
::selection { background: var(--gold); color: var(--dark); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { margin: 0; font: 400 1em/1 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6.35vw, 6.15rem); }
h2 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); }
h3 { font-size: clamp(2rem, 3.5vw, 3.05rem); }
.wrap { width: min(100% - 8rem, 78rem); margin-inline: auto; }
.block { padding-block: clamp(3.75rem, 8vw, 7rem); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; inset: .75rem auto auto .75rem; background: var(--cream); padding: .75rem; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.75rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: .38rem; white-space: nowrap; font: 1.9rem/1 var(--serif); text-decoration: none; }
.wordmark span { font: .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.masthead nav { display: flex; gap: clamp(1rem, 3.2vw, 2.8rem); }
.masthead nav a { display: flex; align-items: center; min-height: 44px; font-size: .95rem; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.25rem, 5.5vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-copy > p { max-width: 34ch; margin-block: 1.5rem 1.85rem; color: var(--muted); font-size: 1.125rem; }
.hero-photo { background: #dfd0b5; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.23; object-fit: cover; }
.button { display: inline-flex; min-height: 48px; padding: .75rem 1.25rem; align-items: center; justify-content: center; background: var(--dark); color: var(--light); font-size: 1rem; text-align: center; text-decoration: none; transition: background-color 150ms ease; }
.button:hover { background: #285445; }
.button:focus-visible { outline-color: var(--dark); }

.section-heading { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.section-heading p { max-width: 35ch; justify-self: end; color: var(--muted); }
.design-grid, .package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
.design { min-width: 0; }
.design > p { margin-top: .5rem; color: var(--muted); }
.design h3 { margin-top: 1rem; }
.design-preview {
  display: grid;
  place-items: center;
  min-height: 16rem;
  height: clamp(16rem, 28vw, 23rem);
  overflow: hidden;
  padding: 1.5rem;
  background: var(--swatch);
  color: var(--card-ink);
  text-decoration: none;
}
.design-preview:hover .stationery { transform: translateY(-4px); }
.design-preview:focus-visible { outline-offset: -6px; outline-color: var(--light); }
.emerald-letter { --swatch: #234438; --paper: #fcf3dd; --foil: #9e7950; --card-ink: #243a30; --flap: #365c4b; --envelope-ink: #fff7e7; --shape: 50% 50% 3px 3px / 29% 29% 3px 3px; }
.rosewater { --swatch: #8b5251; --paper: #fff3e7; --foil: #a17069; --card-ink: #613d3c; --flap: #ab7571; --envelope-ink: #fff6ed; --shape: 3px; }
.stationery { position: relative; text-align: center; background: var(--paper); color: var(--card-ink); border-radius: var(--shape); }
.stationery::before { content: ""; position: absolute; inset: .55rem; border: 1px solid var(--foil); border-radius: inherit; pointer-events: none; }
.mini-card { display: grid; place-content: center; width: clamp(10rem, 19vw, 17rem); height: 100%; padding: 1rem; box-shadow: 0 .9rem 1.6rem #0004; transition: transform 200ms ease; }
.mini-card > span { font: clamp(1.55rem, 2.75vw, 2.8rem)/.95 var(--serif); }
.mini-card i { display: block; font-size: .7em; margin-block: .2rem; }
.mini-card small { margin-top: .75rem; font-size: .68rem; letter-spacing: .095em; text-transform: uppercase; }
.design-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.3rem; margin-top: 1.05rem; }
.text-action { display: inline-flex; min-height: 44px; align-items: center; font-size: 1rem; }

.editions { background: #e9e9dd; }
.package { border-top: 1px solid #a9ad9c; padding-top: 1.5rem; display: flex; flex-direction: column; align-items: start; }
.price { margin-block: .65rem 1rem; font-size: 1.1rem; font-weight: 600; }
.package > p:not(.price) { max-width: 39ch; color: var(--muted); }
.package ul { padding-left: 1.15rem; margin-block: 1rem; }
.package li + li { margin-top: .3rem; }
.package .text-action { margin-top: auto; }

.process h2 { margin-bottom: 1.8rem; }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; list-style: none; padding: 0; counter-reset: steps; }
.process li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 1rem; }
.process li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: .75rem; color: #765730; font-variant-numeric: tabular-nums; }
.process strong { display: block; font: 1.8rem/1.02 var(--serif); margin-bottom: .6rem; }
.process li p, .faq details p { color: var(--muted); max-width: 46ch; }
.faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem 3rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; min-height: 48px; padding: .95rem 2rem .95rem 0; cursor: pointer; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker, .envelope::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .35rem; top: 1.4rem; width: .55rem; height: .55rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding-bottom: 1rem; }
.site-footer { background: var(--dark); color: var(--light); }
.site-footer .wrap { min-height: 8rem; padding-block: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { color: #e4ddc9; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.demo-page { min-height: 100svh; background: var(--swatch); color: var(--envelope-ink); }
.demo-header { max-width: 78rem; margin-inline: auto; padding: .85rem clamp(1rem, 5vw, 3.5rem); display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .88rem; border-bottom: 1px solid #ffffff45; }
.demo-header a { display: inline-flex; align-items: center; min-height: 44px; }
.demo { width: min(100% - 2.5rem, 34rem); padding-block: clamp(2rem, 5vw, 4rem); text-align: center; }
.demo h1 { font-size: clamp(2.8rem, 8vw, 5.3rem); margin-bottom: 2.1rem; }
.envelope {
  display: grid;
  position: relative;
  place-content: center;
  width: 100%;
  aspect-ratio: 1.8;
  gap: .7rem;
  isolation: isolate;
  background: var(--swatch);
  border: 1px solid #ffffff50;
  box-shadow: 0 .95rem 2rem #0004;
  list-style: none;
  cursor: pointer;
}
.envelope-flap { position: absolute; z-index: -1; inset: 0 0 38%; background: var(--flap); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.demo-letter[open] .envelope-flap { transform: perspective(40rem) rotateX(155deg); }
.seal { display: grid; place-items: center; width: 3.25rem; aspect-ratio: 1; margin-inline: auto; background: var(--gold); color: #35251c; border-radius: 50%; font: 1rem/1 var(--serif); }
.close-label, .demo-letter[open] .open-label { display: none; }
.demo-letter[open] .close-label { display: block; }
.demo-card { margin-top: 1.7rem; padding: clamp(4rem, 11vw, 6rem) clamp(1.8rem, 5vw, 3rem) 2.2rem; animation: unfold .7s cubic-bezier(.22, 1, .36, 1) both; }
.demo-card h2 { margin-block: .8rem; font-size: clamp(2.75rem, 8vw, 4.6rem); }
.demo-card h2 i { font-size: .66em; }
.card-label { font: italic 1.4rem/1.2 var(--serif); }
.demo-date { margin-top: .9rem; font-weight: 600; }
.demo-card h3 { margin-top: 1.65rem; font-size: 2rem; }
.timeline { margin-top: .7rem; }
.timeline > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: .65rem; text-align: left; padding: .4rem 0; border-bottom: 1px solid #6f503339; }
.timeline dt { font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; }
.demo-card footer { margin-top: 1.35rem; font-size: .8rem; }
.demo-card footer a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: .25rem; }
.demo-order { margin-top: 2rem; }
.demo-order p { margin-bottom: .65rem; }
.demo-order .button { background: var(--paper); color: var(--card-ink); }
.demo-order .button:hover { background: var(--gold); }
.demo-order .button:focus-visible { outline-color: var(--light); }
@keyframes unfold { from { transform: translateY(-1.25rem); opacity: 0; } }

@media (max-width: 64rem) {
  .wrap { width: calc(100% - 4rem); }
  .demo.wrap { width: min(100% - 2.5rem, 34rem); }
  .hero { gap: 2rem; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { min-height: 4.35rem; }
  .wordmark { font-size: 1.5rem; gap: .25rem; }
  .wordmark span { font-size: .58rem; }
  .masthead nav { gap: .7rem; }
  .masthead nav a { font-size: .86rem; }
  .hero, .section-heading, .design-grid, .package-grid, .process ol, .faq { grid-template-columns: 1fr; }
  .hero { gap: 1.65rem; }
  .hero-copy > p { margin-block: .9rem 1.3rem; }
  .hero-photo img { aspect-ratio: 1.48; }
  .section-heading p { justify-self: start; }
  .design-grid, .package-grid { gap: 2rem; }
  .design-preview { height: auto; aspect-ratio: 1.35; }
  .mini-card { width: min(58%, 13rem); min-height: 11rem; }
  .site-footer .wrap { align-items: start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 23rem) {
  .masthead { flex-wrap: wrap; justify-content: start; padding-top: .75rem; gap: 0 1rem; }
  .masthead nav { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
