/* Living World — one column, no script, no CDN. Edit the HTML; there is no build.
   Designed for 1920x1080 first; smaller screens must not break.
   Motion is CSS only and switches off under prefers-reduced-motion.
   Visual language: the parchment-and-bronze "gump" frames of the game's own interface. */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("/fonts/CinzelDecorative-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel-Variable.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/IMFellEnglish-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/IMFellEnglish-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #2a1a12;
  --ink-soft: #4a3628;
  --parchment: #ead9b4;
  --parchment-light: #f3e7c9;
  --parchment-deep: #d9c391;
  --stone: #8c7f72;
  --stone-dark: #5b514a;
  --amber: #d98a3a;
  --amber-light: #f2c46a;
  --gold: #c9a24a;
  --gold-light: #f1d98a;
  --gold-deep: #8a6a1e;
  --bronze: #6b4a22;
  --terracotta: #b5542a;
  --terracotta-deep: #8f3b1e;
  --smoke: #2a1a12;
  --night: #150b06;
  --display: "Cinzel Decorative", "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  --caps: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "IM Fell English", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --frame-shadow: 0 22px 44px -26px rgba(42, 26, 18, 0.85), 0 2px 0 rgba(255, 244, 214, 0.5);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--parchment) url("/img/parchment.jpg") repeat center top / 900px 900px;
  background-image: image-set(url("/img/parchment.webp") type("image/webp"), url("/img/parchment.jpg") type("image/jpeg"));
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern", "liga";
}

/* aged edges: the page darkens slightly toward its borders, like a sheet kept in a chest */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(90, 58, 42, 0.22) 100%);
}
body > * { position: relative; z-index: 1; }

a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }
a:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--caps); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-family: var(--display); }
h2 { font-size: 1.75rem; letter-spacing: 0.02em; color: var(--ink); position: relative; padding-bottom: 0.55rem; margin-bottom: 0.9em; }
h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, transparent);
}
h2 small {
  display: block; font-family: var(--caps); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta-deep); margin-bottom: 0.55rem;
}
h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }

p { margin: 0 0 1em; text-wrap: pretty; }
code, .mono { font-family: var(--mono); }
strong { font-weight: 400; color: var(--terracotta-deep); }
img { max-width: 100%; height: auto; display: block; }

/* a drop capital opens each chapter of the page */
.col h2 + p::first-letter {
  font-family: var(--display); float: left; font-size: 3.4em; line-height: 0.82;
  padding: 0.08em 0.12em 0 0; color: var(--terracotta-deep);
  text-shadow: 0 1px 0 var(--parchment-light), 0 2px 0 rgba(90, 58, 42, 0.25);
}

/* ---------- motion ---------- */

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes flicker {
  0%   { opacity: 0.45; transform: scale(1); }
  30%  { opacity: 0.75; transform: scale(1.06); }
  55%  { opacity: 0.5;  transform: scale(0.97); }
  80%  { opacity: 0.8;  transform: scale(1.04); }
  100% { opacity: 0.55; transform: scale(1); }
}
@keyframes lantern { from { opacity: 0.35; transform: scale(0.9); } to { opacity: 0.8; transform: scale(1.15); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ember {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(var(--drift, 20px), -420px) scale(0.3); opacity: 0; }
}
@keyframes fadein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- the gump frame: parchment plate, bronze rule, gold hairline, corner marks ---------- */

.frame {
  position: relative;
  background: linear-gradient(180deg, var(--parchment-light), #efe0bf);
  border: 1px solid var(--gold-deep);
  box-shadow:
    inset 0 0 0 3px var(--parchment-light),
    inset 0 0 0 4px var(--gold),
    inset 0 0 48px rgba(90, 58, 42, 0.14),
    var(--frame-shadow);
}
.frame::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg transform='rotate(0 14 14)' fill='none' stroke='%238a6a1e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 14V3h11'/%3E%3Cpath d='M6 6c6 0 10 4 10 10'/%3E%3Cpath d='M3 21c0-4 1-6 3-7'/%3E%3Cpath d='M21 3c-4 0-6 1-7 3'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1.8' fill='%23c9a24a' transform='rotate(0 14 14)'/%3E%3C/svg%3E"), url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg transform='rotate(90 14 14)' fill='none' stroke='%238a6a1e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 14V3h11'/%3E%3Cpath d='M6 6c6 0 10 4 10 10'/%3E%3Cpath d='M3 21c0-4 1-6 3-7'/%3E%3Cpath d='M21 3c-4 0-6 1-7 3'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1.8' fill='%23c9a24a' transform='rotate(90 14 14)'/%3E%3C/svg%3E"), url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg transform='rotate(270 14 14)' fill='none' stroke='%238a6a1e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 14V3h11'/%3E%3Cpath d='M6 6c6 0 10 4 10 10'/%3E%3Cpath d='M3 21c0-4 1-6 3-7'/%3E%3Cpath d='M21 3c-4 0-6 1-7 3'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1.8' fill='%23c9a24a' transform='rotate(270 14 14)'/%3E%3C/svg%3E"), url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg transform='rotate(180 14 14)' fill='none' stroke='%238a6a1e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 14V3h11'/%3E%3Cpath d='M6 6c6 0 10 4 10 10'/%3E%3Cpath d='M3 21c0-4 1-6 3-7'/%3E%3Cpath d='M21 3c-4 0-6 1-7 3'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1.8' fill='%23c9a24a' transform='rotate(180 14 14)'/%3E%3C/svg%3E");
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
  background-size: 26px 26px;
}

