/* openField site: "an open field at dawn". Colours and type from assets/brand/BRAND.md. */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f6f4ee; --panel: #ffffff; --text: #15181d; --muted: #5f5e58; --line: #e6e2d8; --chip: #efece4;
  --sun-top: #ffb341; --sun: #ff7a1a; --sun-bottom: #ff5e1a; --ember: #c2410c; --code-bg: #15181d; --code-fg: #ece9e1;
  --dot: rgba(21, 24, 29, .10);
  --shadow: 0 1px 2px rgba(21, 24, 29, .05), 0 18px 48px rgba(21, 24, 29, .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101317; --panel: #171a20; --text: #eceae3; --muted: #a3a199; --line: #282c34; --chip: #22262d;
    --ember: #ff8a3d; --code-bg: #0b0d10; --code-fg: #e7e4dc; --dot: rgba(236, 234, 227, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--ember); text-underline-offset: 3px; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--chip); padding: .1em .35em; border-radius: 5px; }
pre { background: var(--code-bg); color: var(--code-fg); padding: 16px 18px; border-radius: 12px; overflow-x: auto; margin: 10px 0 14px; }
pre code { background: none; padding: 0; color: inherit; font-size: 14.5px; line-height: 1.55; white-space: pre; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 19px; font-weight: 600; margin: 18px 0 6px; }

.light-only { display: inline; } .dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: inline; } }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; }
.top nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ember); }
.top nav .gh { padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero {
  text-align: center; padding: 72px 0 40px; position: relative;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
.hero::before {
  content: ""; position: absolute; inset: auto 10% 30% 10%; height: 420px; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--sun) 26%, transparent), transparent 70%);
}
.eyebrow { margin: 0 0 12px; font-weight: 600; color: var(--ember); letter-spacing: .02em; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 650; margin: 0 0 18px; }
.lead { max-width: 760px; margin: 0 auto 28px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
}
.button.primary { color: #15181d; border: 0; background: linear-gradient(180deg, var(--sun-top), var(--sun-bottom)); }
.button:hover { filter: brightness(1.04); transform: translateY(-1px); }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

.band { padding: 64px 0 8px; }
.section-lead { max-width: 820px; color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 > *, .grid2 > *, .gallery > * { min-width: 0; } /* a long code line scrolls inside its block */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 18px; }
.card h3::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px;
  background: var(--sun); vertical-align: 2px;
}
.card p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
.note { color: var(--muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }

footer { margin-top: 72px; padding: 28px 20px 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
footer .mark { vertical-align: -4px; }

@media (max-width: 900px) {
  .grid3, .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top { gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
  .top nav { gap: 14px; font-size: 15px; margin-left: 0; }
  main { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .grid3, .grid2, .gallery { grid-template-columns: 1fr; }
  td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button:hover { transform: none; } }
