@font-face { font-family: Prata; src: url(/fonts/Prata_400Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Caveat; src: url(/fonts/Caveat_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/IBMPlexMono_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/IBMPlexMono_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --paper: #EDE5D8;
  --surface: #F7F1E6;
  --line: #D8CDBD;
  --ink: #231F1C;
  --ink-soft: #5E554C;
  --ink-faint: #7A6F63;
  --her: #C2415F;
  --him: #2E5FA3;
  --tape: rgba(230, 214, 170, 0.78);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 Plex, ui-monospace, Menlo, monospace;
}
a { color: var(--him); text-underline-offset: 3px; }
img { max-width: 100%; }

header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 700 28px/1 Caveat, cursive;
}
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; letter-spacing: 0.5px; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a.on { color: var(--ink); text-decoration: underline; }
nav { order: 3; flex-basis: 100%; }
.lang { color: var(--ink-faint); font-size: 13px; text-decoration: none; border: 1px solid var(--line); padding: 4px 10px; }
@media (min-width: 760px) {
  nav { order: 0; flex-basis: auto; margin-left: auto; }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
main.article { max-width: 720px; }

h1, h2, h3 { font-family: Prata, Georgia, serif; font-weight: 400; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(32px, 6vw, 52px); margin: 24px 0 12px; }
h2 { font-size: 22px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
.article h1 { font-size: clamp(24px, 6.5vw, 38px); }
.article ul { padding-left: 20px; }
.article li { margin: 6px 0; }
.meta { color: var(--ink-faint); font-size: 13px; }

.hero { text-align: center; padding: 24px 0 40px; }
.logo { width: 220px; height: auto; transform: rotate(-3deg); }
.kicker { margin: 8px 0 0; font: 700 26px/1.2 Caveat, cursive; color: var(--her); }
.hero h1 { margin-top: 4px; }
.lead { max-width: 560px; margin: 0 auto 28px; color: var(--ink-soft); }
.badge {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 20px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.shots a { flex: 0 0 auto; display: block; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 260px;
  height: auto;
  box-shadow: 0 6px 24px rgba(35, 31, 28, 0.14);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature {
  position: relative;
  background: var(--surface);
  padding: 22px 22px 18px;
  box-shadow: 0 2px 10px rgba(35, 31, 28, 0.06);
}
.feature::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 18px;
  margin-left: -36px;
  background: var(--tape);
  transform: rotate(-2deg);
}
.feature h3 { margin-top: 4px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  color: var(--ink-faint);
  font-size: 12px;
}
footer a { color: inherit; }
.hand { font: 700 22px/1 Caveat, cursive; color: var(--ink-soft); }

@media (min-width: 900px) {
  .shots { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .shots img { width: 320px; }
}

.code { margin: 8px 0 24px; font: 500 40px/1 Plex, monospace; letter-spacing: 10px; color: var(--ink); }
a.badge { text-decoration: none; }
.badge.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