/* ---------- top bar ---------- */

.lang {
  position: absolute; top: 0; right: 0; z-index: 5;
  display: flex; gap: 1.4rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--caps); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em;
  background: linear-gradient(180deg, rgba(21, 11, 6, 0.6), transparent);
  border-bottom-left-radius: 6px;
}
.lang a { color: rgba(241, 217, 138, 0.75); text-decoration: none; text-shadow: 0 1px 2px #000; }
.lang a:hover { color: #fff; text-decoration: underline; }
.lang [aria-current="page"] { color: var(--gold-light); }

/* ---------- hero: the painting, then the bronze plate with the address ---------- */

.hero {
  position: relative;
  background: var(--night);
  color: var(--parchment-light);
  border-bottom: 5px solid var(--terracotta-deep);
  box-shadow: 0 6px 0 var(--gold-deep);
}

.hero-painting {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* height from the painting's own ratio, capped so the address bar stays on the first screen;
     no aspect-ratio here: with a max-height, aspect-ratio narrows the box instead of cropping the image */
  height: min(80vh, 42.85vw);
  background: var(--night);
}
.hero-painting img.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  transform-origin: 45% 40%;
  animation: kenburns 50s ease-in-out infinite alternate;
}
/* painted vignette over the edges of the canvas */
.hero-painting::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 140px rgba(21, 11, 6, 0.55);
}

.glow { position: absolute; pointer-events: none; border-radius: 50%; mix-blend-mode: screen; }
.glow-fire {
  left: 55%; top: 8%; width: 20%; height: 32%;
  background: radial-gradient(closest-side, rgba(255, 150, 40, 0.75), rgba(255, 90, 20, 0.3) 45%, transparent 70%);
  animation: flicker 1.7s ease-in-out infinite;
}
.glow-fire2 {
  left: 60%; top: 14%; width: 10%; height: 18%;
  background: radial-gradient(closest-side, rgba(255, 230, 150, 0.8), transparent 70%);
  animation: flicker 1.1s ease-in-out infinite reverse;
}
.glow-lantern {
  left: 10.5%; top: 37%; width: 5%; height: 11%;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.95), rgba(255, 180, 80, 0.4) 40%, transparent 70%);
  animation: lantern 2.6s ease-in-out infinite alternate;
}

.embers { position: absolute; left: 52%; top: 22%; width: 24%; height: 30%; pointer-events: none; }
.embers i {
  position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%;
  background: #ffc46a; box-shadow: 0 0 8px 2px rgba(255, 150, 50, 0.8);
  opacity: 0;
  animation: ember 6s linear infinite;
}
.embers i:nth-child(1)  { left: 5%;  animation-delay: 0s;    animation-duration: 7s;   --drift: 30px; }
.embers i:nth-child(2)  { left: 18%; animation-delay: 1.1s;  animation-duration: 6s;   --drift: -20px; }
.embers i:nth-child(3)  { left: 30%; animation-delay: 2.3s;  animation-duration: 8s;   --drift: 45px; }
.embers i:nth-child(4)  { left: 42%; animation-delay: 0.6s;  animation-duration: 6.5s; --drift: 10px; }
.embers i:nth-child(5)  { left: 55%; animation-delay: 3.2s;  animation-duration: 7.5s; --drift: -35px; }
.embers i:nth-child(6)  { left: 66%; animation-delay: 1.8s;  animation-duration: 6.2s; --drift: 25px; }
.embers i:nth-child(7)  { left: 78%; animation-delay: 4.1s;  animation-duration: 8.5s; --drift: 55px; }
.embers i:nth-child(8)  { left: 88%; animation-delay: 2.9s;  animation-duration: 7.2s; --drift: -15px; }
.embers i:nth-child(9)  { left: 12%; animation-delay: 4.8s;  animation-duration: 6.8s; --drift: 40px; }
.embers i:nth-child(10) { left: 48%; animation-delay: 5.5s;  animation-duration: 7.8s; --drift: -25px; }

