:root {
  --snow: #f4f5f1;
  --mist: #edf1ee;
  --ice: #d8e2e0;
  --pine: #27322e;
  --charcoal: #1d2321;
  --lichen: #75806f;
  --moss: #4e614f;
  --wood: #8a5f3d;
  --amber: #c99a51;
  --line: rgba(39, 50, 46, 0.18);
  --shadow: 0 22px 60px rgba(29, 35, 33, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--snow);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--snow);
  color: var(--charcoal);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  color: var(--snow);
  border-bottom: 1px solid rgba(244, 245, 241, 0.18);
  background: linear-gradient(to bottom, rgba(29, 35, 33, 0.56), rgba(29, 35, 33, 0.12));
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-solid,
.site-header.nav-active {
  color: var(--charcoal);
  background: rgba(244, 245, 241, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 4.1rem;
  line-height: 0.85;
  letter-spacing: 0;
}

.brand {
  font-size: 3.2rem;
}

.brand-mark {
  width: 0.55em;
  height: 0.55em;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--amber);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(850px, 94svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--pine);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 54% 54%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(29, 35, 33, 0.88) 0%, rgba(29, 35, 33, 0.58) 42%, rgba(29, 35, 33, 0.08) 100%),
    linear-gradient(0deg, rgba(29, 35, 33, 0.72) 0%, rgba(29, 35, 33, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 2rem));
  margin: 0;
  padding: 9.5rem clamp(1rem, 5vw, 4rem) clamp(3.2rem, 8vw, 6rem);
  color: var(--snow);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--wood);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ice);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: 6.4rem;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: 4.6rem;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 34rem;
  color: rgba(244, 245, 241, 0.9);
  font-size: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--snow);
  background: var(--wood);
  border-color: var(--wood);
}

.button.secondary {
  color: var(--snow);
  background: rgba(244, 245, 241, 0.1);
  border-color: rgba(244, 245, 241, 0.7);
}

