:root {
  --linen: #F5F0E8;
  --paper: #FBF8F3;
  --oat: #E6DED2;
  --oat-deep: #DCD2C3;
  --ink: #2B2A26;
  --stone: #6B655B;
  --stone-on-oat: #5E5A52;
  --clay: #9E4F45;
  --hair: rgb(43 42 38 / .08);
  --shell: rgb(43 42 38 / .035);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--linen); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: 144px; }
@media (min-width: 760px) { body { padding-bottom: 0; } }
/* paper grain: fixed, never scrolls, never catches clicks */
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--linen); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 62ch; }

/* floating island nav */
.top { position: sticky; top: 0; z-index: 5; padding: 12px 12px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; min-height: 60px; padding: 0 8px 0 22px; border-radius: 999px; background: rgb(251 248 243 / .72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 rgb(255 255 255 / .7), 0 18px 40px -24px rgb(43 42 38 / .35); }
.logo { font: 400 24px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: .2em; }
.logo em { font-style: italic; font-size: .66em; color: var(--clay); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; transition: background .5s var(--ease), color .5s var(--ease); }
.nav a:hover { background: var(--shell); }
.nav a:last-child { background: var(--ink); color: var(--linen); }
.nav a:last-child:hover { background: #3d3b35; }
.nav .hide-s { display: none; }
@media (min-width: 760px) { .nav .hide-s { display: inline-flex; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(52px, 7.6vw, 104px); line-height: .94; letter-spacing: -.035em; }
h2 { font-size: clamp(38px, 6vw, 68px); line-height: 1; margin-bottom: 20px; }
h3 { font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
h1 em, h2 em { color: var(--clay); }
/* eyebrow pill */
.lead { color: var(--stone); font-size: 19px; max-width: 40ch; text-wrap: pretty; margin-top: 28px; }
p + p { margin-top: 14px; }

/* island button with nested arrow */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 8px 0 26px; border-radius: 999px; background: var(--ink); color: var(--linen); font: 500 16px var(--sans); text-decoration: none; border: 0; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 14px 30px -18px rgb(43 42 38 / .7); transition: transform .6s var(--ease), background .6s var(--ease); }
.btn:not(:has(.ico)) { padding-right: 26px; }
.btn:hover { background: #3d3b35; }
.btn:active { transform: scale(.98); }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(245 240 232 / .12); flex: none; transition: transform .6s var(--ease); }
.ico svg { width: 15px; height: 15px; }
.btn:hover .ico { transform: translate(2px, -1px) scale(1.05); }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgb(43 42 38 / .35); display: inline-flex; align-items: center; min-height: 44px; transition: text-decoration-color .5s var(--ease), text-underline-offset .5s var(--ease); }
.link:hover { text-decoration-color: var(--clay); text-underline-offset: 8px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 36px; }

section { padding: clamp(96px, 12vw, 168px) 0; scroll-margin-top: 72px; }
.oat { background: var(--oat); }
.oat p { color: var(--stone-on-oat); }

.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; gap: 64px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.2fr .8fr; } }

/* photo placeholders: swap each for <img> when the Manus photos arrive (data-photo = original filename).
   Double bezel: the two outer rings follow the radius, so the curves stay concentric. */
.ph { position: relative; aspect-ratio: 4 / 5; background: var(--oat); color: var(--stone-on-oat); display: grid; place-items: center; text-align: center; font-size: 13px; padding: 16px; border-radius: 28px; box-shadow: inset 0 1px 1px rgb(255 255 255 / .5), 0 0 0 8px rgb(251 248 243 / .6), 0 0 0 9px var(--hair), 0 50px 90px -50px rgb(43 42 38 / .4); }
.oat .ph { background: var(--oat-deep); box-shadow: inset 0 1px 1px rgb(255 255 255 / .4), 0 0 0 8px rgb(245 240 232 / .45), 0 0 0 9px var(--hair), 0 40px 80px -50px rgb(43 42 38 / .35); }
.ph.sq { aspect-ratio: 1; }
/* real photos fill the frame; the price tag sits on top */
.ph.has-img { padding: 0; overflow: hidden; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph .tag { z-index: 1; }
/* funeral has no photos yet: text and prices only */
#funeral .two { grid-template-columns: 1fr; max-width: 760px; }

/* paper tag: products and hero only, never funeral */
.tag { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink); font: 500 14px/1.2 var(--sans); padding: 10px 16px; border-radius: 999px; transform: rotate(-2deg); box-shadow: 0 0 0 1px var(--hair), 0 12px 24px -14px rgb(43 42 38 / .5); text-align: left; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips span { background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--stone-on-oat); }

