/* ==========================================================================
   kylan-sydan — theme: ember-night (food-restaurant, skeleton S6 cinematic
   scroll) — FIRST use of this theme in the library.
   Palette: near-black #131110 · charred brown #241C17 · ember #E4572E
            (decorative/large headline text only — see contrast note below)
            · old gold #C8963E (AA/AAA-safe accent for links, labels, small
            text: 7.07:1 on near-black, 6.29:1 on charred-brown) · bone text
            #EDE6DC (14.4:1 on near-black)
   Contrast note: ember #E4572E on near-black measures ~5.2:1 and on
   charred-brown ~4.6:1 — both clear AA (4.5:1) for normal text, but with
   little headroom. Ember is therefore used only for large display headings
   (>=24px, where the AA threshold drops to 3:1) and as a decorative
   gradient/glow. All small text, links and labels use --gold instead, which
   comfortably clears AAA on both dark backgrounds.
   Type:    Cormorant Garamond variable (display) / Jost variable (body)
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/jost-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #131110;
  --brown: #241C17;
  --ember: #E4572E;      /* decorative + large display text only, see note above */
  --gold: #C8963E;       /* AA/AAA-safe accent for links, labels, small text */
  --bone: #EDE6DC;       /* body text — 14.4:1 on near-black */
  --bone-soft: #C8BFB2;  /* secondary text — ~9.4:1 on near-black, still AA */
  --line: rgba(200, 150, 62, 0.28);
  --display: "Cormorant Garamond", "Georgia", serif;
  --body: "Jost", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 0.4rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bone);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--black); }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #E0AE5E; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus-visible { left: 0.5rem; top: 0; }

/* ------------------------------------------------------------------ draft */

.draft-banner {
  display: block;
  background: var(--brown);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--line);
}
.draft-banner strong { color: var(--gold); font-weight: 700; }
.draft-banner:hover { background: #2E2319; }

/* --------------------------------------------------------------------- nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 17, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.8rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bone-soft);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--gold); }

.nav-contact {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-contact:hover { background: #E0AE5E; }

/* ------------------------------------------------------- hero (S6 frame 1) */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(19,17,16,0.96) 0%, rgba(19,17,16,0.55) 45%, rgba(19,17,16,0.35) 100%),
    linear-gradient(100deg, rgba(228,87,46,0.22) 0%, rgba(19,17,16,0) 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 var(--pad) 0 0;
  padding: clamp(6rem, 16vw, 9rem) var(--pad) clamp(3rem, 8vw, 5rem);
}

.kicker {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 1.2rem;
}
.hero h1 .gold { color: var(--gold); font-style: italic; }

.lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--bone-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  border-radius: 999px;
}
.cta:hover { background: #E0AE5E; border-color: #E0AE5E; }
.cta.ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.cta.ghost:hover { border-color: var(--gold); color: var(--gold); }

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bone-soft);
  background: rgba(237, 230, 220, 0.06);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* ---------------------------------------------- S6 cinematic full frames */

.frame {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brown);
  scroll-margin-top: 0;
}
.frame-media { position: absolute; inset: 0; }
.frame-media picture,
.frame-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(19,17,16,0.94) 0%, rgba(19,17,16,0.6) 40%, rgba(19,17,16,0.28) 100%),
    linear-gradient(100deg, rgba(228,87,46,0.18) 0%, rgba(19,17,16,0) 45%);
}
.frame-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding: clamp(3rem, 10vw, 6rem) var(--pad) clamp(3.5rem, 10vw, 6rem);
}
.frame-content h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  color: var(--bone);
  margin: 0.3rem 0 1.1rem;
}
.frame-content p { color: var(--bone-soft); max-width: 34rem; margin-bottom: 0.9rem; }
.frame-content p:last-child { margin-bottom: 0; }
.frame-content strong { color: var(--bone); }

.frame-right { justify-content: flex-end; }
.frame-right .frame-scrim {
  background:
    linear-gradient(0deg, rgba(19,17,16,0.94) 0%, rgba(19,17,16,0.6) 40%, rgba(19,17,16,0.28) 100%),
    linear-gradient(-100deg, rgba(228,87,46,0.18) 0%, rgba(19,17,16,0) 45%);
}
.frame-right .frame-content { text-align: right; margin-left: auto; }
.frame-right .frame-content p { margin-left: auto; }

/* signature move: scroll fade-in, only active when JS confirms motion is
   allowed (html.js-anim) — with no JS or reduced-motion, content is simply
   visible from the start, so the page still looks complete either way */
html.js-anim .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}
html.js-anim .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ bands */

.band { background: var(--black); }
.band.alt { background: var(--brown); }

section { scroll-margin-top: 4.5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}
.section-inner > .kicker,
.section-inner > h2 { text-align: center; }
.section-note {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--bone-soft);
  text-align: center;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--bone);
  margin: 0.4rem 0 1.2rem;
}

/* --------------------------------------- signature move: gold-ruled list */

.gold-divider {
  height: 1px;
  max-width: 22rem;
  margin: 2.2rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.menu-list {
  list-style: none;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}
.menu-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.menu-list li:first-child { border-top: none; }
.menu-list-title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.menu-list-desc {
  display: block;
  color: var(--bone-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------- gallery (kuvat) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line);
}
.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* -------------------------------------------------------------- photo note */

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  margin-inline: auto;
  border-left: 3px solid var(--gold);
  background: rgba(200, 150, 62, 0.08);
  padding: 0.9rem 1.2rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.95rem;
  color: var(--bone-soft);
}
.photo-note strong { color: var(--bone); }

/* -------------------------------------- signature move: bright CTA band
   (the only saturated, bright ember element on the page) */

.cta-band {
  background: linear-gradient(135deg, var(--ember) 0%, #C8963E 100%);
  color: var(--black);
  margin: 0 var(--pad);
  border-radius: 1.2rem;
  max-width: 72rem;
  margin-inline: auto;
}
.cta-inner {
  text-align: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 72rem;
}
.cta-kicker {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: rgba(19, 17, 16, 0.75);
}
.cta-band h2 {
  color: var(--black);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--black);
  color: var(--bone);
  border-color: var(--black);
  font-size: 1.05rem;
  padding: 0.95rem 2.1rem;
}
.cta-big:hover { background: #2E2319; border-color: #2E2319; color: var(--bone); }

/* ----------------------------------------------------------- yhteystiedot */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}
.visit-block {
  background: var(--brown);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.5rem;
  text-align: left;
}
.visit-block h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.98rem; color: var(--bone); }
.visit-block .small { font-size: 0.88rem; color: var(--bone-soft); margin-top: 0.4rem; }
.text-link { font-weight: 600; }

/* --------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); background: var(--black); }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.footer-cell { min-width: 0; }
.footer-label {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-soft);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.95rem; color: var(--bone); overflow-wrap: break-word; }
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--bone-soft);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------ animation */

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-contact, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 60rem) {
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame-content, .frame-right .frame-content { max-width: 30rem; }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { margin: 0 1rem; border-radius: 1rem; }
  .frame, .hero { min-height: 88vh; }
  .frame-right { justify-content: flex-end; }
  .frame-right .frame-content { text-align: left; margin-left: 0; }
  .frame-right .frame-content p { margin-left: 0; }
}

@media (max-width: 26rem) {
  .hero-actions .cta { width: 100%; text-align: center; }
}
