/* ==========================================================================
   suutari-piiroinen — theme: boutique-terra (retail-leisure group, skeleton
   S5 card catalog, warm variant) — first use of this theme
   Palette: cream #FBF5EC (bg) · terracotta #C96F4A (accent, decorative)
            olive #71723F (secondary accent) · clay-brown #4A382E (text + dark bg)
            terracotta-text #AD522F (AA-safe terracotta for links/small text)
   Type:    DM Serif Text (display) / Mulish (body)
   ========================================================================== */

@font-face {
  font-family: "DM Serif Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-text-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/mulish-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/mulish-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/mulish-700-latin.woff2") format("woff2");
}

:root {
  --cream: #FBF5EC;            /* primary background */
  --cream-tint: #F4EBDD;       /* secondary section background */
  --terracotta: #C96F4A;       /* accent — decorative (icons, borders, buttons) */
  --terracotta-text: #A44B29;  /* AA-safe terracotta for links/small text/buttons — 5.36:1 on cream, 4.91:1 on cream-tint */
  --olive: #71723F;            /* secondary accent — 5.02:1 on cream/white, AA */
  --clay: #4A382E;             /* primary text + dark band background */
  --clay-dim: #E7DCCB;         /* secondary text on clay dark bg — 8.9:1 on clay */
  --hairline: #E3D6C4;
  --focus: #AD522F;
  --display: "DM Serif Text", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
}

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

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

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--clay);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--terracotta); color: var(--cream); }

a { color: var(--terracotta-text); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--terracotta);
  color: var(--cream);
  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 */

.draft-banner {
  display: block;
  background: var(--clay);
  color: var(--clay-dim);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
}
.draft-banner strong { color: #F0C7A8; font-weight: 700; }
.draft-banner:hover { color: var(--cream); background: #3A2C24; }

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.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: 400;
  font-size: 1.2rem;
  color: var(--clay);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--clay);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--terracotta-text); }
.nav-cta {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cream);
  background: var(--terracotta-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--clay); color: var(--cream); }

/* --------------------------------------------------------------- hero (S5) */

.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad) clamp(3rem, 8vw, 5rem);
}

.kicker {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  color: var(--clay);
  margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--terracotta-text); }

.lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--clay);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid var(--terracotta-text);
  background: var(--terracotta-text);
  color: var(--cream);
}
.cta:hover { background: var(--clay); border-color: var(--clay); }
.cta.ghost { background: transparent; color: var(--clay); border-color: var(--clay); }
.cta.ghost:hover { border-color: var(--terracotta-text); color: var(--terracotta-text); }

/* signature move: hand-thrown stitching accent under the hero */
.hero-stitch {
  height: 20px;
  max-width: 20rem;
  margin: 0 auto 2rem;
  background-image: repeating-linear-gradient(
    90deg,
    var(--olive) 0 10px,
    transparent 10px 20px
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  opacity: 0.7;
}

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

.band { background: var(--cream); }
.band.tint { background: var(--cream-tint); }
.band.dark { background: var(--clay); color: var(--clay-dim); }
.band.dark .kicker { color: #F0C7A8; }
.band.dark h2 { color: var(--cream); }
.band.dark .section-note.contrast { color: var(--clay-dim); }

section { scroll-margin-top: 5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--clay);
  margin: 0.4rem 0 1.2rem;
}
.section-note { color: var(--clay); max-width: 44rem; }
.split p { color: var(--clay); max-width: var(--measure); margin-bottom: 1rem; }
.split p:last-of-type { margin-bottom: 0; }

/* ---------------------------------------------- signature move: card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 2rem;
  margin-top: 2.4rem;
}
.svc-card {
  background: var(--cream-tint);
  border-radius: 999px 999px 18px 18px;
  padding: 0 1.5rem 1.6rem;
  text-align: center;
}
.svc-mask {
  width: 6.5rem;
  height: 6.5rem;
  margin: -0.5rem auto 1.1rem;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background: var(--cream);
  border: 2px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.svc-mask svg { width: 68%; height: 68%; }
.svc-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--clay);
  margin-bottom: 0.5rem;
}
.svc-card p { color: var(--clay); font-size: 0.95rem; }
.table-foot {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--clay);
  border-left: 3px solid var(--terracotta);
  padding-left: 0.9rem;
  max-width: 44rem;
}

/* ---------------------------------------------- signature move: stitch divider */

.stitch-divider {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.stitch-divider svg { width: 100%; height: 24px; display: block; }

/* -------------------------------------- signature move: promo band (reframed) */

.promo-band {
  background: var(--olive);
  color: var(--cream);
}
.promo-inner {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.promo-kicker {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--cream);
}
.promo-band h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 0.9rem;
}
.promo-band p {
  max-width: 34rem;
  margin: 0 auto 1.8rem;
  color: var(--cream);
}
.cta-big {
  background: var(--cream);
  color: var(--clay);
  border-color: var(--cream);
  font-size: 1.05rem;
  padding: 1rem 2.1rem;
}
.cta-big:hover { background: #F0C7A8; border-color: #F0C7A8; color: var(--clay); }

/* ------------------------------------------------------------- figures */

.awl-figure, .camera-figure { display: flex; justify-content: center; }
.awl-figure svg, .camera-figure svg { width: 100%; max-width: 280px; height: auto; }

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

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  border-left: 3px solid var(--terracotta);
  background: var(--cream-tint);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--clay);
}
.photo-note strong { color: var(--clay); }

/* -------------------------------- signature move: framed contact cards */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.visit-block.frame {
  border: 1.5px solid #6B5A4C;
  border-radius: 16px;
  padding: 1.2rem 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}
.visit-block.frame.highlight {
  border-color: var(--terracotta);
  background: rgba(201, 111, 74, 0.14);
}
.visit-block h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.98rem; color: var(--cream); }
.visit-block .small { font-size: 0.9rem; color: var(--clay-dim); }
.visit-block .text-link { font-weight: 700; color: #F0C7A8; }
.visit-block .text-link:hover { color: var(--cream); }

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

.footer { border-top: 1px solid var(--hairline); background: var(--cream); }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 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.1em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.95rem; color: var(--clay); overflow-wrap: break-word; }
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--clay);
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}

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

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-cta, 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) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
}

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