/* Morris Wall Art: old tin-sign colours. Cream paper, sign-green, rust red and mustard. */
:root {
  --paper: #f6eed9;
  --paper-2: #efe2c2;
  --wall: #e8dbbb;
  --ink: #2a211b;
  --ink-2: #6a5a4c;
  --line: #dccaa2;
  --accent: #b4432a;
  --accent-ink: #8e3220;
  --teal: #1f5e55;
  --teal-2: #174a43;
  --mustard: #e3a72f;
  --cream: #f6eed9;
  --radius: 8px;
  --serif: 'Alfa Slab One', 'Rockwell', 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 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
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: 700; margin-bottom: .6em; }

/* Header */
.site-header { background: var(--teal); color: var(--cream); border-bottom: 4px solid var(--mustard); position: sticky; top: 0; z-index: 10; --accent: var(--mustard); }
.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.35rem; font-weight: 400; letter-spacing: .01em; }
.logo em { font-style: normal; color: var(--mustard); }
.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: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--mustard); }
.basket-link { color: var(--cream); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--cream); border: 0; border-radius: var(--radius); padding: 14px 26px; font: 700 1rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--accent-ink); transition: background .15s, transform .1s, box-shadow .1s; }
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost:active { transform: none; box-shadow: inset 0 0 0 2px var(--ink); }
.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 #1d1814; 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: #9a6b3f; }
.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); border-block: 1px solid var(--line); }
.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: 3px solid var(--teal); padding-top: 18px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 1.3rem; color: var(--cream); background: var(--accent); width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }

/* 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: #fbf1d6; border: 1px solid #e6c97f; 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(180, 67, 42, .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 { background: var(--ink); color: var(--cream); border-top: 4px solid var(--mustard); padding: 40px 0 24px; margin-top: 40px; --ink-2: #c9b896; --accent: var(--mustard); }
.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: 2px solid var(--teal); color: var(--teal); border-radius: 999px; }
.style-chips a:hover { background: var(--teal); color: var(--cream); }

/* 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; } }

/* Policies page */
.policies .toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: .92rem; line-height: 1.9; margin: 18px 0 8px; }
.policies h2 { margin-top: 36px; scroll-margin-top: 90px; }
.policies li { margin-bottom: 8px; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .opt:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 2px; }
.card:hover h3 { color: var(--accent-ink); }

/* Phones: the header scrolls away and the menu is one swipeable row */
@media (max-width: 640px) {
  .site-header { position: static; }
  .header-row { min-height: 0; padding: 10px 0 0; gap: 6px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; padding-bottom: 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}
