/* Shared by the project pages that use the homepage look (colours copied from index.html). */
:root {
  color-scheme: light;
  --bg: #F4F3EC;
  --ink: #0A3F25;
  --accent: #0F5C36;
  --gutter: clamp(1rem, 4vw, 4rem);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --grid: color-mix(in srgb, var(--ink) 14%, transparent);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0F0C;
  --ink: #2F9E5C;
  --accent: #56C485;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: var(--gutter) var(--gutter) calc(var(--gutter) * 2);
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.45;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.back { color: var(--accent); font: 500 .875rem var(--mono); text-underline-offset: .2em; }

h1 {
  margin: clamp(2rem, 6vw, 5rem) 0 .75rem;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
}
.summary { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }

/* The embed sits in here */
.embed {
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid currentColor;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
  font: 500 1rem var(--mono);
}
.embed iframe { width: 100%; height: 100%; border: 0; }

.specs {
  max-width: 1100px;
  margin: 0;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem 2rem;
  background: var(--bg);
  border: 1px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  font: 400 .875rem var(--mono);
}
.specs dt { font-weight: 500; }
.specs dd { margin: .25rem 0 0; }
