/* Ompelimo Silkki-Nahka — still-water theme, adapted from beauty/wellness
   to a fine leather & fur atelier: same serene/slow/weightless mood,
   reinterpreted as quiet-luxury craftsmanship.
   Tokens: warm tan/sand #A68A6D · warm stone #F0EAE0 · warm mist #E3D8C8 ·
   deep umber text #33291E.
   AA-safe text variants: --umber (11.89:1 on stone, 12.98:1 on paper),
   --umber-soft #55483A (7.39:1 on stone, 6.29:1 on mist) for secondary text.
   Sand #A68A6D is decorative only (2.71:1 on stone — fails AA as text). */

@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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --sand: #A68A6D;
  --stone: #F0EAE0;
  --mist: #E3D8C8;
  --umber: #33291E;
  --umber-soft: #55483A;
  --paper: #F8F4EE;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--umber);
  background: var(--stone);
}

a { color: inherit; }
a:focus-visible,
.quiet-cta:focus-visible {
  outline: 2px solid var(--umber);
  outline-offset: 4px;
}

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

/* ---- draft banner ---- */
.draft-banner {
  display: block;
  background: var(--umber);
  color: var(--stone);
  text-align: center;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
}
.draft-banner strong { color: var(--mist); font-weight: 700; }
.draft-banner:hover { background: #241C14; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--stone) 0%, var(--paper) 100%);
  padding: 4rem 1.5rem;
}
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(85vw, 44rem);
  height: min(85vw, 44rem);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: 100%; }
.blob-shape {
  animation: float 22s ease-in-out infinite;
  transform-origin: center;
}
.blob-shape--soft { animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(1.2%, -1.6%) scale(1.02); }
  66%  { transform: translate(-1.4%, 1.1%) scale(0.99); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--umber-soft);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.55;
  color: var(--umber-soft);
  margin-bottom: 2.75rem;
}

/* ---- quiet cta: never a loud button ---- */
.quiet-cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--umber);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--umber);
}
.quiet-cta:hover { color: var(--umber-soft); border-bottom-color: var(--umber-soft); }
.quiet-cta-arrow { display: inline-block; transition: transform 0.3s ease; }
.quiet-cta:hover .quiet-cta-arrow { transform: translateX(3px); }

/* ---- shared section shell: breathing room is the design ---- */
main section {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(6rem, 20vh, 9rem) 1.5rem;
  text-align: center;
}
.palvelut, .galleria { max-width: 64rem; }
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--umber-soft);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.875rem);
  line-height: 1.2;
  margin-bottom: 2.25rem;
}

/* ---- tarina / laatu ---- */
.tarina-body p { color: var(--umber-soft); max-width: 38rem; margin: 0 auto; }
.tarina-body p + p { margin-top: 1.25rem; }

/* ---- palvelut: three airy columns ---- */
.section-intro {
  max-width: 36rem;
  margin: 0 auto 3.5rem;
  color: var(--umber-soft);
  font-size: 0.9375rem;
}
.palvelut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}
.palvelu { display: flex; flex-direction: column; align-items: center; }
.palvelu-icon {
  width: 44px;
  height: 44px;
  color: var(--umber);
  margin-bottom: 1.5rem;
}
.palvelu h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}
.palvelu p { color: var(--umber-soft); font-size: 0.9375rem; max-width: 18rem; }

/* ---- laatu section sits on a slightly deeper band for rhythm ---- */
.laatu { background: var(--paper); max-width: none; }
.laatu .tarina-body { max-width: 46rem; margin: 0 auto; }

/* ---- galleria ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.gallery-grid figure { margin: 0; }
.ph {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.ph svg { width: 100%; height: 100%; display: block; }
.gallery-grid figcaption {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--umber-soft);
}
.photo-note {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--umber-soft);
  background: var(--paper);
  border-left: 2px solid var(--sand);
  padding: 1.1rem 1.5rem;
  text-align: left;
}

/* ---- yhteystiedot ---- */
.yhteys-lede { color: var(--umber-soft); max-width: 36rem; margin: 0 auto 2rem; }
.yhteys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 2.5rem;
  text-align: left;
}
.yhteys-block h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--umber-soft);
}
.text-link {
  color: var(--umber);
  font-weight: 500;
  text-decoration-color: var(--sand);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: var(--umber); }
.small { font-size: 0.9375rem; color: var(--umber-soft); }

/* ---- footer ---- */
.footer {
  background: var(--mist);
  color: var(--umber-soft);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.9375rem;
}
.footer a { color: var(--umber); text-underline-offset: 3px; }
.footer p + p { margin-top: 0.35rem; }

/* ---- hero entrance: quiet one-time rise on load, no scroll-linked
   animation (see anja-rajala README for why scroll-linked reveal was
   dropped — it left below-the-fold content at partial opacity in
   full-page screenshot / Lighthouse-style snapshot tools; content must be
   at full opacity by default). ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: rise 1.1s ease-out both; }
  .hero-blob { animation: fade-in 1.4s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ---- reduced motion: kill everything ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .palvelut-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .yhteys-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
}
@media (max-width: 560px) {
  .hero { min-height: 92vh; }
  main section { padding: 4.5rem 1.25rem; }
}