.hero-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 8rem 4vw 2.2rem;
  background: linear-gradient(180deg, transparent, rgba(21, 11, 6, 0.55) 45%, rgba(21, 11, 6, 0.9));
}
.hero-title h1 {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.25em;
  color: var(--gold-light);
  background: linear-gradient(180deg, #fbe7a6 0%, #e6c26a 45%, #b8892e 70%, #f1d98a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #4a1e0c) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.85));
  animation: rise 1.1s ease-out both;
}
.identity {
  max-width: 58rem;
  font-size: clamp(1.1rem, 1.45vw, 1.55rem);
  line-height: 1.4; margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
  animation: rise 1.1s 0.25s ease-out both;
}

.hero-bar {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem 3rem; align-items: center;
  max-width: 120rem; margin: 0 auto;
  padding: 1.5rem 4vw 1.7rem;
  background:
    linear-gradient(90deg, rgba(255, 190, 90, 0.07), transparent 40%),
    linear-gradient(180deg, #1e1009, #120904);
  animation: rise 1.1s 0.45s ease-out both;
}
/* the bronze plate */
.connect {
  display: grid;
  grid-template-columns: max-content max-content max-content max-content;
  gap: 0.2rem 1.4rem; align-items: baseline;
  margin: 0;
  padding: 1rem 1.6rem;
  background: linear-gradient(180deg, #4a2f18, #2a1a0e 60%, #1c1008);
  border: 1px solid var(--gold-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 150, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 0 0 4px #1c1008,
    inset 0 0 0 5px rgba(201, 162, 74, 0.55),
    0 0 36px rgba(255, 160, 60, 0.16),
    0 10px 24px -12px #000;
}
.connect dt { font-family: var(--caps); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.connect dd {
  margin: 0; font-family: var(--mono); font-size: 1.7rem; color: #fff8e6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255, 190, 90, 0.45);
  user-select: all; -webkit-user-select: all;
}

.hero-notes { max-width: 60rem; }
.hero-notes p { margin: 0 0 0.35em; }
.newbie { font-size: 1.15rem; color: var(--parchment-light); }
.newbie strong { color: var(--gold-light); }
.client-line { font-size: 1.05rem; color: rgba(243, 231, 201, 0.8); }
.open-since { font-style: italic; color: var(--gold-light); }

/* ---------- sections ---------- */

.col { max-width: 46rem; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.col.wide { max-width: 78rem; }

section { padding: 2.75rem 0 1.5rem; }

@supports (animation-timeline: view()) {
  .reveal { animation: fadein linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

.fleuron {
  display: block; width: 100%; height: 26px; margin: 1.75rem 0 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26'><g fill='none' stroke='%238a6a1e' stroke-width='1.2'><path d='M0 13h150M250 13h150'/></g><g fill='%23c9a24a' stroke='%238a6a1e' stroke-width='1'><path d='M200 4l9 9-9 9-9-9z'/><path d='M178 13l6-4v8zM222 13l-6-4v8z'/></g><g fill='none' stroke='%238a6a1e' stroke-width='1.2'><path d='M158 13c8-8 14-8 20 0M222 13c6-8 12-8 20 0'/></g></svg>") center / auto 26px no-repeat;
}

/* timeline */
.cap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 1.25rem 0; padding: 6px; list-style: none;
}
.cap li { padding: 1.2rem 0.75rem 1rem; text-align: center; border-right: 1px solid rgba(138, 106, 30, 0.35); }
.cap li:last-child { border-right: 0; }
.cap b {
  display: block; font-family: var(--caps); font-size: 2.4rem; color: var(--terracotta-deep); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 var(--parchment-light), 0 2px 0 rgba(90, 58, 42, 0.25);
}
.cap span { font-family: var(--caps); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-dark); }

/* how to get in: bronze medallions for the sequence */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; }
.steps li { position: relative; padding-left: 3.6rem; margin-bottom: 1.6rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9a75a, #8f3b1e 55%, #5a2410);
  color: var(--parchment-light);
  box-shadow: inset 0 0 0 2px #5a2410, inset 0 0 0 3px var(--gold), 0 3px 8px -2px rgba(42, 26, 18, 0.7);
  font-family: var(--caps); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.steps li p:last-child { margin-bottom: 0; }
.steps h3 { margin-bottom: 0.25em; }
.steps .alt { margin-top: 0.9rem; padding: 0.8rem 1.1rem; border-left: 3px solid var(--gold); background: var(--parchment-light); font-size: 1.05rem; box-shadow: inset 0 0 24px rgba(90, 58, 42, 0.08); }
.steps .alt b { font-family: var(--caps); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--terracotta-deep); }

.fields {
  display: inline-grid; grid-template-columns: max-content max-content; gap: 0.25rem 1rem;
  margin: 0.4rem 0 0.8rem; padding: 0.7rem 1.1rem;
  border: 1px solid var(--gold-deep); background: var(--parchment-light);
  box-shadow: inset 0 0 0 2px var(--parchment-light), inset 0 0 0 3px rgba(201, 162, 74, 0.5);
}
.fields dt { font-family: var(--caps); font-weight: 600; color: var(--stone-dark); font-size: 0.78rem; letter-spacing: 0.1em; }
.fields dd { margin: 0; font-family: var(--mono); user-select: all; -webkit-user-select: all; }

/* templates: four framed portraits */
.templates {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin: 1.5rem 0; padding: 0; list-style: none;
}
.templates li { padding: 6px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.templates li:hover { transform: translateY(-6px); }
.templates .card-img { position: relative; margin: 4px; overflow: hidden; aspect-ratio: 440 / 640; }
.templates .card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 20%; transition: transform 1.2s ease; }
.templates li:hover .card-img img { transform: scale(1.05); }
.templates .card-img::after, .watch .pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(138, 106, 30, 0.6), inset 0 0 46px rgba(42, 26, 18, 0.5);
}
.templates .card-text { padding: 0.9rem 0.9rem 0.8rem; }
.templates b { display: block; font-family: var(--caps); font-size: 1.15rem; font-weight: 700; color: var(--terracotta-deep); margin-bottom: 0.25rem; letter-spacing: 0.04em; }
.templates span { font-size: 1rem; color: var(--ink-soft); }
.templates .advanced .card-img {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #3a2418, #150b06 75%);
  color: var(--gold-light); font-family: var(--display); font-size: 5rem;
  text-shadow: 0 0 30px rgba(241, 217, 138, 0.45);
}

/* the vista: a full-bleed painting between chapters */
.vista {
  position: relative; overflow: hidden;
  min-height: 62vh;
  display: grid; place-items: center;
  background: var(--night) url("/img/vista.jpg") center 35% / cover no-repeat;
  background-image: image-set(url("/img/vista.webp") type("image/webp"), url("/img/vista.jpg") type("image/jpeg"));
  color: var(--parchment-light);
  border-top: 5px solid var(--terracotta-deep); border-bottom: 5px solid var(--terracotta-deep);
  box-shadow: inset 0 1px 0 var(--gold-deep), inset 0 -1px 0 var(--gold-deep), 0 -6px 0 var(--gold-deep), 0 6px 0 var(--gold-deep);
  text-align: center; padding: 5rem 1.5rem;
}
@media (min-width: 1100px) and (hover: hover) { .vista { background-attachment: fixed; } }
.vista::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(21, 11, 6, 0.55), rgba(21, 11, 6, 0.15) 60%, rgba(21, 11, 6, 0.6)); }
.vista .inner { position: relative; max-width: 50rem; }
.vista .one-world {
  font-family: var(--caps); font-size: clamp(1.4rem, 2.4vw, 2.4rem); line-height: 1.3;
  color: var(--gold-light); text-shadow: 0 2px 0 #4a1e0c, 0 8px 30px rgba(0, 0, 0, 0.9);
  margin: 0 0 1rem;
}
.vista.moon {
  background-image: url("/img/moongate-night.jpg");
  background-image: image-set(url("/img/moongate-night.webp") type("image/webp"), url("/img/moongate-night.jpg") type("image/jpeg"));
  background-position: center 45%; min-height: 56vh; padding: 0;
}
.vista.moon::before { background: linear-gradient(180deg, rgba(21, 11, 6, 0.35), transparent 30%, transparent 70%, rgba(21, 11, 6, 0.35)); }
.vista p { font-size: 1.2rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8); margin: 0; }

/* era sheet: a tablet */
.sheet {
  list-style: none; padding: 0.4rem 1.1rem; margin: 1rem 0;
  font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
.sheet li { padding: 0.55rem 0; border-bottom: 1px dashed rgba(138, 106, 30, 0.45); }
.sheet li:last-child { border-bottom: 0; }

/* two-column chapters: text beside a framed painting */
.not-here, .with-figure { display: grid; grid-template-columns: 1fr 22rem; gap: 3rem; align-items: start; }
.with-figure .watch { margin-top: 2.75rem; }
.none { list-style: none; padding: 0; margin: 1rem 0; }
.none li { padding: 0.85rem 0; border-bottom: 1px solid rgba(138, 106, 30, 0.3); }
.none li:last-child { border-bottom: 0; }
.none b { font-family: var(--caps); font-size: 0.9rem; color: var(--terracotta-deep); display: block; margin-bottom: 0.2rem; letter-spacing: 0.04em; }
.watch { margin: 0; padding: 6px; }
.watch .pic { position: relative; margin: 4px; }
.watch img { width: 100%; }
.watch figcaption { font-style: italic; font-size: 0.98rem; color: var(--ink-soft); padding: 0.7rem 0.6rem 0.5rem; text-align: center; }

/* faq */
.faq dt { font-size: 1.35rem; margin-top: 1.2rem; }
.faq dd { margin: 0.2rem 0 0; }

/* footer: dark leather and a gold rule */
footer {
  border-top: 5px solid var(--terracotta-deep);
  box-shadow: inset 0 1px 0 var(--gold-deep);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 190, 90, 0.08), transparent 55%),
    linear-gradient(180deg, #1e1009, #120904);
  color: rgba(243, 231, 201, 0.85);
}
footer .inner { max-width: 78rem; margin: 0 auto; padding: 2rem 1.5rem; font-size: 1.05rem; display: grid; grid-template-columns: max-content 1fr; gap: 1.6rem; align-items: center; }
footer .seal img { width: 8.5rem; height: 8.5rem; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }
footer p { margin: 0 0 0.4rem; }
footer .mono { color: var(--gold-light); font-variant-numeric: tabular-nums; }
footer .contact { font-size: 0.95rem; color: rgba(243, 231, 201, 0.7); }
footer .contact a { color: var(--gold-light); }

/* ---------- smaller screens: must not break ---------- */

@media (max-width: 1100px) {
  .templates { grid-template-columns: repeat(2, 1fr); }
  .not-here, .with-figure { grid-template-columns: 1fr; }
  .watch { max-width: 22rem; }
}

@media (max-width: 900px) {
  .hero-bar { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 1.5rem; }
  .connect { grid-template-columns: max-content max-content; width: max-content; max-width: 100%; }
  .hero-painting { height: 62vh; }
  .hero-title { padding: 6rem 1.5rem 1.5rem; }
}

@media (max-width: 600px) {
  body { font-size: 1.1rem; }
  .lang { padding: 0.75rem 1rem; gap: 1rem; }
  .hero-painting { height: 58vh; }
  .hero-painting { height: 72vh; }
  .hero-painting img.hero-img { object-position: 50% 35%; }
  footer .inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .glow, .embers { display: none; }
  .connect { grid-template-columns: 1fr; gap: 0.1rem 0; width: 100%; }
  .connect dt { margin-top: 0.4rem; }
  .connect dd { font-size: 1.35rem; word-break: break-all; }
  .cap { grid-template-columns: 1fr; }
  .cap li { border-right: 0; border-bottom: 1px solid rgba(138, 106, 30, 0.35); }
  .cap li:last-child { border-bottom: 0; }
  .templates { grid-template-columns: 1fr; }
  .steps li { padding-left: 3.1rem; }
  .vista { min-height: 50vh; padding: 3.5rem 1.25rem; }
  .col h2 + p::first-letter { font-size: 2.8em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vista { background-attachment: scroll; }
}
