/* Papermap Labs: the studio's website. Warm paper, ink, and one yellow highlight. */
:root {
  --paper: #f5f2ea;
  --card: #fffdf8;
  --ink: #1b1b1f;
  --muted: #62626b;
  --rule: rgba(27, 27, 31, 0.12);
  --accent: #ffd84d;
  --red: #e5484d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141416;
    --card: #1d1d21;
    --ink: #ededf0;
    --muted: #a0a0aa;
    --rule: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ---- Header and footer */

.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.studio { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--serif); text-decoration: none; }
.studio svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 22px; color: var(--muted); font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.foot { margin-top: 96px; padding: 28px 0 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---- Type */

.hero { padding: 72px 0 24px; max-width: 760px; }
.hero h1 { font: 600 clamp(40px, 6vw, 64px)/1.03 var(--serif); letter-spacing: -0.025em; }
.hero p { margin-top: 22px; color: var(--muted); font-size: 19px; max-width: 600px; }
.section { margin-top: 88px; }
.section > h2 { font: 600 32px/1.15 var(--serif); letter-spacing: -0.015em; }
.section > .lead { margin-top: 10px; color: var(--muted); max-width: 640px; }
.mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); color: inherit; }
@media (prefers-color-scheme: dark) { .mark { background: linear-gradient(transparent 58%, rgba(255, 216, 77, 0.45) 58%, rgba(255, 216, 77, 0.45) 92%, transparent 92%); } }
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1b1f;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- Buttons */

.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---- Products (home page) */

.product {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--rule);
  text-decoration: none;
}
.product img { border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(52, 38, 10, 0.5); }
.product h3 { display: flex; align-items: center; gap: 12px; font: 600 30px/1.1 var(--serif); }
.product h3 img { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.product p { margin-top: 12px; color: var(--muted); }
.product .more { margin-top: 18px; font-weight: 600; }
.product:hover .more { text-decoration: underline; }
.next { margin-top: 20px; color: var(--muted); }

/* ---- Annota page */

.shot { margin-top: 48px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -28px rgba(52, 38, 10, 0.55); }
.features { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.features h3 { font: 600 21px/1.25 var(--serif); }
.features ul { margin-top: 10px; padding-left: 18px; color: var(--muted); }
.features li + li { margin-top: 6px; }
.gallery { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery img { border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.plan { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan > div { padding: 24px; background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.plan h3 { font: 600 22px/1.2 var(--serif); }
.plan .price { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan ul { margin-top: 14px; padding-left: 18px; color: var(--muted); }
.plan li + li { margin-top: 4px; }

/* ---- Policy pages */

.policy { max-width: 700px; padding-top: 48px; }
.policy h1 { font: 600 44px/1.08 var(--serif); letter-spacing: -0.02em; }
.policy h2 { margin: 36px 0 8px; font: 600 23px/1.25 var(--serif); }
.policy p, .policy ul { margin-bottom: 12px; }
.policy li { margin-bottom: 6px; }
.updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.summary { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--accent); background: rgba(255, 216, 77, 0.12); }

@media (max-width: 760px) {
  .product, .features, .gallery, .plan { grid-template-columns: 1fr; }
  .top nav { display: none; }
}
