:root {
  /* SUMMER 1.5 visual language: white page, cream cards, brown hairlines,
     rust accent, serif brand and headlines (see index.html). */
  --card: #fcf7ea;
  --ink: #2b1a0d;
  --ink-soft: #614533;
  --coral: #b84017;
  --coral-dark: #b84017;
  --coral-pressed: #94290a;
  --line: rgba(140, 105, 71, 0.34);
  --line-strong: rgba(140, 105, 71, 0.55);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --content: 860px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 44px), var(--content));
  margin: 0 auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

.back-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible,
.legal a:hover,
.legal a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--coral-dark); }

main { padding: 52px 0 86px; }

.legal {
  padding: clamp(30px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.updated {
  margin: 20px 0 44px;
  color: var(--ink-soft);
  font-size: 14px;
}

h2 {
  margin: 42px 0 12px;
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2:first-of-type { margin-top: 0; }

p, li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

p { margin: 0 0 17px; }

ul, ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li + li { margin-top: 8px; }

.callout {
  margin: 34px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 4px 12px 12px 4px;
  background: #ffffff;
}

.callout p:last-child { margin-bottom: 0; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 12px;
}

.download-card {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.download-card h2 { margin: 0 0 8px; }
.download-card p { margin-bottom: 22px; }

.download-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible { color: #ffffff; background: var(--coral-pressed); }

.site-footer {
  min-height: 120px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer a { text-decoration: none; }

@media (max-width: 650px) {
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .site-header { min-height: 76px; }
  .brand img { width: 38px; height: 38px; }
  main { padding: 28px 0 58px; }
  .legal { border-radius: 16px; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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