:root {
  --page: #ffffff;
  --ink: #141413;
  --muted: #5e5d59;
  --rule: #e3e2dd;
  --placeholder: #f2f1ec;
  --panel: #f5f4f0;
  --accent: #b5452d;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --text: 640px;
  --wide: 880px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header: logo only */
.site-header { padding: 22px 64px; }
.brand { display: inline-block; line-height: 0; }
.brand img { height: 36px; width: auto; }

/* Hero: left-aligned, lined up with the figure column */
.hero {
  width: min(var(--wide), calc(100% - 48px));
  margin: 96px auto 0;
}
.hero h1 {
  margin: 0;
  max-width: 820px;
  font: 600 48px/1.12 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.meta {
  margin: 24px 0 0;
  color: var(--muted);
  font: 400 15px/1.4 var(--sans);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 500 15px/1.33 var(--sans);
  text-decoration: none;
}
.button:hover { background: #3d3d3a; border-color: #3d3d3a; text-decoration: none; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--page); }

/* Hero artwork slot: shows a quiet placeholder until assets/hero.png exists */
.hero-art {
  width: min(var(--wide), calc(100% - 48px));
  aspect-ratio: 16 / 9;
  margin: 48px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--placeholder);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Article column */
.post {
  max-width: calc(var(--text) + 48px);
  margin: 64px auto 0;
  padding: 0 24px;
}
.post p { margin: 0 0 16px; }
.post h2 {
  margin: 52px 0 14px;
  font: 600 27px/1.25 var(--serif);
  letter-spacing: -0.01em;
}
.post h3 { font: 600 18px/1.3 var(--sans); margin: 0; }
.post strong { font-weight: 600; }

/* Figures break out of the text column to 880px */
.figure {
  width: min(var(--wide), calc(100vw - 48px));
  margin: 32px 0 32px calc((min(var(--wide), calc(100vw - 48px)) - 100%) / -2);
}
.figure a { display: block; line-height: 0; cursor: zoom-in; }
.figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.post { counter-reset: figure; }
.figure { counter-increment: figure; }
.figure figcaption::before {
  content: "Figure " counter(figure) ". ";
  color: var(--accent);
  font-weight: 600;
}
.figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans);
}

/* In-brief summary */
.brief {
  margin: 32px 0;
  padding: 18px 22px 6px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
}
.brief-label {
  margin: 0 0 8px !important;
  color: var(--accent);
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brief ol { margin: 0; padding-left: 20px; }
.brief li { margin: 0 0 12px; padding-left: 4px; }
.brief li::marker { color: var(--accent); font: 600 15px var(--sans); }

/* Example responses: model tabs, prompt block, and drop-down responses */
.examples { margin: 40px 0; }
.example-intro {
  margin: 0 0 16px !important;
  color: var(--muted);
  font: 400 15px/1.5 var(--sans);
}
.tabs { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button {
  padding: 7px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1.3 var(--sans);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--page); }
.prompt {
  margin: 0 0 20px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid var(--ink);
}
.prompt p { margin: 0 0 6px; }
.prompt p:last-child { margin-bottom: 0; }
.responses {
  padding: 8px 28px;
  border-radius: 8px;
  background: var(--panel);
}
.responses details { border-bottom: 1px solid var(--rule); }
.responses details:last-child { border-bottom: 0; }
.responses summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font: 700 15px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}
.responses summary::-webkit-details-marker { display: none; }
.responses summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.responses details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.responses details p { margin: 0 0 18px; }

/* Paper and citation */
.paper-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.citation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}
#copy-citation {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.3 var(--sans);
  cursor: pointer;
}
#copy-citation:hover { background: var(--ink); color: var(--page); }
pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--panel);
  font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace;
}
.copy-status { min-height: 1.5em; margin-top: 8px !important; color: var(--muted); font: 400 14px/1.5 var(--sans); }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 96px;
  padding: 32px 64px 48px;
  border-top: 1px solid var(--rule);
  font: 400 14px/1.5 var(--sans);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer .brand img { height: 28px; }

/* Enlarged figure dialog */
dialog {
  width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--page);
}
dialog::backdrop { background: rgba(20, 20, 19, 0.6); }
dialog form { text-align: right; margin-bottom: 8px; }
dialog button {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  font: 500 14px/1.3 var(--sans);
  cursor: pointer;
}
dialog img { display: block; width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding: 18px 20px; }
  .hero { margin-top: 48px; }
  .hero h1 { font-size: 32px; }
  .hero-art { margin-top: 36px; border-radius: 8px; }
  .post { margin-top: 40px; }
  .post h2 { font-size: 23px; margin-top: 40px; }
  .figure img { border-radius: 6px; }
  .responses { padding: 4px 18px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 28px 20px 40px; }
}
