:root {
  color-scheme: dark;
  --ink: #eee8db;
  --muted: #a9a294;
  --coal: #0e0d0b;
  --panel: #181612;
  --line: #3a3429;
  --ember: #d87935;
  --gold: #e6b65b;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--coal); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 68% 18%, rgba(216, 121, 53, .13), transparent 29rem),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--coal);
  background-size: auto, 100% 5rem, auto;
}

.site-header,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  transform: rotate(45deg);
}

.brand-mark span { transform: rotate(-45deg); }
.edition { color: var(--muted); font-family: Georgia, serif; font-size: .9rem; font-style: italic; }

main { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 90px; }
.intro { max-width: 830px; margin-bottom: 74px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.4rem, 9vw, 7rem); line-height: .88; letter-spacing: -.05em; }
h1 em { color: var(--gold); font-weight: 400; }
.lede { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-family: Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }

.tool-section { border-top: 1px solid var(--line); padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.tool-count { color: #777063; font-family: ui-monospace, monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.tool-card {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 50%), var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.tool-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230, 182, 91, .06); pointer-events: none; }
.tool-card--active { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tool-card--active:hover { border-color: var(--ember); transform: translateY(-3px); box-shadow: 0 28px 70px rgba(0, 0, 0, .34); }
.tool-card--active:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.card-number { position: absolute; top: 14px; right: 22px; color: rgba(230, 182, 91, .08); font-family: Georgia, serif; font-size: 6.8rem; line-height: 1; }
.card-content, .card-link { position: relative; z-index: 1; }
.card-status { color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.card-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
h3 { margin: 30px 0 12px; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; }
.tool-card p { max-width: 380px; margin: 0; color: var(--muted); font-family: Georgia, serif; line-height: 1.55; }
.card-link { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-link span { font-size: 1.15rem; transition: transform .2s ease; }
.tool-card--active:hover .card-link span { transform: translateX(4px); }
.tool-card--soon { opacity: .48; }
.tool-card--soon .card-link { color: var(--muted); }

footer { min-height: 86px; border-top: 1px solid var(--line); color: #6f695e; font-size: .68rem; letter-spacing: .12em; }

@media (max-width: 680px) {
  .site-header, footer, main { width: min(100% - 28px, 940px); }
  .edition { display: none; }
  main { padding: 54px 0 64px; }
  .intro { margin-bottom: 52px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 280px; padding: 24px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro, .tool-section { animation: reveal .55s ease both; }
  .tool-section { animation-delay: .1s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
}
