:root {
  --paper: #f5f0e8;
  --paper-2: #ece4d6;
  --wall: #e6ddcf;
  --ink: #2b2a28;
  --ink-2: #5e5a54;
  --line: #d9cfbf;
  --accent: #b5603c;
  --accent-ink: #8f4527;
  --teal: #2f6f6a;
  --radius: 10px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: .6em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.logo em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.logo .mark { width: 34px; height: 34px; }
.logo-small { font-size: 1.1rem; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 14px 26px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.hero-art .framed:first-child { transform: translateY(-28px); }

/* Framed print presentation */
.wallbox { background: var(--wall); border-radius: var(--radius); padding: clamp(28px, 6vw, 64px); display: grid; place-items: center; }
.framed { background: #fff; border: clamp(6px, 1vw, 12px) solid var(--ink); padding: 7%; box-shadow: 0 18px 40px -18px rgba(43, 42, 40, .45), 0 2px 6px rgba(43, 42, 40, .12); }
.framed img { width: 100%; }
.framed.light { border-color: #c9b89c; }
.frames-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); width: 100%; max-width: 760px; align-items: center; }

/* Sections */
section.band { padding: clamp(48px, 7vw, 88px) 0; }
section.band.alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 36em; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { text-decoration: none; display: block; }
.card .wallbox { padding: 28px; transition: background .2s; }
.card:hover .wallbox { background: var(--paper-2); }
.card h3 { margin: 16px 0 4px; }
.card p { margin: 0; color: var(--ink-2); }
.price { font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--serif); font-size: 1.4rem; color: var(--accent); display: block; margin-bottom: 6px; }

/* Product page */
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 64px) 0; align-items: start; }
.product .wallbox { min-height: 420px; }
.product .framed { width: min(420px, 100%); }
.buy-box { position: sticky; top: 92px; }
.buy-box .price { font-size: 1.6rem; font-family: var(--serif); margin: 4px 0 18px; display: block; }
.buy-box form { margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

table.sizes { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.sizes th, table.sizes td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sizes th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }

.notice { background: #fff8ef; border: 1px solid #ecd3b5; border-radius: var(--radius); padding: 16px 18px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Wallpapers */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phone { border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

/* Create page */
.create-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.create .lead { font-size: 1.1rem; }
.word-form { display: grid; gap: 14px; margin: 24px 0 8px; max-width: 460px; }
.word-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.word-form input { font: 500 1.15rem var(--sans); padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.word-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 96, 60, .18); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.art-explain { margin-top: 18px; }
.art-notes { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.word-chip { display: inline-block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-weight: 600; margin-right: 4px; }
.create-wall { min-height: 520px; padding: clamp(20px, 4vw, 48px); }
.art-frame { width: min(440px, 100%); transition: opacity .2s; }
.art-frame[data-format="phone"] { width: min(280px, 70%); padding: 0; border-radius: 28px; border-width: 8px; overflow: hidden; }
.art-frame[data-format="desktop"] { width: 100%; padding: 0; border-radius: 8px; border-width: 10px; }
.art-frame.is-loading { opacity: .35; }
.art-frame canvas { display: block; width: 100%; height: auto; background: var(--paper); }
.art-actions { margin-top: 18px; display: grid; gap: 12px; }
.segmented { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; width: fit-content; }
.segmented button { font: 600 .95rem var(--sans); background: transparent; color: var(--ink); border: 0; padding: 9px 18px; cursor: pointer; }
.segmented button + button { border-left: 1.5px solid var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.downloads a { font-weight: 600; color: var(--accent-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-row p { margin: 10px 0 0; max-width: 28em; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero-grid, .product, .create-grid { grid-template-columns: 1fr; }
  .create-wall { min-height: 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .buy-box { position: static; }
  .product .wallbox { min-height: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .header-row { padding: 10px 0; }
  .phones { gap: 10px; }
  .phone { border-width: 4px; border-radius: 18px; }
}

/* Shop style filter */
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.style-chips a { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.style-chips a:hover { background: var(--ink); color: var(--paper); }

/* Printed version box on product pages */
.printed { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.printed summary { cursor: pointer; padding: 12px 14px; list-style-position: inside; }
.printed-form { display: grid; gap: 10px; padding: 0 14px 14px; }
.printed-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.printed-form select { font: 500 .95rem var(--sans); padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }

/* Phone wallpapers */
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; }
.phone-card { display: grid; gap: 6px; justify-items: start; scroll-margin-top: 90px; }
.phone-card .phone { width: 100%; }
.phone-card p { margin: 0; }
.phone-card:target .phone { outline: 3px solid var(--accent); outline-offset: 3px; }
.phone-offer { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.phone-offer img { border-radius: 6px; border: 2px solid var(--ink); }
.phone-offer div { flex: 1; line-height: 1.35; }
.phone-offer form { margin: 0; }
.btn-small { font: 600 .85rem var(--sans); padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.btn-small:hover { background: var(--ink); color: var(--paper); }

/* Buying options list on print pages */
.options fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.options legend { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; padding: 0; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.opt:hover { border-color: #b9ad9a; }
.opt:has(input[name=option]:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt input[name=option] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.opt-body { display: grid; gap: 1px; }
.opt-title { font-weight: 600; }
.opt-sub { font-size: .82rem; color: var(--ink-2); }
.opt-price { font-weight: 600; font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.models { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-block; font-size: .8rem; font-weight: 600; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.options .btn { margin-top: 4px; }

/* Product preview that follows the chosen option */
.stage { position: sticky; top: 84px; align-content: center; }
.stage .view { margin: 0; display: grid; justify-items: center; gap: 18px; width: 100%; }
.stage .view[hidden] { display: none; }
.stage figcaption { font-size: .88rem; text-align: center; color: var(--ink); max-width: 30em; line-height: 1.5; }
.stage figcaption .muted { font-size: .8rem; }
.mock-scale { --u: min(12px, 2.6vw); display: grid; grid-template-columns: auto auto; gap: 8px; }
.mock-poster { width: calc(var(--w) * var(--u)); aspect-ratio: var(--w) / var(--h); background: #fff; box-shadow: 0 16px 34px -16px rgba(43,42,40,.5), 0 2px 5px rgba(43,42,40,.15); }
.mock-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-poster.is-framed { border: calc(var(--u) * .9) solid #1d1c1a; box-sizing: content-box; }
.dim { position: relative; color: var(--ink-2); font-size: .72rem; font-weight: 600; white-space: nowrap; display: grid; place-items: center; }
.dim::before { content: ''; position: absolute; background: currentColor; opacity: .6; }
.dim span { position: relative; background: var(--wall); padding: 2px 5px; }
.dim-h { height: 12px; border-inline: 1px solid; }
.dim-h::before { left: 0; right: 0; top: 50%; height: 1px; }
.dim-v { width: 12px; border-block: 1px solid; }
.dim-v::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.dim-v span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 5px 2px; }
.mock-wall { width: min(220px, 60vw); }
.mock-case { position: relative; width: min(210px, 56vw); aspect-ratio: 71.5 / 147; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 16px 34px -14px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.12); }
.mock-case img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-case .cam { position: absolute; top: 12px; left: 12px; width: 40%; aspect-ratio: 1; border-radius: 22%; background: rgba(20,20,20,.85); box-shadow: inset 0 0 0 3px rgba(255,255,255,.12); }
@media (max-width: 860px) { .stage { position: static; } }

/* Phone-width mini preview, stuck to the bottom of the screen while picking an option */
.mini { display: none; }
@media (max-width: 860px) {
  .mini { display: flex; align-items: center; gap: 14px; position: sticky; bottom: 0; z-index: 5; margin: 0 -16px 8px; padding: 10px 16px; background: var(--wall); border-top: 1px solid var(--line); box-shadow: 0 -8px 18px -12px rgba(43,42,40,.35); }
  .mini-pic { flex: 0 0 92px; height: 96px; display: grid; place-items: center; }
  .mini-pic .dim { display: none; }
  .mini-pic .mock-scale { --u: 2.6px; display: block; }
  .mini-pic .framed { width: 62px; border-width: 4px; box-shadow: none; }
  .mini-pic .phone, .mini-pic .mock-case { width: 44px; border-width: 3px; border-radius: 9px; box-shadow: none; }
  .mini-pic .mock-case .cam { top: 4px; left: 4px; }
  .mini-pic .mock-poster { box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); }
  .mini-text { font-size: .8rem; line-height: 1.45; }
}

/* Contact page */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea { font: 400 1rem var(--sans); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Basket */
.basket-link { font-weight: 600; text-decoration: none; color: var(--paper); background: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.basket-link[hidden] { display: none; }
.options [data-add] { margin-top: 8px; }
.options [data-add][hidden] { display: none; }
.basket { display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.blines { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.bline { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bline img { width: 72px; height: auto; border-radius: 4px; display: block; box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.bline a { color: inherit; text-decoration: none; }
.bprice { font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button[data-q] { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font: 600 1rem var(--sans); cursor: pointer; color: var(--ink); }
.qty button[data-q]:disabled { opacity: .4; cursor: default; }
.qty span { min-width: 1.5em; text-align: center; font-weight: 600; }
.qty .linklike { margin-left: 10px; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.bsum { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.bsum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 18px; }
.bsum dt { color: var(--ink-2); }
.bsum dd { margin: 0; text-align: right; font-weight: 600; }
.bsum .btotal { font-size: 1.15rem; color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 860px) { .basket { grid-template-columns: 1fr; } .bsum { position: static; } }
