/* Self-hosted OFL fonts (no Google CDN). Variable weight axes. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.b9209b52c467.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.6c1e961057d2.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: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.a04d353989ad.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.069cb90e11a3.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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-ext.62017e5fbc67.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic.98b50dcfe9a5.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.33ba75072ebc.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.e9192c2fe0a3.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;
}

/* Varastoasema — calm brochure styles */

:root {
  --color-bg: #eef2f1;
  --color-bg-deep: #dde3e0;
  --color-ink: #1a211f;
  --color-ink-soft: #45514d;
  --color-accent: #c49a2c;
  --color-accent-dark: #534216;
  --color-surface: rgba(255, 252, 246, 0.92);
  --color-line: rgba(28, 26, 23, 0.14);
  --color-focus: #0b5fff;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Serif 4", "Source Serif Pro", "Georgia", serif;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --measure: 42rem;
  --page: 72rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --radius: 0.35rem;
  --shadow: 0 18px 50px rgba(28, 26, 23, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(196, 154, 44, 0.14), transparent 32%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-ink);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 241, 0.9);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner,
.site-footer__inner,
.page,
.messages,
.hero__content {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__place {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.15rem;
  height: 0.85rem;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--color-ink);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span {
  background: #fff8ef;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.35rem 0.15rem;
  text-decoration: none;
  color: var(--color-ink-soft);
}

.site-nav__list a[aria-current="page"],
.site-nav__list a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  text-decoration: none;
  color: var(--color-ink-soft);
  border: 1px solid transparent;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius);
}

.lang-switch a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.lang-switch a[aria-current="true"] {
  border-color: var(--color-line);
  color: var(--color-ink);
}

.page-photo {
  margin: var(--space-3) auto 0;
  width: min(100% - 2rem, 32rem);
  background: transparent;
}

.page-photo--tall {
  width: min(100% - 2rem, 40rem);
}

.page-photo picture {
  display: block;
  width: 100%;
}

.page-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fade-rise 1.1s ease both;
}

@media (min-width: 840px) {
  .page-photo,
  .page-photo--tall {
    width: min(100% - 2rem, var(--page));
  }

  .page-photo img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 40%;
  }
}

.hero {
  display: flex;
  flex-direction: column;
}

.hero__content {
  padding: var(--space-4) 0 var(--space-5);
  animation: fade-rise 1s ease 0.15s both;
}

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  margin: 0 0 var(--space-2);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 var(--space-3);
  max-width: 16ch;
}

.hero__prose {
  max-width: 38rem;
}

.hero__prose p:first-child {
  font-size: 1.2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--space-3) 0 var(--space-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff8ef;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  border: 1px solid var(--color-ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--color-ink);
}

.page {
  padding: var(--space-4) 0 var(--space-5);
}

.page__header {
  margin-bottom: var(--space-3);
}

.page__header h1 {
  max-width: 18ch;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 1.55rem;
}

.prose strong {
  font-weight: 600;
}

.table-wrap {
  margin-top: var(--space-3);
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 1rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1rem 0;
  font-weight: 600;
}

th, td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--color-line);
  text-align: left;
}

th {
  font-weight: 600;
}

.contact-form-section,
.contact-location {
  max-width: var(--measure);
  margin-top: var(--space-4);
}

.contact-form-section h2,
.contact-location h2 {
  margin: 0 0 0.75em;
  font-size: 1.55rem;
}

#contact-form {
  scroll-margin-top: 5.5rem;
}

.form-required-note {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.form-errors {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: #8a1f1f;
}

.contact-form .field {
  margin: 0 0 1rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fffdf8;
  font: inherit;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #8a1f1f;
}

.field__error {
  display: block;
  color: #8a1f1f;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 1rem 0;
  background: rgba(28, 26, 23, 0.04);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}

.site-footer__identity,
.site-footer__contacts,
.site-footer__copy {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.site-footer__identity {
  color: var(--color-ink-soft);
}

.site-footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__contacts a:hover {
  color: var(--color-ink);
  text-decoration-thickness: 2px;
}

.site-footer__icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__copy {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
}

.site-footer__privacy {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  flex-basis: 100%;
}

.messages {
  padding-top: var(--space-3);
}

.message {
  background: #e8f3e4;
  border: 1px solid #b7d4ad;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-photo img,
  .hero__content {
    animation: none;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: 1rem 1.1rem 1.15rem;
    background: #fffdf8;
    border: 1px solid rgba(28, 26, 23, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 16px 40px rgba(28, 26, 23, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list li + li {
    border-top: 1px solid var(--color-line);
  }

  .site-nav__list a {
    display: block;
    padding: 0.75rem 0.15rem;
    font-size: 1.05rem;
    color: var(--color-ink);
  }

  .lang-switch {
    padding-top: 0.65rem;
    border-top: 1px solid var(--color-line);
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-row,
  .contact-form,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .table-wrap {
    box-shadow: none;
  }
}
