/* Prame's website (roadmap PR07 07A). Prame's look (PR05): black, a thin gold
   edge, gold for what is active, generous space, capitals only on the download
   button and small labels. System fonts only: nothing is loaded from elsewhere. */

:root {
  --bg: #000;
  --surface: #0b0a08;
  --cream: #f3ead8;
  --text: #e9e1d0;
  --muted: rgba(233, 225, 208, 0.62);
  --faint: rgba(233, 225, 208, 0.42);
  --gold: #e7c072;
  --gold-deep: #deae56;
  --edge: rgba(222, 174, 86, 0.45);
  --edge-soft: rgba(222, 174, 86, 0.22);
  --read: 860px;
  --wide: 1240px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge); }
a:focus-visible, summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* Bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(var(--gutter), calc((100% - var(--wide)) / 2));
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--edge-soft);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.bar nav .lang { padding: 3px 10px; border: 1px solid var(--edge-soft); border-radius: 999px; }

main { padding: 0 var(--gutter); }

/* Home: desktop first, wide rather than tall (Onur, 27 November). */
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  align-items: center;
  gap: 64px;
  max-width: var(--wide);
  min-height: min(760px, calc(100vh - 64px));
  margin: 0 auto;
  padding: 56px 0;
}
.hero h1 {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: clamp(48px, 5.8vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero .intro { max-width: 520px; margin: 0 0 36px; color: var(--text); font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
/* Apple's call to action: a filled pill in sentence case, a quiet text link
   with a chevron beside it, small grey requirements underneath. */
.cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.download {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--gold);
  color: #000;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: background-color 0.2s;
}
.download:hover { text-decoration: none; background: #f0cf8a; }
.more { font-size: 17px; }
.more::after { content: " ›"; }
.req { margin: 22px 0 0; color: var(--faint); font-size: 13px; line-height: 1.6; }

.screen { margin: 0; border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; background: var(--surface); }
.screen img { display: block; width: 100%; height: auto; }
.screen.pending { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.screen.pending span { color: var(--faint); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

.features { max-width: var(--wide); margin: 0 auto; padding: 48px 0 88px; border-top: 1px solid var(--edge-soft); }
.features h2 {
  max-width: 720px;
  margin: 40px 0 48px;
  color: var(--cream);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.features ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features .icon { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin: 0 0 6px; color: var(--cream); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.features li p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--wide);
  margin: 0 auto;
}
.note { max-width: var(--wide); margin: 0 auto; padding: 40px 0 72px; color: var(--faint); font-size: 14px; text-align: center; }

/* Documents: privacy, license, support, release notes */
.doc { max-width: var(--read); margin: 0 auto; padding: 72px 0 96px; }
.doc h1 { margin: 0 0 12px; color: var(--gold); font-size: clamp(30px, 4.4vw, 42px); font-weight: 600; line-height: 1.2; }
.doc h1 + p { color: var(--faint); font-size: 15px; margin-bottom: 40px; }
.doc h2 { margin: 52px 0 14px; color: var(--gold); font-size: 22px; font-weight: 600; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0 0 12px; }
.doc li::marker { color: var(--gold-deep); }
.doc strong { color: var(--cream); font-weight: 600; }
.doc.center { text-align: center; }

details { border-top: 1px solid var(--edge-soft); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--edge-soft); }
summary { cursor: pointer; list-style: none; color: var(--cream); font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  border-top: 1px solid var(--edge-soft);
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}
.foot p { margin: 0 0 6px; }
.foot .links { margin-top: 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding: 48px 0; text-align: center; }
  .hero .intro { max-width: 640px; margin-left: auto; margin-right: auto; }
  .features ul { grid-template-columns: 1fr 1fr; }
  .cta { justify-content: center; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .bar { padding: 12px var(--gutter); }
  .bar nav { gap: 14px; font-size: 14px; }
  .hero .intro { font-size: 17px; }
  .features ul, .screens { grid-template-columns: 1fr; }
  .doc { padding: 48px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
