/* Taide website. The app's museum look: serif titles, off-white wall, museum red and gold. */
.explore-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.explore-screens { margin: 0; min-width: 0; }
.explore-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); align-items: start; }
.explore-pair img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.explore-pair img:nth-child(2) { margin-top: 36px; }
.explore-screens figcaption { margin-top: 20px; text-align: center; }
.waitlist-form { max-width: 480px; margin: 28px auto; text-align: left; display: grid; gap: 12px; }
.waitlist-form input[type=email], .waitlist-form select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.waitlist-form .consent { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0; font-size: .9rem; }
.waitlist-form input[type=checkbox] { flex: none; width: 20px; height: 20px; accent-color: var(--red); }
.waitlist-form button { font: inherit; cursor: pointer; }
.waitlist-form :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.art-download { display: block; font: .85rem/1.5 var(--sans); margin-top: 12px; color: var(--muted); }
.art-download cite { display: inline; font: inherit; }
.art-download a { display: inline-block; margin-bottom: 4px; }
.homepage-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; list-style: none; padding: 0; }
@media (max-width: 760px) { .explore-layout { grid-template-columns: 1fr; } .explore-screens { max-width: 560px; margin-inline: auto; } }

/* Colour relay: real captures, with page-native copy and colour connections. */
.relay-sequence { max-width: 840px; margin: 0 auto; }
.relay-shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px); list-style: none; padding: 0; margin: 0;
}
.relay-shots img {
  width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: 14px; background: var(--phone);
}
.relay-caption { font-size: 0.85rem; line-height: 1.4; margin: 14px 0 0; }
.relay-caption cite { display: block; font-family: var(--serif); color: var(--text); font-size: 1rem; }
.relay-caption span { display: block; color: var(--muted); margin-top: 4px; }
.relay-links {
  width: 66.666%; margin: 24px auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.relay-link {
  position: relative; display: flex; align-items: center; flex-direction: column; gap: 12px;
  padding-inline: 4px; text-align: center; color: var(--muted); font-size: 0.85rem;
}
.relay-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 17px; border-top: 1px solid var(--line);
}
.relay-swatch {
  position: relative; display: block; width: 34px; height: 34px; flex: none;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line);
}
.relay-ochre { background: #aa9448; }
.relay-brown { background: #895b34; }
.relay-example { padding-top: 32px; }
.relay-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.relay-demo .lead { max-width: 28em; }
.relay-download { margin-top: 20px; font-size: 0.9rem; }
.relay-video { margin: 0; }
.relay-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 11;
  border: 1px solid var(--line); border-radius: 14px; background: var(--phone);
}
.relay-video video:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.relay-video figcaption { margin-top: 12px; }
.relay-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-left: 24px; margin: 0 0 32px;
}
.relay-steps li { padding-left: 8px; }
.relay-steps li::marker { color: var(--red); font-weight: 600; }
.relay-steps h3 { font-size: 1.15rem; }
.relay-steps p { color: var(--muted); margin-bottom: 0; }
@media (max-width: 720px) {
  .relay-demo { grid-template-columns: 1fr; }
  .relay-video { width: min(100%, 280px); margin-inline: auto; }
  .relay-steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .relay-caption, .relay-link { font-size: 0.78rem; }
  .relay-caption cite { font-size: 0.86rem; }
}

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --line: #e4dfd5;
  --text: #1b1b1b;
  --muted: #6e6a62;
  --red: #a8322d;
  --red-dark: #7c221e;
  --red-soft: #f6dcd8;
  --on-red: #ffffff;
  --gold: #c9a227;
  --phone: #1b1b1b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #201f1c;
    --line: #34312c;
    --text: #f1ede6;
    --muted: #aaa49a;
    --red: #e0716a;
    --red-dark: #f0948e;
    --red-soft: #3a2220;
    --on-red: #1b1b1b;
    --phone: #000000;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--surface); padding: 8px 12px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--red); }
