:root {
  color-scheme: light;
  --ink: #123f42;
  --teal: #176e67;
  --paper: #f8f6ea;
  --muted: rgba(18, 63, 66, 0.7);
}

* { box-sizing: border-box; }

html, body, main { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #dbe7e2;
  color: var(--ink);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100vw;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  overflow: hidden;
  background: url("ostfold-background.jpg") center 46% / cover no-repeat;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 36, 43, 0.18), rgba(9, 37, 41, 0.02) 32%, rgba(222, 231, 221, 0.56)),
    radial-gradient(circle at 50% 46%, transparent 0 22%, rgba(8, 33, 37, 0.2) 100%);
}

.paper {
  position: relative;
  width: calc(100vw - 40px);
  max-width: 470px;
  min-width: 0;
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(245, 242, 225, 0.88)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(7, 32, 37, 0.25), inset 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
}

.paper::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(18, 63, 66, 0.08);
  border-radius: 23px;
  content: "";
  pointer-events: none;
}

.logo {
  display: block;
  width: 310px;
  max-width: 100%;
  height: auto;
  margin: 0 auto clamp(26px, 6vw, 40px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 8vw, 3.45rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.store-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 63, 66, 0.2);
}

.store-link:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.store-link img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.store-link span { display: grid; }
.store-link small { font-size: 0.72rem; line-height: 1.1; opacity: 0.76; }
.store-link strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-weight: 500; }
.store-link .arrow { display: block; font-size: 1.2rem; }

.privacy-link {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.privacy-link a { color: var(--muted); }

@media (max-height: 680px) {
  .scene { padding-block: 14px; }
  .paper { padding-block: 24px; }
  .logo { width: 235px; margin-bottom: 20px; }
  .lead { margin-block: 15px 18px; }
}

@media (min-width: 760px) {
  .scene { background-position: center 48%; }
  .paper { width: calc(100vw - 112px); max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
