:root {
  --bg: #f7f0e4;
  --bg-deep: #ede3d0;
  --ink: #2a2118;
  --muted: #6e6256;
  --mustard: #e3b505;
  --cobalt: #1b4f9c;
  --umber: #6b3e26;
  --linen: #fff8ee;
  --spine: 220px;
  --radius: 18px;
  font-size: 17px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: var(--spine) minmax(0, 1fr);
  min-height: 100vh;
}

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem 1.25rem 2rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--umber) 120%);
  color: var(--linen);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.spine__brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.spine__tag {
  font-size: 0.85rem;
  color: rgba(255, 248, 238, 0.78);
  margin-top: 0.35rem;
}

.spine nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.spine nav a {
  color: var(--linen);
  text-decoration: none;
  padding: 0.35rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.65rem;
  transition: border-color 0.2s, color 0.2s;
}

.spine nav a:hover,
.spine nav a:focus-visible {
  border-left-color: var(--mustard);
  color: #fff;
}

.spine__scroll {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.75;
}

main {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 980px;
}

.hero-window {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-window__frame {
  background: var(--linen);
  border: 3px solid var(--umber);
  border-radius: var(--radius);
  padding: 0.65rem;
  box-shadow: 12px 14px 0 rgba(107, 62, 38, 0.15);
}

.hero-window__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

.hero-window__copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--umber);
}

.hero-window__copy .lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-window__copy .tagline {
  font-size: 1.05rem;
  max-width: 34ch;
}

.section-intro {
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-intro h2 {
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  color: var(--cobalt);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.cork-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.note {
  background: #d4b896 url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%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");
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(42, 33, 24, 0.18);
  transform: rotate(var(--rot, -1deg));
  position: relative;
}

.note:nth-child(2) {
  --rot: 1.5deg;
}
.note:nth-child(3) {
  --rot: -0.5deg;
}

.note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--mustard));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.note p {
  margin: 0;
  font-size: 0.95rem;
}

.device-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.phone {
  width: min(240px, 42vw);
  background: var(--ink);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(27, 79, 156, 0.22);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.phone--offset {
  transform: translateY(24px);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--bg-deep);
}

.legal-sheet {
  background: var(--linen);
  border-top: 4px solid var(--cobalt);
  padding: 2rem 1.75rem 2.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 -4px 24px rgba(42, 33, 24, 0.06);
}

.legal-sheet h2 {
  margin-top: 0;
  color: var(--umber);
}

.legal-sheet p,
.legal-sheet a {
  font-size: 0.98rem;
}

.legal-sheet a {
  color: var(--cobalt);
}

.legal-divider {
  height: 1px;
  background: var(--bg-deep);
  margin: 2rem 0;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .spine {
    position: relative;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }

  .spine nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .spine nav a {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid transparent;
  }

  .spine__scroll {
    display: none;
  }

  .hero-window {
    grid-template-columns: 1fr;
  }

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