@media (max-width: 560px) { .site-nav .optional { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  border: 1px solid transparent;
}
.button-primary { background: var(--red); color: var(--on-red); }
.button-primary:hover { background: var(--red-dark); color: var(--on-red); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.button-secondary:hover { background: var(--text); color: var(--bg); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* Hero */
.name-meaning { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.hero { padding: 56px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-art { justify-self: center; }
@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Phone mockup */
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 40px; background: var(--phone);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 30px;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--phone); z-index: 1;
}
.phone-clock {
  position: absolute; top: 64px; left: 0; right: 0; text-align: center;
  color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}
.phone-clock b { display: block; font: 300 3.6rem/1 var(--sans); letter-spacing: -0.02em; }
.phone-clock span { font-size: 0.95rem; }
.phone-caption {
  margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--muted);
}
.phone-caption cite { font-style: italic; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }

/* Times of day */
.phases {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.phases li { text-align: center; }
.phases .phone { width: 100%; max-width: 210px; margin-inline: auto; padding: 7px; border-radius: 30px; }
.phases .phone img { border-radius: 23px; }
.phases .phone::before { top: 14px; width: 9px; height: 9px; }
.phases h3 { margin: 18px 0 4px; font-size: 1.15rem; }
.phases p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 820px) { .phases { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px;
  list-style: none; margin: 0; padding: 0;
}
.features li { border-top: 2px solid var(--gold); padding-top: 18px; }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Homepage questions */
.faq-list { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.faq-list + .fine { margin-top: 24px; }

/* Gallery */
.gallery { columns: 4 220px; column-gap: 20px; margin: 0; }
.gallery figure { break-inside: avoid; margin: 0 0 24px; }
.gallery img {
  width: 100%; border-radius: 4px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px -12px rgb(0 0 0 / 0.25);
}
.gallery figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.gallery cite { display: block; color: var(--text); font-family: var(--serif); font-size: 1rem; }

/* Call to action */
.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta .buttons { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.92rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a:focus-visible { outline-color: var(--red); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red); }

/* Text pages (privacy, terms, support, credits) */
.page { padding: 48px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.page h2 { font-size: 1.55rem; margin-top: 2em; }
.page .updated { color: var(--muted); font-size: 0.95rem; }
.page ul { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface); }
.callout {
  padding: 18px 22px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); margin: 1.4em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Hero extras */
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 20px 0 0; padding: 0;
  font-size: 0.95rem; color: var(--text);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
}
.soon {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0;
  font-size: 0.9rem; color: var(--muted);
}
.soon svg { width: 18px; height: 18px; }

/* Links and notes under a section */
.section-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.section-foot .buttons { margin-top: 0; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }
.fine { margin: 0; font-size: 0.88rem; color: var(--muted); }
.cta .fine { margin-top: 16px; }

/* Theme pages */
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.page-head { padding: 40px 0 8px; }
.page-head .lead { margin-bottom: 0.6em; }
.count { color: var(--muted); font-size: 0.92rem; margin: 0; }
.works { padding: 32px 0 56px; }
.works .gallery { columns: 3 260px; column-gap: 24px; }
.credit { display: block; margin-top: 2px; font-size: 0.8rem; }
.panel {
  margin: 0 0 56px; padding: 32px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center;
}
.panel h2 { font-size: 1.6rem; margin: 0 0 6px; }
.panel p { margin: 0; color: var(--muted); }
.panel .buttons { margin: 0; }
@media (max-width: 720px) { .panel { grid-template-columns: 1fr; padding: 24px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.chips a:hover { border-color: var(--text); }
.other { padding: 0 0 72px; }
.other h2 { font-size: 1.3rem; }

/* Theme index */
.group { padding: 8px 0 40px; }
.group h2 { font-size: 1.4rem; margin-bottom: 18px; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.card { position: relative; }
.card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px -12px rgb(0 0 0 / 0.25);
}
.card h3 { margin: 12px 0 4px; font-size: 1.15rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a, .card h3 a:focus-visible { color: var(--red); }
.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }

@media (max-width: 720px) { .card-wide { grid-template-columns: 1fr; } }

/* Times of day page */
.day-phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px;
  list-style: none; margin: 0; padding: 0;
}
.day-phases li { text-align: center; }
.day-phases .phone { width: 100%; max-width: 220px; margin-inline: auto; padding: 7px; border-radius: 30px; }
.day-phases .phone img { border-radius: 23px; }
.day-phases .phone::before { top: 14px; width: 9px; height: 9px; }
.day-phases h2 { margin: 18px 0 2px; font-size: 1.25rem; }
.day-phases .when { margin: 0 0 6px; color: var(--muted); font-size: 0.92rem; }
.day-phases .work { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.day-phases cite { display: block; color: var(--text); font-family: var(--serif); font-size: 0.98rem; }
@media (max-width: 820px) { .day-phases { grid-template-columns: repeat(2, 1fr); } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.strip img { aspect-ratio: 9 / 19; border-radius: 6px; }
@media (max-width: 560px) {
  .works .gallery { columns: 2; column-gap: 14px; }
  .works .gallery figure { margin-bottom: 18px; }
  .works .gallery figcaption { font-size: 0.78rem; }
  .works .gallery cite { font-size: 0.92rem; }
}
