:root {
  --paper: #eee6d4;
  --paper-light: #f8f3e8;
  --ink: #191715;
  --muted: #655f56;
  --seal: #9f2d25;
  --line: rgba(25, 23, 21, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 73% 9%, rgba(154, 45, 35, .10), transparent 21rem),
    repeating-linear-gradient(93deg, rgba(70, 55, 35, .018) 0 1px, transparent 1px 4px),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; display: block; }

.site-header, footer {
  width: min(1180px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.25rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a:focus-visible { color: var(--seal); }

main { overflow: hidden; }
.hero, .features, .gallery {
  width: min(1120px, calc(100% - 2rem));
  margin: auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: min(58vw, 690px);
  aspect-ratio: 1;
  right: -24%;
  top: -25%;
  border: clamp(24px, 5vw, 58px) solid rgba(165, 43, 35, .13);
  border-radius: 50%;
  z-index: -1;
}
.eyebrow { color: var(--seal); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.4rem, 9vw, 7rem); line-height: .92; font-weight: 400; letter-spacing: .035em; margin-bottom: .65rem; }
.subtitle { font-style: italic; color: var(--muted); font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.lead { max-width: 43rem; font-size: clamp(1.08rem, 2vw, 1.3rem); color: #3d3933; }
.app-icon { width: min(100%, 330px); justify-self: center; border-radius: 23%; box-shadow: 0 25px 65px rgba(33, 24, 17, .24); }
.app-store-badge { display: inline-flex; align-items: center; gap: .75rem; background: var(--ink); color: white; border-radius: .65rem; padding: .65rem 1rem; line-height: 1.05; margin-top: 1rem; }
.app-store-badge small, .app-store-badge strong { display: block; }
.app-store-badge small { font: .58rem Arial, sans-serif; letter-spacing: .08em; }
.app-store-badge strong { font: 1.25rem Arial, sans-serif; font-weight: 500; }

.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.08; font-weight: 400; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3rem; }
.feature-grid article { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.feature-grid h3 { font-size: 1.35rem; font-weight: 400; }
.brush-mark { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 1.25rem; }
.brush-mark.red { color: var(--seal); }

.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 3rem; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(33, 24, 17, .16); }
figcaption { color: var(--muted); font-style: italic; text-align: center; padding-top: .8rem; }

.document-page { width: min(900px, calc(100% - 2rem)); margin: auto; padding: clamp(3rem, 8vw, 7rem) 0; overflow: visible; }
.paper { background: rgba(248, 243, 232, .82); border: 1px solid var(--line); padding: clamp(1.5rem, 6vw, 5rem); box-shadow: 0 22px 70px rgba(47, 36, 24, .11); }
.paper h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.paper h2 { font-size: 1.45rem; margin-top: 2.3rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.updated { color: var(--muted); font-style: italic; }
.paper a { color: #7f251f; }

footer { min-height: 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 1rem 0; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .app-icon { width: 180px; grid-row: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; max-width: 390px; margin-inline: auto; }
}

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