:root {
  color-scheme: light;
  --background: #f4f1e9;
  --paper: #fcfaf5;
  --ink: #26372f;
  --secondary: #50584c;
  --line: #d7d5ca;
  --accent: #944c31;
  --green: #e6eadd;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font: 1rem/1.58 system-ui, sans-serif; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; line-height: 1.08; margin: 0 0 .55em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2.7vw, 1.85rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .22em; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 2 * clamp(1rem, 4vw, 3rem))); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row, nav, .actions, .footer-row { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.header-row, .footer-row { justify-content: space-between; }
.header-row { min-height: 88px; padding-block: .7rem; }
.header-row > a { width: clamp(125px, 20vw, 168px); overflow: hidden; }
.logo { width: 144%; max-width: none; height: auto; margin-left: -22%; mix-blend-mode: multiply; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 5rem); padding-block: clamp(2rem, 7vw, 5rem); }
.hero-photo { width: 100%; aspect-ratio: 1500 / 594; overflow: hidden; border-radius: 15px; }
.hero-photo img { width: 100%; height: auto; }
.lead { color: var(--secondary); max-width: 60ch; font-size: clamp(1.05rem, 2.1vw, 1.2rem); }
.button { display: inline-block; border: 1px solid transparent; border-radius: .7rem; padding: .62rem 1rem; background: var(--ink); color: white; text-decoration: none; line-height: 1.4; cursor: pointer; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { outline: 1px solid var(--ink); }
.button:disabled { cursor: wait; opacity: .65; }
.catalog-group { margin-block: 2.25rem 3.75rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.card, .panel { min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.4rem); }
.card { display: flex; flex-direction: column; }
.card > .actions { margin-top: auto; padding-top: .7rem; }
.card p { color: var(--secondary); }
.card ul, .prices { padding-left: 1.25rem; margin: .25rem 0 .55rem; }
.photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 13px; margin-bottom: 1rem; }
.photo.tall { object-fit: contain; background: var(--background); }
.photo-trigger { display: block; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
details { padding-block: .4rem; margin-bottom: .55rem; }
summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: .45rem; padding-top: .75rem; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
dialog { width: min(950px, 94vw); max-height: 94dvh; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #19251fd9; }
dialog img { max-height: 75dvh; margin: .75rem auto; object-fit: contain; }
dialog figcaption { text-align: center; }
dialog figure { margin: 0; }
.banner { background: var(--green); border-radius: 20px; padding: clamp(1.2rem, 4vw, 2.5rem); margin-bottom: 3rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.page { padding-block: clamp(2rem, 6vw, 4rem); }
.columns { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: start; gap: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.form-grid > .wide { grid-column: 1 / -1; }
label { display: block; }
input:not([type=checkbox]), select, textarea { width: 100%; margin-top: .2rem; padding: .55rem .65rem; border: 1px solid #7d8074; border-radius: .45rem; background: white; color: var(--ink); }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 1.65rem Georgia,serif; margin-bottom: .8rem; }
.form-section + .form-section { margin-top: 1.25rem; }
.note { color: var(--secondary); }
.live-estimate { padding: .85rem 1rem; border-radius: .7rem; background: var(--green); font-weight: 650; }
.summary { background: var(--green); }
.summary img { max-height: 240px; }
.cart-list { padding-left: 1.2rem; }
.cart-list li { margin-bottom: .65rem; }
.cart-list button { margin-left: .4rem; }
.check { display: flex; gap: .5rem; align-items: baseline; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 630px) {
  .hero, .columns, .cards { grid-template-columns: minmax(0,1fr); }
  .header-row { min-height: auto; gap: .6rem 1rem; }
  nav { gap: .45rem .85rem; }
}
@media (max-width: 370px) { .form-grid { grid-template-columns: 1fr; } }

.header-row { min-height: 64px; padding-block: .25rem; gap: .45rem 1.1rem; }
.header-row > a { width: clamp(104px, 13vw, 136px); }
.main-nav { margin-left: auto; gap: .45rem 1.05rem; font-size: .94rem; }
.languages { gap: .16rem; font-size: .88rem; }
.languages a { padding: .24rem .42rem; border-radius: .38rem; }
.languages a[aria-current] { background: var(--green); text-decoration: none; font-weight: 700; }
.languages a[aria-disabled] { color: var(--secondary); opacity: .7; cursor: default; text-decoration: none; }
.hero { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: clamp(1.25rem,4vw,3rem); padding-block: clamp(1rem,2.6vw,2rem); }
.hero h1 { font-size: clamp(2.05rem,4.4vw,3.7rem); margin-bottom: .3em; }
.hero .lead { font-size: clamp(1rem,1.5vw,1.12rem); margin-bottom: .75rem; }
.catalog-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem 1.25rem; margin-bottom: .75rem; }
.catalog-heading h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.5rem); }
#catalog-nav { gap: .45rem; }
#catalog-nav a { padding: .25rem .58rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--paper); font-size: .88rem; }
.catalog-group { margin: 0 0 1.65rem; }
.catalog-group > h3 { font-size: clamp(1.3rem,2.5vw,1.75rem); margin-bottom: .55rem; }
.cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; }
.product-card:hover { border-color: var(--accent); }
.product-card:focus-visible { outline-offset: 3px; }
.product-card img { aspect-ratio: 1.7; width: 100%; object-fit: cover; }
#coaster img, #coaster-set img { object-fit: contain; padding: .45rem; }
.product-card h3 { font: 600 .99rem/1.26 system-ui,sans-serif; margin: 0; padding: .65rem .72rem .75rem; }
.featured-product .product-card { display: block; }
.stl-card-link { display: inline-block; padding: .35rem .65rem 0; font-size: .9rem; }
.about-section, .wood-section { margin-bottom: 1.7rem; }
.about-section p { max-width: 76ch; }
.about-section h2, .wood-section h2, .banner h2, .extra-gallery h2 { font-size: clamp(1.65rem,3vw,2.35rem); }
.wood-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.wood-grid figure { margin: 0; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.wood-grid img { width: 100%; height: 98px; object-fit: cover; }
.wood-grid figcaption { padding: .55rem .7rem; }
.wood-grid span { display: block; color: var(--secondary); }
.wood-grid .product-card { display: block; }
.wood-grid .product-card img { height: 98px; }
.wood-grid .wood-copy { padding: .55rem .7rem; }
.wood-grid .wood-copy strong { display: block; }
.wood-swatch { width: 100%; height: 115px; object-fit: cover; border-radius: 12px; margin-bottom: .7rem; }
.wood-pending { display: grid; min-height: 98px; align-content: center; background: var(--green); padding: .75rem; text-align: center; }
.wood-grid span.wood-pending { display: grid; }
.format-options { gap: .45rem; }
.format-options button[aria-pressed="true"] { background: var(--ink); color: white; }
.option-label { font: inherit; margin-bottom: .35rem; }
.wrap.page { padding-block: clamp(1.25rem,3vw,2.3rem); }
.page > h1, .product-copy h1 { font-size: clamp(2rem,4.5vw,3.85rem); }
.back-link { display: inline-block; margin-bottom: 1rem; }
.product-detail { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(1rem,4vw,3rem); align-items: start; }
.product-copy .lead { font-size: clamp(1rem,1.6vw,1.15rem); }
.carousel { margin: 0; min-width: 0; }
.carousel-frame { position: relative; }
.carousel-photo { display: block; width: 100%; height: min(50vh,460px); object-fit: contain; border-radius: 16px; background: var(--green); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); font: 2rem/1 Georgia,serif; box-shadow: 0 2px 8px #0002; cursor: pointer; }
.carousel-arrow.prev { left: .65rem; }
.carousel-arrow.next { right: .65rem; }
.carousel-count { text-align: center; padding: .25rem; font-size: .9rem; color: var(--secondary); }
.extra-gallery { margin-top: 1.5rem; max-width: 600px; }
@media (hover:hover) and (pointer:fine) {
  .carousel-arrow { opacity: 0; transition: opacity .15s ease; }
  .carousel:hover .carousel-arrow, .carousel:focus-within .carousel-arrow { opacity: 1; }
}
@media (prefers-reduced-motion:reduce) { .carousel-arrow { transition: none; } }
@media (max-width:880px) { .cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:650px) {
  .main-nav { order: 3; width: 100%; margin: 0; padding-bottom: .28rem; gap: .25rem .8rem; }
  .hero, .product-detail { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .cards, .wood-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .carousel-photo { height: min(52vh,365px); }
}

