/* Vellanne — one stylesheet for every page, light and dark. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1f1d1a;
  --muted: #6b655c;
  --line: #e6dfd4;
  --accent: #9a6b3f;
  --accent-strong: #7d5430;
  --accent-soft: #f1e6d8;
  --ink: #22303c;
  --photo-1: #d9b99b;
  --photo-2: #a7b4bd;
  --photo-3: #c9a9a6;
  --photo-4: #8c9c86;
  --photo-5: #e3cfb4;
  --shadow: 0 18px 48px rgba(34, 48, 60, 0.12);
  --radius: 14px;
  --serif: "Georgia", "Cambria", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1c1b19;
    --surface-2: #24221f;
    --text: #eee9e1;
    --muted: #a59e93;
    --line: #34312c;
    --accent: #d2a574;
    --accent-strong: #e4bd90;
    --accent-soft: #2e2720;
    --ink: #cfd8df;
    --photo-1: #8f7560;
    --photo-2: #5f6d77;
    --photo-3: #84625f;
    --photo-4: #5a6957;
    --photo-5: #9a8670;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* Hero (the slightly turned spread must never widen the page on a phone) */
.hero { padding: 88px 0 72px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--text); }
h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 22px; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
/* Spacing lives here, not in style="", so the security policy can forbid inline styles. */
.lead.tight { margin: 14px 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: var(--bg); }
.button.primary:hover { color: var(--bg); }
.button.ghost { border-color: var(--line); color: var(--text); background: var(--surface); }

/* The album illustration: an open spread on a soft shadow */
.spread {
  aspect-ratio: 2 / 1.08;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5%;
  gap: 4%;
  position: relative;
  transform: rotate(-1.5deg);
}
.spread::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 26px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.07), transparent);
  pointer-events: none;
}
.page { display: grid; gap: 7%; }
.page.left { grid-template-rows: 1.4fr 1fr; }
.page.left .row { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.page.right { grid-template-columns: 1fr; }
.photo { border-radius: 3px; background: var(--photo-1); }
.photo.p2 { background: linear-gradient(160deg, var(--photo-2), color-mix(in srgb, var(--photo-2) 70%, #000)); }
.photo.p3 { background: linear-gradient(200deg, var(--photo-3), color-mix(in srgb, var(--photo-3) 75%, #000)); }
.photo.p4 { background: linear-gradient(140deg, var(--photo-4), color-mix(in srgb, var(--photo-4) 72%, #000)); }
.photo.p1 { background: linear-gradient(170deg, var(--photo-5), var(--photo-1)); }
.hero-art { position: relative; }
.hero-art .note {
  position: absolute;
  right: -6px;
  bottom: -26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.hero-art .note strong { color: var(--text); display: block; font-weight: 600; }

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.alt { background: var(--surface-2); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin: 10px 0 0; }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }

/* App tiles on the brand page */
.app {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.app .spread { transform: none; box-shadow: none; border: 1px solid var(--line); }
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.later {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 28px 40px;
  color: var(--muted);
  margin-top: 22px;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 20px;
  display: grid;
  place-items: center;
}
.step p { color: var(--muted); margin: 8px 0 0; }

/* Contact */
.contact {
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 64px 32px;
}
.contact h2 { color: var(--bg); }
.contact p { color: color-mix(in srgb, var(--bg) 78%, transparent); margin: 14px auto 28px; max-width: 32em; }
.contact .button { background: var(--bg); color: var(--ink); }
.contact .button:hover { color: var(--ink); }
.contact .mail { display: block; margin-top: 16px; font-size: 15px; color: color-mix(in srgb, var(--bg) 70%, transparent); }

.small { font-size: 14px; color: var(--muted); }
.small.spaced { margin-top: 18px; }

/* Legal pages: one readable column */
.legal { max-width: 760px; padding: 64px 0 80px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}
.legal .box p { margin: 4px 0; }
/* Details the owner still has to fill in before publishing. */
.todo { background: #fff2b3; color: #5a4300; border-radius: 4px; padding: 0 4px; }
@media (prefers-color-scheme: dark) { .todo { background: #5a4a10; color: #fff2b3; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .app { grid-template-columns: 1fr; gap: 36px; }
  .app { padding: 26px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .nav { gap: 14px; }
  .nav .hide-small { display: none; }
  .hero-art .note { right: 8px; bottom: -22px; }
  .later { padding: 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
