/* ClarionStack: the Luminous Kiln look from Glaze (docs/04_VISUAL_DESIGN_SYSTEM.md). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-top: #243457;
  --bg-bottom: #141d33;
  --ink: #f2f5fb;
  --ink-2: #b7c1d8;
  --accent: #f2b233;
  --surface: rgba(44, 61, 99, 0.62);
  --rim: rgba(255, 255, 255, 0.14);
  --celadon: #8ccfb4;
  --cobalt: #4f80e3;
  --saffron: #f2b233;
  --plum: #b35fad;
  --rose: #e77a8a;
  --jade: #2fa37a;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(40rem 30rem at 12% 8%, rgba(79, 128, 227, 0.28), transparent 70%),
    radial-gradient(36rem 28rem at 92% 30%, rgba(179, 95, 173, 0.22), transparent 70%),
    radial-gradient(44rem 32rem at 30% 100%, rgba(242, 178, 51, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 70%);
  background-attachment: fixed;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd27a; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
}
.brand img { width: 30px; height: 30px; }

nav.site a { color: var(--ink-2); text-decoration: none; margin-left: 18px; font-size: 0.95rem; }
nav.site a:hover { color: var(--ink); }

h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 0.2em 0 0.3em; }
h2 { font-size: 1.5rem; margin: 2em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }

.wordmark {
  background: linear-gradient(180deg, var(--ink), #f3dcae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 36px rgba(242, 178, 51, 0.25);
}

.lede { color: var(--ink-2); font-size: 1.15rem; max-width: 34em; }
.muted { color: var(--ink-2); }

.hero { text-align: center; padding: 48px 0 24px; }
.hero .lede { margin: 0 auto; }
.center { text-align: center; }
.spaced { margin-top: 28px; }

/* The Glaze icon: an L of three glossy tiles. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 64px);
  gap: 8px;
  justify-content: center;
  margin: 0 auto 12px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}
.tile {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  position: relative;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 5px 8px 50% 8px;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}
.tile.cobalt { background: var(--cobalt); }
.tile.celadon { background: var(--celadon); }
.tile.plum { background: var(--plum); }
.tile.jade { background: var(--jade); }
.tile.saffron { background: var(--saffron); grid-row: 2; }
.tile.rose { background: var(--rose); grid-row: 2; }
.tile.blank { visibility: hidden; }

.palette { display: flex; gap: 8px; justify-content: center; margin: 18px 0 0; }
.palette .tile { width: 26px; height: 26px; border-radius: 7px; }
.palette .tile::after { inset: 2px 4px 50% 4px; border-radius: 6px; }

.glass {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 24px;
  margin: 18px 0;
}
.glass h2:first-child, .glass h3:first-child { margin-top: 0; }

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  color: #2a1d05;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, #ffd27a, var(--accent));
  box-shadow: 0 10px 26px rgba(242, 178, 51, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cta:hover { color: #2a1d05; filter: brightness(1.05); }
.cta[aria-disabled="true"] { opacity: 0.75; cursor: default; }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-decoration: none;
}
.pill:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li::before { content: "◆"; color: var(--accent); margin-right: 10px; font-size: 0.8em; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rim); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }

details { border-bottom: 1px solid var(--rim); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--ink-2); }

footer.site { padding: 40px 0 48px; color: var(--ink-2); font-size: 0.9rem; text-align: center; }
footer.site a { color: var(--ink-2); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  nav.site a { margin-left: 12px; }
  .glass { padding: 18px; }
}
