:root {
  --bg: #172a46;
  --accent: #b51f3a;
  --accent2: #6c3b83;
  --text: #f3e8dc;
  --muted: #d6a087;
  --rose: #d66a87;
  --wine: #3d1528;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --dot-size: 0.65rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #2a3f5f 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.55;
  padding-right: 2.75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--text);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: var(--pad);
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0.35rem 0 0.75rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--rose);
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--wine);
}

p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

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

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

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

.margin-dots .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(243, 232, 220, 0.35);
  border: 2px solid rgba(214, 106, 135, 0.5);
  text-indent: -9999px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.margin-dots .dot:hover,
.margin-dots .dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
  border-color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

.section-intro {
  margin-bottom: 1.75rem;
}

.intro-left {
  text-align: left;
}

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

.intro-right p {
  margin-left: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  font-family: "Avenir Next", system-ui, sans-serif;
}

.tagline {
  font-size: 1.125rem;
  color: rgba(243, 232, 220, 0.92);
}

/* window_frame hero */
.hero.window-frame-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: min(92vh, 52rem);
  padding: 2rem 0 3rem;
}

@media (min-width: 900px) {
  .hero.window-frame-band {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22rem;
}

.hero-backdrop {
  position: absolute;
  inset: 8% 0 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1.25rem;
  opacity: 0.45;
  filter: saturate(1.05) blur(0);
  z-index: 0;
}

.window-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #2c1a3a, #120a14);
  padding: 0.65rem 0.65rem 1rem;
  border-radius: 1.35rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(214, 106, 135, 0.25);
  max-width: 17.5rem;
}

.window-chrome {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding-left: 0.15rem;
}

.window-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0.85;
}

.window-frame img {
  border-radius: 0.85rem;
  width: 100%;
}

/* cork_notes features */
.features.cork-board {
  padding: 3rem 0;
}

.cork-surface {
  position: relative;
  background:
    linear-gradient(135deg, rgba(61, 21, 40, 0.15), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    #8b5a3c;
  border-radius: 1rem;
  min-height: 22rem;
  padding: 2rem 1.25rem 2.5rem;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.cork-note {
  position: relative;
  background: #f7eed8;
  color: #2a1f1a;
  padding: 1rem 1.1rem 1.25rem;
  width: min(100%, 18rem);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.22);
  font-size: 0.95rem;
}

.cork-note p {
  color: #4a3728;
  margin: 0;
  font-size: 0.9rem;
}

.cork-note::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.note-a {
  transform: rotate(-2.5deg);
  margin: 0 auto 1.25rem;
}

.note-b {
  transform: rotate(1.8deg);
  margin: 0 0 1.25rem auto;
}

.note-c {
  transform: rotate(-1deg);
  margin: 0 auto;
}

.cork-pin {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5.5rem;
  border-radius: 0.35rem;
  border: 3px solid #f3e8dc;
  transform: rotate(6deg);
  opacity: 0.95;
}

@media (min-width: 720px) {
  .cork-surface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2.5rem 2rem;
  }

  .note-a {
    grid-column: 1;
    margin: 0;
  }

  .note-b {
    grid-column: 2;
    margin: 2rem 0 0;
  }

  .note-c {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.5rem;
  }
}

/* device_pair screens */
.screens.device-pair {
  padding: 2.5rem 0 3rem;
}

.pair-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-end;
}

.device-shot {
  margin: 0;
  text-align: center;
  flex: 1 1 14rem;
  max-width: 16rem;
}

.device-shot img {
  border-radius: 1.25rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(243, 232, 220, 0.12);
  margin: 0 auto;
}

.shot-left {
  transform: rotate(-3deg) translateY(0.5rem);
}

.shot-right {
  transform: rotate(2.5deg);
}

.device-shot figcaption {
  margin-top: 0.75rem;
  font-family: "Avenir Next", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.gallery-strip img {
  border-radius: 0.75rem;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.92;
}

/* footer_sheet legal */
.legal.footer-sheet {
  margin-top: 1rem;
  padding: 0 0 3rem;
}

.sheet-panel {
  background: rgba(15, 25, 42, 0.85);
  border: 1px solid rgba(214, 106, 135, 0.25);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 1.75rem var(--pad);
  margin-bottom: 0;
}

.sheet-panel + .sheet-panel {
  border-top: none;
  border-radius: 0;
}

.sheet-panel:last-of-type {
  border-radius: 0 0 0.75rem 0.75rem;
}

.sheet-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  font-family: "Avenir Next", system-ui, sans-serif;
}

@media (max-width: 640px) {
  body {
    padding-right: 2.25rem;
  }

  .margin-dots {
    right: 0.65rem;
    gap: 0.65rem;
  }

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

  .intro-right p {
    margin-left: 0;
  }
}