/* product cards: outer shell + inner photo core */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 56px; }
.item { padding: 8px 8px 22px; border-radius: 34px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .8s var(--ease), background .8s var(--ease); }
.item:hover { transform: translateY(-4px); background: rgb(43 42 38 / .05); }
.item .ph { border-radius: 26px; box-shadow: inset 0 1px 1px rgb(255 255 255 / .5); margin-bottom: 22px; }
.item h3, .item h4, .item p, .item .link, .item .prices { margin-left: 18px; margin-right: 18px; }
.item h4 { font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.item .prices { margin-top: 14px; margin-bottom: 4px; }

/* product groups: heading, photo cards, then a price list for pieces without a photo */
.group { margin-top: clamp(72px, 9vw, 120px); }
.group:first-of-type { margin-top: 56px; }
.gh { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.group .grid { margin-top: 28px; }
.group > .prices { max-width: 760px; margin-top: 16px; }
.sub { font-weight: 500; margin-top: 48px; }
.item p { color: var(--stone); font-size: 16px; }
@media (min-width: 1000px) { .grid .item:first-child { grid-column: span 2; } .grid .item:first-child .ph { aspect-ratio: 16 / 10; } }

.two { display: grid; gap: 56px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.prices { list-style: none; padding: 0; margin-top: 28px; border-top: 1px solid var(--hair); }
.prices li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.prices li span:last-child { font-family: var(--serif); font-size: 19px; }

details summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgb(43 42 38 / .35); }
details[open] summary { margin-bottom: 8px; }

.faq dt { font: 400 24px/1.2 var(--serif); margin-top: 36px; }
.faq dd { color: var(--stone-on-oat); margin: 8px 0 0; }

/* order form: paper card in a hairline tray */
form { display: grid; gap: 20px; margin-top: 40px; padding: clamp(22px, 4vw, 44px); border-radius: 30px; background: var(--paper); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 0 0 8px var(--shell), 0 0 0 9px var(--hair), 0 50px 90px -60px rgb(43 42 38 / .4); }
@media (min-width: 760px) { form { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }
label { display: grid; gap: 8px; font-weight: 500; font-size: 15px; }
label small { font-weight: 400; color: var(--stone); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 14px; padding: 12px 16px; min-height: 52px; width: 100%; box-shadow: inset 0 0 0 1px rgb(43 42 38 / .16), inset 0 2px 3px rgb(43 42 38 / .04); transition: box-shadow .5s var(--ease); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--clay), 0 0 0 4px rgb(158 79 69 / .14); }
.hp { position: absolute; left: -9999px; }
.note { font-size: 15px; color: var(--stone); }

/* footer: dark floating panel */
footer { background: var(--ink); color: var(--linen); padding: 72px 0 48px; margin: 0 8px 8px; border-radius: 36px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
footer .wrap { display: grid; gap: 32px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
footer .logo { color: var(--linen); font-size: 30px; }
footer .logo em { color: #E2A79D; }
footer p, footer li { color: #D9D3C8; font-size: 15px; }
footer ul { list-style: none; padding: 0; }
footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration-color: rgb(245 240 232 / .3); text-underline-offset: 5px; }

/* ponytail: sits above Netlify's free-plan badge (iframe, bottom 64px); drop to 12px if the badge is ever turned off */
.orderbar { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 6; }
.orderbar .btn { width: 100%; justify-content: space-between; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 20px 40px -16px rgb(43 42 38 / .7); }
@media (min-width: 760px) { .orderbar { display: none; } }

.page { padding: 72px 0 104px; }
.page h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 28px; }
.page h2 { font-size: 30px; margin: 40px 0 12px; }
.page ul { padding-left: 20px; } .page li { margin-bottom: 6px; }

/* scroll reveal: only hides when JS has run, so the page never goes blank */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
