/* Living Frames - one stylesheet for every page.
   Built around the logo: slate lines on warm off-white, with a little
   firelight as the only colour. */
:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --slate: #39434b;        /* the logo */
  --ink: #2c343b;
  --ink-soft: #66707a;
  --line: #e3dfd5;
  --line-strong: #cfc9bc;
  --ember: #c0743f;        /* firelight, used sparingly */
  --ok: #3d6b4a;
  --bad: #9b3a2c;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1040px; }

/* header and footer */
header.top { padding: 22px 0 6px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); }
.brand img { width: 34px; height: auto; }
.brand span { font: 600 14px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; }
nav.top a { color: var(--ink-soft); text-decoration: none; font-size: 15px; margin-left: 18px; }
nav.top a:hover { color: var(--slate); }
@media (max-width: 760px) { nav.top a:not(.always) { display: none; } nav.top a.always { margin-left: 16px; } }
footer { margin: 64px 0 0; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer a { color: var(--ink-soft); }
footer img { width: 22px; opacity: 0.8; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(34px, 7vw, 56px); margin: 26px 0 14px; letter-spacing: -0.01em; }
h2 { font-size: clamp(25px, 4.5vw, 32px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--ink-soft); margin-top: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember); margin: 0 0 10px; }
section.band { padding: 44px 0; }
section.band + section.band { border-top: 1px solid var(--line); }

/* the home page picture, framed like the logo: two lines, and the two
   sparkles sitting on the outer line - top left a little below the corner,
   bottom right a little above it - with a small gap cut round each */