.button:hover {
  transform: translateY(-1px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.intro {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.prose {
  max-width: 56rem;
  color: rgba(29, 35, 33, 0.78);
  font-size: 1.18rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.materials {
  padding: clamp(1rem, 3vw, 2rem) 0;
  background: var(--snow);
}

.material-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.material-list article {
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--snow);
}

.material-list p {
  margin-bottom: 0;
  color: rgba(29, 35, 33, 0.72);
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 620px;
  background: var(--pine);
  color: var(--snow);
}

.process-band picture,
.process-band img {
  width: 100%;
  height: 100%;
}

.process-band img {
  object-fit: cover;
}

.process-copy {
  align-self: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.process-copy p:not(.section-kicker) {
  color: rgba(244, 245, 241, 0.78);
  font-size: 1.18rem;
}

.section-heading {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.section-heading p:not(.section-kicker) {
  max-width: 48rem;
  color: rgba(29, 35, 33, 0.72);
  font-size: 1.12rem;
}

.gallery-section,
.delivery-section,
.payment-section,
.faq-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 2vw, 1.3rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.gallery-grid figure {
  grid-column: span 4;
  margin: 0;
}

.gallery-grid figure.wide {
  grid-column: span 4;
}

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-button:hover img {
  transform: scale(1.025);
}

figcaption {
  margin-top: 0.55rem;
  color: rgba(29, 35, 33, 0.62);
  font-size: 0.92rem;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
  background: var(--ice);
}

.order-copy {
  max-width: 50rem;
}

.order-copy p:not(.section-kicker) {
  color: rgba(29, 35, 33, 0.72);
  font-size: 1.18rem;
}

.order-copy .button {
  margin-top: 1rem;
}

.order-image {
  justify-self: end;
  width: min(520px, 100%);
}

.order-image img,
.maker-image img {
  width: 100%;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.delivery-section {
  background: var(--snow);
}

.payment-section {
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.carrier-grid,
.payment-grid {
  display: grid;
  gap: 1px;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.carrier-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(880px, calc(100% - 2rem));
}

.carrier-grid article,
.payment-grid article {
  min-height: 220px;
  padding: clamp(1rem, 2.6vw, 1.8rem);
  background: var(--snow);
}

.carrier-grid p,
.payment-grid p {
  color: rgba(29, 35, 33, 0.68);
}

.carrier-icon,
.payment-icon {
  display: inline-flex;
  min-width: 58px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.payment-icon.paypal {
  min-width: 92px;
  color: #003087;
  background: #ffffff;
  border: 1px solid rgba(0, 48, 135, 0.24);
  box-shadow: inset 0 -4px 0 rgba(0, 156, 222, 0.18);
}

.payment-icon.bank {
  color: var(--snow);
  background: var(--moss);
}

.carrier-icon.posti {
  color: #241f19;
  background: #ffcc00;
}

.carrier-icon.matkahuolto {
  color: #ffffff;
  background: #0067b1;
}

.carrier-icon.dhl {
  color: #d40511;
  background: #ffcc00;
}

.carrier-icon.ups {
  color: #f3d095;
  background: #351c15;
  border-radius: 6px 6px 14px 14px;
}

.maker-section {
  align-items: center;
  background: var(--pine);
  color: var(--snow);
}

.maker-image {
  width: min(460px, 100%);
}

.maker-copy {
  color: rgba(244, 245, 241, 0.78);
}

.maker-copy h2 {
  color: var(--snow);
}

.faq-section {
  background: var(--mist);
}

.faq-list {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  min-height: 58px;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 800;
}

details p {
  max-width: 46rem;
  margin: 0 0 1.2rem;
  color: rgba(29, 35, 33, 0.72);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--snow);
  background: var(--charcoal);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(244, 245, 241, 0.7);
}

address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  font-style: normal;
}

address a {
  color: var(--snow);
}

.copyright {
  white-space: nowrap;
}

.lightbox {
  width: min(92vw, 980px);
  max-height: 92svh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(13, 18, 16, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 92svh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  color: var(--charcoal);
  background: var(--snow);
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .brand {
    font-size: 2.9rem;
  }

  .footer-brand {
    font-size: 3.4rem;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 0.75rem 1rem 1.4rem;
    color: var(--charcoal);
    background: rgba(244, 245, 241, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 48px rgba(29, 35, 33, 0.12);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .menu-button {
    display: inline-flex;
  }

  .section-grid,
  .process-band,
  .order-section,
  .maker-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .process-band {
    min-height: auto;
  }

  .process-band picture {
    min-height: 360px;
  }

  .carrier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand {
    font-size: 2.55rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-media img {
    object-position: 58% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(29, 35, 33, 0.9) 0%, rgba(29, 35, 33, 0.58) 60%, rgba(29, 35, 33, 0.14) 100%),
      linear-gradient(0deg, rgba(29, 35, 33, 0.72) 0%, rgba(29, 35, 33, 0.06) 55%);
  }

  .hero-content {
    width: 100%;
    padding: 8.4rem 1rem 2.4rem;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero-text,
  .prose,
  .process-copy p:not(.section-kicker),
  .order-copy p:not(.section-kicker),
  .section-heading p:not(.section-kicker) {
    font-size: 1rem;
  }

  .hero-actions,
  address {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section-grid,
  .order-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure,
  .gallery-grid figure.wide {
    grid-column: auto;
  }

  .gallery-button img {
    aspect-ratio: 5 / 6;
  }

  .carrier-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
  }

  .footer-brand {
    font-size: 2.85rem;
  }

  .error-page h1 {
    font-size: 3.2rem;
  }
}

.error-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 1rem;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.error-page h1 {
  max-width: 100%;
  color: var(--charcoal);
  font-size: 5.5rem;
}

.error-page p:not(.section-kicker) {
  color: rgba(29, 35, 33, 0.72);
  font-size: 1.15rem;
}
