:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #f4faf7;
  --surface: #ffffff;
  --surface-soft: #edf7f2;
  --text: #17251f;
  --text-soft: #52665e;
  --primary: #087a63;
  --primary-strong: #05604e;
  --border: #d6e7df;
  --shadow: 0 20px 60px rgba(16, 61, 49, 0.12);
  --content: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}

a { color: var(--primary); }

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92vw, var(--content));
  min-height: 76px;
  margin: 0 auto;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 18%;
  background: var(--primary);
  transform: rotate(-35deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--primary);
}

.page-shell {
  width: min(92vw, var(--content));
  margin: clamp(28px, 6vw, 72px) auto;
}

.surface {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); }

p, li {
  color: var(--text-soft);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover { background: var(--primary-strong); }

.button.secondary {
  background: transparent;
  color: var(--primary);
}

.button.danger {
  border-color: #8b2431;
  background: #8b2431;
}

.button-row.centered { justify-content: center; }

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  overflow: hidden;
}

.product-media {
  min-height: 570px;
  background: var(--surface-soft);
}

.product-image,
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 570px;
}

.product-image {
  display: block;
  object-fit: cover;
}

.image-placeholder,
.status-mark {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary);
}

.image-placeholder { font: 500 110px Georgia, serif; }

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.product-content h1,
.legal-card h1,
.status-card h1 {
  margin: 0 0 12px;
  font: 600 clamp(2rem, 5vw, 3.6rem)/1.08 Georgia, serif;
}

.product-price {
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 900;
}

.product-location {
  margin-top: 12px;
  color: var(--text-soft);
  font-weight: 750;
}

.product-hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.status-card,
.legal-card {
  padding: clamp(26px, 5vw, 48px);
}

.status-card {
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: center;
}

.status-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 24px;
  font: 600 32px Georgia, serif;
}

.narrow-page { max-width: 760px; }

form label {
  display: block;
  margin: 24px 0 8px;
  font-weight: 800;
}

form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

form button { width: 100%; margin-top: 16px; cursor: pointer; }

.website { position: absolute; left: -10000px; }

.notice {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: min(92vw, var(--content));
  min-height: 100px;
  margin: 0 auto;
  gap: 14px 24px;
  padding: 22px 0;
}

.footer-shell p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  font-weight: 750;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .button-row .button { flex: 1 1 100%; }

  .page-shell {
    width: calc(100% - 24px);
    margin: 16px auto;
  }

  .product-page {
    display: block;
    width: 100%;
  }

  .product-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .product-media {
    height: min(430px, 42vh);
    min-height: 280px;
    overflow: hidden;
  }

  .product-image,
  .image-placeholder {
    height: 100%;
    min-height: 0;
  }

  .product-image {
    object-fit: contain;
    background: var(--surface-soft);
  }

  .product-content { padding: 28px 24px 34px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1713;
    --surface: #14231d;
    --surface-soft: #193129;
    --text: #f1f8f4;
    --text-soft: #b7cac1;
    --primary: #73d5b7;
    --primary-strong: #55bfa0;
    --border: #29473b;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }

  .button { color: #08231a; }
  .button.secondary { color: var(--primary); }
}

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