/* Shared homepage dimensions and typography */
:root { --space: 15px; --side: clamp(16px, 4.4vw, 70px); --orange: #ff891d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0 auto; max-width: 1600px; background: #f5f2ed; color: #101316; font: 16px/1.55 Arial, sans-serif; }
a { color: inherit; }
button, select, input { font: inherit; }
h1, h2 { margin: 0; font-family: Georgia, serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(32px, 3.3vw, 50px); }
h2 { font-size: clamp(24px, 2.2vw, 35px); }
p { margin: 0; overflow-wrap: break-word; }
main :is(details[open] > p, .filename, .verify-links) { margin-block-start: var(--space); }
.copy > p { max-width: 55ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 0; z-index: 30; background: white; }
:focus-visible { outline: 3px solid #1282c0; outline-offset: 2px; }

/* Section rows share one vertical spacing rule, including the hero. */
section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy media";
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 50px var(--side);
  border-bottom: 1px solid #ffffff9c;
}
.copy { grid-area: copy; display: grid; gap: var(--space); min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .secondary { background: #202a30; }
.media { grid-area: media; min-width: 0; display: grid; place-items: center; }
.media img { display: block; width: 100%; height: auto; }
@media (min-width: 901px) {
  section:nth-of-type(even) { grid-template-areas: "media copy"; }
}
.light, #hero { background: linear-gradient(105deg,#eeeae5,#faf8f5 45%,#efebe7); }
.dark { background: linear-gradient(115deg,#1a2227,#2a3339 55%,#1b2227); color: white; }
.orange, .btn { background: linear-gradient(120deg,#f87506,#d45500); color: white; }
.box, .tiles a, .cards a { color: #161a1d; background: linear-gradient(130deg,#fff,#f6f2ee); border: 1px solid #d5d0ca; border-radius: 8px; box-shadow: 0 4px 12px #24211e15; padding: var(--space); }
.btn { display: inline-block; text-align: center; font-weight: bold; text-decoration: none; padding: 9px 18px; border: 0; border-radius: 6px; cursor: pointer; }
.btn:hover { filter: brightness(.92); }
.specs small, .tiles b, .cards b, form label { display: block; }
small, .filename, .verify-links { font-size: 14px; }
.filename, .verify-links { overflow-wrap: anywhere; }
select, #hash { width: 100%; min-width: 0; padding: 8px; border: 1px solid #aaa; border-radius: 5px; background: white; color: #181b1d; }
.downloadform, .specs, .tiles, .cards, .release, .hashline { display: flex; align-items: center; gap: var(--space); }
.downloadform, .specs, .release { flex-wrap: wrap; }
.downloadform > div { flex: 1 1 220px; min-width: 0; }
.specs { justify-content: space-between; }
.release { justify-content: space-between; text-decoration: none; }
.release strong { color: #315734; }
table { width: 100%; border-collapse: collapse; background: #faf7f3; font-size: 15px; }
td { border: 1px solid #c9c5c0; padding: 6px 10px; }
tr:first-child { background: #bab8b5; font-weight: bold; }
tr:nth-child(2) { background: #ffe3cc; }
.checks label { display: flex; align-items: baseline; gap: 8px; }
.checks input { accent-color: #d96009; }
form label { margin-bottom: 6px; }
output { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
li + li, .checks label + label, details + details { margin-top: 6px; }
li::before { content: "✓"; color: #e96a00; font-weight: bold; margin-right: 8px; }
details { padding: 7px 12px; background: #faf8f5; color: #16191a; border: 1px solid #c7c4bf; border-radius: 4px; }
summary { cursor: pointer; font-weight: bold; }
.faqcols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space); align-items: start; }
.tiles a, .cards a { flex: 1; text-decoration: none; }
.cards a { display: flex; gap: 10px; align-items: center; }
.cards img { width: 34%; height: auto; border-radius: 4px; }

/* Reflow the same components without changing their vertical spacing. */
@media (max-width: 900px) {
  section { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "media"; gap: var(--space); }
  .cards, .tiles { flex-wrap: wrap; }
  .cards a, .tiles a { flex-basis: 190px; }
}
@media (max-width: 650px) {
  .faqcols { grid-template-columns: 1fr; }
  .hashline { flex-wrap: wrap; }
  .cards { flex-direction: column; align-items: stretch; }
  .cards a { flex-basis: auto; }
  .cards img { max-width: 85px; }
  td { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#faq { grid-template-columns: 1fr; grid-template-areas: "copy"; }
.config-file { display:grid; place-content:center; gap:12px; text-align:center; width:140px; height:172px; border:3px solid currentColor; border-radius:10px; font:600 18px/1.2 monospace; }
.config-file b { color:#ff891d; font-size:46px; }
.port-pair { display:flex; gap:28px; text-align:center; }
.port-pair b { display:block; margin-bottom:10px; letter-spacing:.08em; }
.port-pair i { display:block; width:76px; height:52px; border:5px solid #586067; border-radius:5px; background:repeating-linear-gradient(90deg,#dba64e 0 3px,#20262a 3px 8px) center 6px / 56px 13px no-repeat,#192128; }

