/* Yurara Fameliki · teaser. House system (crea/00): warm paper, one dark ink, one accent. No emoji glyphs anywhere. */
@font-face { font-family: "IM Fell English"; src: url("im-fell-english.woff") format("woff"); font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("eb-garamond.woff") format("woff"); font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("eb-garamond-italic.woff") format("woff"); font-style: italic; font-display: swap; }

:root {
  --paper: #f9f0e3;
  --paper-deep: #f1e5d2;
  --ink: #262c34;
  --ink-soft: #4b525c;
  --accent: #b06234;
  --rule: #dccdb6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 "EB Garamond", Garamond, "Times New Roman", serif;
  font-feature-settings: "kern", "liga", "onum";
}
img { display: block; max-width: 100%; height: auto; }
cite { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One language at a time */
html[lang="en"] [lang="fr"], html[lang="fr"] [lang="en"] { display: none !important; }

.page { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.house { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.house span { font-variant: small-caps; letter-spacing: .22em; font-size: 1.05rem; text-transform: lowercase; }
.lang { display: flex; gap: .25rem; }
.lang button {
  -webkit-appearance: none; appearance: none; border: 1px solid transparent; border-radius: 2px;
  background: transparent; color: var(--ink-soft); font: inherit; font-size: .95rem; letter-spacing: .08em;
  padding: .3rem .6rem; min-height: 40px; min-width: 44px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); background: var(--paper-deep); }
.lang button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Intro */
.intro { margin: 3rem auto 0; max-width: 40rem; text-align: center; }
h1 { font: 400 clamp(2.6rem, 8vw, 4.6rem)/1.05 "IM Fell English", "EB Garamond", serif; margin: 0 0 1.25rem; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); margin: 0; }

/* Countdown */
.countdown { margin: 2.75rem auto 0; max-width: 40rem; text-align: center; padding: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cd-label { margin: 0 0 .9rem; font-style: italic; color: var(--ink-soft); }
.cd-clock { display: flex; justify-content: center; gap: clamp(.9rem, 4vw, 2.25rem); }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.cd-unit b {
  font: 400 clamp(2.2rem, 9vw, 3.4rem)/1 "EB Garamond", Garamond, serif;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum"; color: var(--accent);
}
.cd-unit i { font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }
.cd-when { margin: 1rem 0 0; font-size: 1rem; color: var(--ink-soft); }
.countdown.done .cd-clock { display: none; }
.countdown.done .cd-label { font-size: 1.4rem; color: var(--accent); }

/* Rooms: small arched windows cut into the book illustrations, no titles */
.rooms { margin-top: 2.75rem; }
.room-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .75rem; max-width: 22rem; }
.room { margin: 0; text-align: center; }
.room picture { display: block; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-deep); box-shadow: 0 10px 18px -16px rgba(38, 44, 52, .55); }
.room img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.room:hover img { transform: scale(1.04); }
.room p { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.25; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.room .no { font-family: "IM Fell English", serif; color: var(--accent); font-size: 1.35rem; line-height: 1; }
.come-back { text-align: center; margin: 2rem 0 0; font-style: italic; font-size: 1.2rem; }

/* Error pages */
.error .intro { margin-top: 4rem; }
.error .back { display: inline-block; margin-top: 1.75rem; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; font-size: 1.15rem; }
.error .sign { width: 96px; margin: 0 auto 1.75rem; border-radius: 999px 999px 4px 4px; border: 1px solid var(--rule); }

/* Footer */
.foot { margin-top: 3rem; text-align: center; color: var(--ink-soft); }
.foot p { margin: 0 0 .35rem; display: flex; justify-content: center; align-items: center; gap: .5rem; }
.foot .small { font-size: .85rem; }

@media (min-width: 760px) {
  .page { padding: 2rem 2rem 3rem; }
  .intro { margin-top: 4.5rem; }
  .room-grid { max-width: 34rem; gap: 1.75rem 1.5rem; }
  .room p { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .room img { transition: none; } .room:hover img { transform: none; } }