.portrait { margin: 30px auto 6px; max-width: 916px; padding: 0 8px; }  /* room for the sparkles at the sides */
.portrait .frame { position: relative; --spark: 46px; }
.portrait .outer { border: 3px solid var(--slate); border-radius: 18px; padding: 10px; background: var(--paper); }
.portrait .inner { border: 3px solid var(--slate); border-radius: 11px; overflow: hidden; aspect-ratio: 16 / 10; background: #2b2420; }
.portrait .inner img, .portrait .inner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .spark { position: absolute; width: var(--spark); height: var(--spark); color: var(--slate); }
.portrait .spark.a { left: calc(1.5px - var(--spark) / 2); top: calc(17% - var(--spark) / 2); }
.portrait .spark.b { right: calc(1.5px - var(--spark) / 2); bottom: calc(12% - var(--spark) / 2); }
.portrait .spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.portrait .spark path { fill: currentColor; stroke: var(--bg); stroke-width: 18; paint-order: stroke; stroke-linejoin: round; }
@media (max-width: 640px) { .portrait .frame { --spark: 32px; } }
.caption { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 18px 0;
}
.cards .card { margin: 0; }
.card .icon { width: 34px; height: 34px; color: var(--slate); margin-bottom: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--slate);
  display: grid; place-items: center; font: 600 15px var(--sans); color: var(--slate);
}
.frame-soon { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.frame-soon img { width: 120px; }
@media (max-width: 560px) { .frame-soon { grid-template-columns: 1fr; } .frame-soon img { width: 86px; } }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
label .opt { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 12px 13px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(57, 67, 75, 0.28); outline-offset: 2px; border-color: var(--slate);
}
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer;
}
.choice input { margin-top: 5px; accent-color: var(--slate); }
.choice b { display: block; }
.choice:has(input:checked) { border-color: var(--slate); box-shadow: 0 0 0 2px rgba(57, 67, 75, 0.16); }
/* the room picker: a picture of each room */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.room {
  position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
}
.room input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; margin: 0; accent-color: var(--slate); }
.room img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.room > span { display: block; padding: 10px 12px 12px; }
.room b { display: block; }
.room:has(input:checked) { border-color: var(--slate); box-shadow: 0 0 0 2px var(--slate); }
.room:has(input:checked) > span { background: rgba(57, 67, 75, 0.06); }
.room:has(input:focus-visible) { outline: 2px solid var(--slate); outline-offset: 2px; }
@media (max-width: 440px) { .rooms { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; accent-color: var(--slate); width: 18px; height: 18px; flex: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.inline-form input { flex: 1 1 220px; }

button, .button {
  display: inline-block; font: 600 16px var(--sans); padding: 13px 24px; border-radius: 999px;
  border: 0; background: var(--slate); color: #fff; cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
}
button:hover, .button:hover { background: #262e34; }
button.secondary, .button.secondary { background: transparent; color: var(--slate); border: 1.5px solid var(--slate); }
button.secondary:hover, .button.secondary:hover { background: rgba(57, 67, 75, 0.06); }
button:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

.error { color: var(--bad); background: #fbebe7; border: 1px solid #eec9c1; border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.okmsg { color: var(--ok); margin-top: 12px; }

/* photo picker */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 18px; text-align: center; background: #fff; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { position: relative; border-radius: 8px; overflow: hidden; background: var(--line); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 4px; right: 4px; padding: 0; width: 28px; height: 28px; font-size: 16px;
  line-height: 28px; background: rgba(44, 52, 59, 0.78);
}
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.bar div { height: 100%; width: 0; background: var(--slate); transition: width 0.2s; }

/* the customer's area */
.ink { color: var(--ink); }
.price-line { margin: 22px 0 0; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.price-line span { font-weight: 600; }
.order .status { font-weight: 600; margin: 10px 0 6px; }
.progress { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: p; }
.progress li { counter-increment: p; font-size: 13px; color: var(--ink-soft); text-align: center; padding-top: 10px; border-top: 4px solid var(--line); }
.progress li.done { border-top-color: var(--slate); }
.progress li.now { border-top-color: var(--ember); color: var(--ink); font-weight: 600; }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.pick-one { position: relative; margin: 0; font-weight: 400; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.pick-one input { position: absolute; opacity: 0; pointer-events: none; }
.pick-one img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #2b2420; }
.pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 15px; }
.pick-foot a { font-size: 14px; color: var(--ink-soft); }
.pick-one:has(input:checked) { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(57, 67, 75, 0.22); }
.pick-one:has(input:checked) .pick-foot b::after { content: " \2713"; color: var(--ok); }
.pick-one:has(input:focus-visible) { outline: 3px solid rgba(57, 67, 75, 0.28); outline-offset: 2px; }
details.redo { margin-top: 22px; }
.picture { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #222; }
.picture.chosen { margin: 14px 0; max-width: 520px; }
.picture.chosen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.files { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.files li { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.files .what { min-width: 0; }
.files .what b { display: block; overflow-wrap: anywhere; }

/* the home page's words */
.hero h1 { max-width: 13em; }
.lead.wide { max-width: 700px; }
.feel { max-width: 720px; }
.feel p.big { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.4; color: var(--ink); margin: 0 0 18px; }
.feel p { color: var(--ink-soft); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 26px; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { margin: 0; color: var(--ink-soft); }
.pillars .rule { width: 34px; height: 2px; background: var(--ember); margin-bottom: 14px; }
.closing { text-align: center; padding: 64px 0 20px; }
.closing h2 { font-size: clamp(28px, 5vw, 40px); max-width: 16em; margin: 0 auto 12px; }
.closing p { color: var(--ink-soft); max-width: 34em; margin: 0 auto; }
.closing .row { justify-content: center; }
.more { margin-top: 18px; }
.more a { color: var(--slate); font-weight: 600; }
/* how it works page */
.shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .shapes { grid-template-columns: 1fr; } }
.shape { display: flex; gap: 16px; align-items: center; }
.shape .box { flex: none; border: 2.5px solid var(--slate); border-radius: 6px; background: var(--paper); }
.shape .box.tv { width: 64px; height: 36px; }
.shape .box.pf { width: 58px; height: 36.25px; }
.shape .box.tb { width: 48px; height: 36px; }
.shape .box.ph { width: 72px; height: 36px; }
.shapes .card { margin: 0; }
/* small phones: the name and one link fit on one line */
nav.top a { white-space: nowrap; }
@media (max-width: 440px) {
  nav.top a.always:not(:last-child) { display: none; }
  .brand span { letter-spacing: 0.24em; }
}

/* home page: examples, the portrait chosen beside the living film */
.examples { display: grid; gap: 34px; margin-top: 26px; }
.example { margin: 0; }
.example .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.example .panel { position: relative; border: 2px solid var(--slate); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #2b2420; }
.example .panel img, .example .panel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.example .tag { position: absolute; left: 10px; top: 10px; z-index: 1; font: 600 12px/1 var(--sans); letter-spacing: 0.06em; color: var(--ink); background: rgba(255, 253, 248, 0.9); border-radius: 999px; padding: 6px 10px; }
.example .caption { margin-top: 10px; }
@media (max-width: 640px) { .example .pair { grid-template-columns: 1fr; gap: 10px; } }

/* short lists of photo tips (order form, and when we ask for another photo) */
.tips { margin: 4px 0 10px; padding-left: 22px; color: var(--ink-soft); }
.tips li { margin: 3px 0; }
.tips b { color: var(--ink); font-weight: 600; }

/* rooms shown on a page (not the order form's choices) */
.rooms.show .room { cursor: default; }
.rooms.show .room .small { display: block; margin-top: 2px; }
.pillars h3 a { color: inherit; }

/* example cards that link to an example's page (/examples/) */
a.room { color: inherit; text-decoration: none; }
.rooms.show a.room { cursor: pointer; }
a.room:hover, a.room:focus-visible { border-color: var(--slate); box-shadow: 0 0 0 2px rgba(57, 67, 75, 0.16); }
a.room:hover b, a.room:focus-visible b { text-decoration: underline; }
