@font-face {
  font-family: Inter;
  src: url('/assets/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Playfair;
  src: url('/assets/PlayfairDisplay.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color: #242a24;
  background: #faf9f6;
  font: 16px/1.55 Inter, system-ui, sans-serif;
  --ink: #242a24;
  --muted: #525b53;
  --cream: #faf9f6;
  --rule: #deded4;
  --forest: #263d33;
  --serif: Playfair, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
body { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #987453; outline-offset: 5px; }
[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - 96px, 1260px); margin-inline: auto; }
.skip-link { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 5; transform: translateY(-160%); padding: 0.6rem 1rem; background: white; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; font: 650 1.31rem/1 var(--serif); letter-spacing: -0.035em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 2px; transform: rotate(-10deg); }
.brand-mark i { background: #597561; border-radius: 1px; }
.brand-mark i:nth-child(2) { background: #c57861; }
.header-inner nav, .footer-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.header-inner nav a { color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 550; white-space: nowrap; }
.header-inner nav a:hover, .header-inner nav a:focus-visible { color: var(--ink); text-decoration: underline; }
.header-inner nav .header-support { color: var(--forest); border: 1px solid #cbd4c9; padding: 0.48rem 0.8rem; border-radius: 4px; }
.header-support span { padding-inline-start: 0.18rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 6vw, 90px); padding-block: 59px 67px; }
.eyebrow { color: var(--forest); text-transform: uppercase; font-size: 0.72rem; line-height: 1.3; font-weight: 700; letter-spacing: 0.145em; }
.hero h1 { font: 530 clamp(3.85rem, 6.15vw, 5.85rem)/0.97 var(--serif); letter-spacing: -0.082em; margin-block: 20px 25px; }
.hero h1 em { display: block; color: #476654; font-family: Georgia, serif; font-weight: 400; font-size: 0.98em; letter-spacing: -0.086em; }
.hero-description { max-width: 35ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; margin-top: 27px; }
.button { display: inline-flex; gap: 20px; align-items: center; padding: 0.8rem 1rem; color: #fff; background: var(--forest); text-decoration: none; border: 1px solid transparent; border-radius: 4px; font-size: 0.84rem; font-weight: 650; }
.button:hover { background: #395747; }
.quiet-link { color: var(--forest); font-size: 0.83rem; font-weight: 620; }
.quiet-link:hover { color: #7e4a38; }

.hero-figure { min-width: 0; }
.hero-art { isolation: isolate; position: relative; overflow: hidden; min-height: 330px; aspect-ratio: 1.37; border-radius: 8px; border: 1px solid #405647; background: radial-gradient(ellipse at 42% 0%, #536b59, #263c32 76%); }
.hero-art::before { position: absolute; inset: 0; content: ''; opacity: 0.3; background-image: linear-gradient(#a8b5a11c 1px, transparent 1px), linear-gradient(90deg, #a8b5a11c 1px, transparent 1px); background-size: 25px 25px; }
.hero-sheet { position: absolute; object-fit: contain; width: 42%; height: auto; border-radius: 2px; box-shadow: 12px 18px 28px #14271bc0, 1px 1px 2px #1b2a1d66; background: #faf8ef; }
.hero-sheet-first { left: 10%; top: 22%; transform: rotate(-16deg); }
.hero-sheet-second { right: 12%; top: 14%; transform: rotate(15deg); }
.hero-sheet-third { left: 31%; top: 14%; transform: rotate(-5deg); }
.hero-figure figcaption { display: flex; justify-content: space-between; column-gap: 22px; padding-top: 11px; color: var(--muted); font-size: 0.69rem; }

.collections-section { padding-block: 37px 81px; border-top: 1px solid var(--rule); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px 42px; margin-block: 0 28px; }
.section-heading h2, .shop-guide h2 { font: 520 clamp(2.55rem, 4.3vw, 4.75rem)/1.05 var(--serif); letter-spacing: -0.065em; }
.section-heading > p { max-width: 32ch; color: var(--muted); font-size: 0.92rem; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.collection-card { --art: #dbe5d9; --art-line: #b9cbb9; display: flex; min-width: 0; flex-direction: column; padding: 11px; border: 1px solid var(--rule); background: #fefdf9; border-radius: 8px; }
.collection-card.clay { --art: #efdbd1; --art-line: #dcc2b6; }
.collection-card.ochre { --art: #eee2c8; --art-line: #dbcba8; }
.collection-art { position: relative; display: block; isolation: isolate; height: clamp(166px, 17vw, 220px); overflow: hidden; background: linear-gradient(145deg, #ffffff40, transparent 70%), var(--art); border: 1px solid var(--art-line); border-radius: 4px; text-decoration: none; }
.sheet { position: absolute; width: 40%; height: auto; left: 16%; top: 13%; border-radius: 1px; box-shadow: 6px 9px 17px #423c333d; transition: transform 200ms ease; }
.sheet-front { transform: rotate(-11deg); }
.sheet-back { left: 43%; top: 15%; transform: rotate(12deg); }
.collection-art:hover .sheet-front { transform: rotate(-14deg) translateY(-4px); }
.collection-art:hover .sheet-back { transform: rotate(16deg) translateY(-4px); }
.preview-label { position: absolute; right: 8px; bottom: 8px; padding: 0.3rem 0.46rem; background: #faf9f6; border: 1px solid #5c655222; border-radius: 3px; font-size: 0.66rem; font-weight: 650; }
.preview-label span { margin-left: 0.15em; }
.card-intro { min-height: 153px; padding: 20px 10px 15px; }
.card-intro h3 { margin-block: 6px 8px; font: 550 clamp(1.57rem, 2.15vw, 2.28rem)/1.15 var(--serif); letter-spacing: -0.055em; }
.card-intro > p:last-child { color: var(--muted); font-size: 0.85rem; line-height: 1.53; }
.offer-list { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); margin: 0; padding: 0 10px; list-style: none; }
.offer { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding: 13px 0 15px; }
.offer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier { font-size: 0.61rem; font-weight: 730; letter-spacing: 0.08em; text-transform: uppercase; color: #354738; background: var(--art); border-radius: 3px; padding: 0.25rem 0.44rem; }
.price { font-size: 1rem; font-weight: 720; letter-spacing: -0.025em; white-space: nowrap; }
.price small { color: var(--muted); font-size: 0.65rem; letter-spacing: 0; font-weight: 520; }
.offer h4 { margin-top: 9px; line-height: 1.38; font-size: 0.88rem; font-weight: 700; }
.offer > p { padding-block: 5px 10px; color: var(--muted); font-size: 0.77rem; line-height: 1.5; }
.offer-link { margin-top: auto; align-self: start; font-weight: 650; font-size: 0.76rem; line-height: 1.4; color: var(--forest); text-decoration: none; border-bottom: 1px solid #8aa28d; }
.offer-link:hover { color: #7e4a38; border-color: #7e4a38; }

.preview-dialog { width: min(850px, calc(100% - 28px)); max-height: 92dvh; border: 1px solid var(--rule); border-radius: 9px; padding: 18px 23px 22px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px #14271b57; }
.preview-dialog::backdrop { background: #19291dc0; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.dialog-header h2 { font: 560 clamp(1.35rem, 3.5vw, 1.95rem)/1.1 var(--serif); }
.dialog-header button { cursor: pointer; line-height: 1; padding: 0.55rem 0.7rem; border: 1px solid #aab8aa; border-radius: 3px; background: transparent; color: var(--forest); font-size: 0.8rem; }
.dialog-header button:hover { background: #e6ede5; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.preview-grid img { width: 100%; border: 1px solid var(--rule); border-radius: 3px; }
.preview-grid figcaption { font-size: 0.73rem; color: var(--muted); margin-top: 7px; }

.shop-guide { color: #f7f7ed; background: var(--forest); padding-block: 54px 57px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
.guide-grid > div > p { color: #e1e9df; max-width: 36ch; margin-top: 16px; }
.guide-steps { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding-top: 13px; border-top: 1px solid #a7bcaa52; }
.guide-steps li > span { font: 500 1rem/1.4 var(--serif); color: #d6b69a; }
.guide-steps h3 { font-weight: 650; font-size: 0.93rem; margin-bottom: 4px; }
.guide-steps p { font-size: 0.84rem; color: #e1e9df; }

.site-footer { padding-block: 35px 21px; }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; gap: 14px 26px; align-items: start; flex-wrap: wrap; }
.footer-main { padding-bottom: 23px; }
.footer-main p { color: var(--muted); font-size: 0.81rem; margin-top: 10px; }
.footer-contact { display: grid; gap: 5px; font-size: 0.82rem; }
.footer-contact a { color: var(--forest); overflow-wrap: anywhere; }
.footer-bottom { padding-top: 13px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--rule); }

.policy { max-width: 800px; padding-block: 50px 68px; }
.policy h1 { font: 540 clamp(2.7rem, 6vw, 5.1rem)/1.05 var(--serif); letter-spacing: -0.065em; margin-top: 15px; }
.policy-date { color: var(--muted); margin-block: 12px 32px; font-size: 0.79rem; }
.policy section { border-top: 1px solid var(--rule); padding-block: 17px; }
.policy h2 { font: 550 1.36rem/1.3 var(--serif); letter-spacing: -0.025em; margin-bottom: 7px; }
.policy section > p { color: var(--muted); font-size: 0.94rem; }
.policy section a { color: var(--forest); overflow-wrap: anywhere; }
.policy-page .site-footer { border-top: 1px solid var(--rule); }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 52px, 1260px); }
  .hero { gap: 30px; padding-block: 44px 53px; }
  .hero h1 { font-size: clamp(3.3rem, 6.75vw, 5.7rem); }
  .hero-art { min-height: 265px; }
  .collection-grid { gap: 10px; }
  .collection-card { padding: 8px; }
  .card-intro { min-height: 150px; }
}

@media (max-width: 740px) {
  .wrap { width: min(100% - 34px, 555px); }
  .header-inner { min-height: 70px; gap: 12px; }
  .header-inner .wordmark { font-size: 1.12rem; }
  .header-inner nav { gap: 12px; }
  .header-inner nav a { font-size: 0.73rem; }
  .header-inner nav a[href$="how-it-works"] { display: none; }
  .header-inner nav .header-support { padding: 0.38rem 0.48rem; }
  .hero, .guide-grid { grid-template-columns: 1fr; }
  .hero { gap: 24px; padding-block: 39px 38px; }
  .hero h1 { font-size: clamp(3.45rem, 12vw, 5.65rem); margin-block: 14px 18px; }
  .hero-art { min-height: 0; }
  .hero-actions { margin-top: 20px; }
  .hero-figure figcaption { font-size: 0.62rem; }
  .collections-section { padding-block: 27px 51px; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .collection-grid { grid-template-columns: 1fr; gap: 18px; }
  .collection-card { padding: 9px; }
  .collection-art { height: clamp(185px, 55vw, 246px); }
  .card-intro { min-height: 0; padding-block: 17px 19px; }
  .card-intro h3 { font-size: 2rem; }
  .offer-list { grid-template-rows: auto; }
  .offer { padding-block: 12px; }
  .shop-guide { padding-block: 35px; }
  .guide-grid { gap: 22px; }
  .guide-grid > div > p { margin-top: 10px; }
  .policy { padding-block: 35px 48px; }
  .preview-dialog { padding: 13px 14px 15px; }
}

@media (max-width: 345px) {
  .header-support span { display: none; }
  .header-inner nav { gap: 8px; }
  .header-inner nav .header-support { padding-inline: 0.32rem; }
  .hero h1 { font-size: 3.1rem; }
  .hero-figure figcaption { flex-direction: column; }
  .preview-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet { transition: none; }
}
