:root {
  --bg: #f5f0e0;
  --cream-deep: #e8e0cc;
  --olive: #6b7a52;
  --olive-soft: #8c996b;
  --terra: #c26b4d;
  --terra-deep: #9e5238;
  --ink: #38332b;
  --mist: #c7c2b3;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-round: system-ui, -apple-system, "SF Pro Rounded", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-round);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 12% 8%, rgba(194, 107, 77, 0.08), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(107, 122, 82, 0.12), transparent 38%);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--terra-deep);
}

main.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  padding-right: calc(var(--pad) + 2.5rem);
}

.margin-dots {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 40;
}

.margin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--olive);
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.margin-dot:hover,
.margin-dot.is-active {
  background: var(--terra);
  border-color: var(--terra);
  transform: scale(1.15);
}

.hero.window_frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(88vh, 720px);
  padding: 2rem 0 3rem;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--ink);
}

.hero-tagline {
  font-size: 1.15rem;
  max-width: 28ch;
  color: #524c43;
}

.window-frame-wrap {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(145deg, var(--cream-deep), #fff9ef);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(56, 51, 43, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.window-chrome {
  position: absolute;
  inset: 0.65rem;
  border-radius: 22px;
  border: 3px solid rgba(56, 51, 43, 0.15);
  pointer-events: none;
}

.window-shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(56, 51, 43, 0.18);
}

.window-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.intro-left {
  margin-right: auto;
  text-align: left;
}

.intro-right {
  margin-left: auto;
  text-align: right;
}

.features.cork_notes {
  padding: 3rem 0;
}

.cork-board {
  position: relative;
  min-height: 320px;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(160deg, #c4a574 0%, #a8885a 100%);
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cork-note {
  position: relative;
  width: min(280px, 90%);
  padding: 1.1rem 1.25rem 1.25rem;
  background: #fffdf6;
  box-shadow: 2px 4px 12px rgba(56, 51, 43, 0.2);
  transform: rotate(var(--rot, 0deg));
}

.cork-note .pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8a090, var(--terra-deep));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.note-a {
  --rot: -2.5deg;
  margin: 0 0 1.5rem 8%;
}

.note-b {
  --rot: 1.8deg;
  margin: 0 auto 1.5rem;
}

.note-c {
  --rot: -1.2deg;
  margin-left: auto;
  margin-right: 6%;
}

.gallery-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-shot {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(56, 51, 43, 0.12);
}

.gallery-shot.g2 {
  transform: translateY(12px);
}

.screens.device_pair {
  padding: 3rem 0;
}

.device-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: flex-end;
}

.device {
  margin: 0;
  flex: 0 1 280px;
  text-align: center;
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(56, 51, 43, 0.2);
}

.device-left img {
  transform: rotate(-3deg);
}

.device-right img {
  transform: rotate(2deg) translateY(-8px);
}

.device figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--olive);
}

.legal.side_by_side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--mist);
}

.legal-panel {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  border: 1px solid rgba(199, 194, 179, 0.6);
}

.effective {
  font-size: 0.9rem;
  color: var(--olive);
}

.site-footer {
  padding: 1.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted, var(--mist));
  text-align: center;
}

@media (max-width: 800px) {
  .hero.window_frame {
    grid-template-columns: 1fr;
  }

  .intro-right {
    text-align: left;
    margin-left: 0;
  }

  .margin-dots {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  main.page {
    padding-bottom: 4rem;
    padding-right: var(--pad);
  }

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