/* OpenCrown website. Colours are the launcher's (port/tools/launcher/main.cpp, apply_style): parchment text,
   gold accents, near-black brown panels. Fonts are the launcher's too, taken from the visitor's system. */
:root {
  --bg: #120f0f;           /* WindowBg 0.07 0.06 0.06 */
  --panel: #0d0a09;        /* content panel 0.05 0.04 0.035 */
  --panel-2: #1a130c;
  --text: #ede0c7;         /* kParchment */
  --dim: #8c8578;          /* TextDisabled */
  --gold: #ebb861;         /* kGold */
  --gold-dim: #b38542;     /* kGoldDim */
  --border: #735c2e;       /* Border 0.45 0.34 0.18 */
  --button: #523621;       /* Button */
  --button-hover: #80572b; /* ButtonHovered */
  --button-active: #9e6e33;
  --good: #8cd973;         /* kGood */
  --warn: #fa9e4d;         /* kWarn */
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(235, 184, 97, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--gold); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-size: 0.92em; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(115, 92, 46, 0.5); padding: 0.05em 0.35em; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.dim { color: var(--dim); }
.small { font-size: 0.9rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 10, 9, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(115, 92, 46, 0.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--gold); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px;
  background: var(--button); color: var(--text);
  border: 1px solid var(--border);
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--button-hover); }
.btn:active { background: var(--button-active); }
.btn.primary { background: linear-gradient(#a57434, #7a5226); border-color: var(--gold-dim); color: #fff6e3; }
.btn.primary:hover { background: linear-gradient(#b8843d, #8a5d2b); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn.small { padding: 7px 14px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(158, 110, 51, 0.28), transparent 70%),
    var(--bg);
  text-align: center;
}
/* painted backdrop (--hero-art set on the element); darkened so the text reads, fading into the page at the bottom */
.hero-art {
  padding-top: 96px;
  background:
    linear-gradient(rgba(18, 15, 15, 0.42), rgba(18, 15, 15, 0.6) 50%, var(--bg) 100%),
    var(--hero-art) center 30% / cover no-repeat,
    var(--bg);
}
.hero-art h1, .hero-art .tagline { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }
.hero-art .note { color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.hero .tagline { font-size: 1.2rem; max-width: 720px; margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }
.hero .note { margin-top: 18px; }
.shot {
  margin: 48px auto 0; max-width: 980px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(115, 92, 46, 0.15);
}

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--panel); border-top: 1px solid rgba(115, 92, 46, 0.35); border-bottom: 1px solid rgba(115, 92, 46, 0.35); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); border: 0; margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(rgba(26, 19, 12, 0.9), rgba(13, 10, 9, 0.9));
  border: 1px solid rgba(115, 92, 46, 0.6);
  border-radius: 10px; padding: 22px;
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }

.platform { display: flex; flex-direction: column; }
.platform .tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 99px; padding: 2px 10px; margin-bottom: 12px; }
.platform ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.platform .btn { margin-top: auto; }

.callout {
  border: 1px solid var(--gold-dim); border-left: 4px solid var(--gold);
  background: rgba(158, 110, 51, 0.1); border-radius: 8px; padding: 18px 22px;
}
.callout strong { color: var(--gold); }

.split { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border: 1px solid var(--border); border-radius: 10px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1rem var(--serif); color: var(--bg); background: var(--gold);
}

/* faq */
details { border-bottom: 1px solid rgba(115, 92, 46, 0.45); padding: 14px 0; }
summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--text); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.3em; color: var(--gold); }
details[open] summary::before { content: "\2212"; }
details p { margin: 10px 0 0 1.3em; }

/* download page */
.dl-grid { max-width: 980px; margin: 0 auto; text-align: left; }
.dl-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: 10px; text-decoration: none; color: var(--text);
  background: linear-gradient(#5e3f1f, #3b2814);
  border: 1px solid var(--gold-dim);
  transition: transform 0.15s, background 0.15s;
}
.dl-card:hover { background: linear-gradient(#7a5226, #4d3418); transform: translateY(-2px); }
.dl-card strong { font: 700 1.3rem var(--serif); color: var(--gold); }
.dl-card strong::before { content: "\2193  "; }
.dl-card .tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 99px; padding: 2px 10px; }
.dl-card span { overflow-wrap: anywhere; }
.dl-meta { font-size: 0.92rem; color: var(--dim); margin-bottom: 14px; }
.dl-meta code { color: var(--text); }
.gate { text-align: center; }
.gate .btn-row { justify-content: center; }
.status { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--warn); }
ol.install { padding-left: 1.3em; margin: 0; }
ol.install li { margin-bottom: 6px; }

/* footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid rgba(115, 92, 46, 0.6); background: var(--panel); font-size: 0.92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; margin-bottom: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
