/* Breach holding page. Colors are the app's Paper theme (light) and the night around the Breach artwork (dark). */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f3e9;
  --text: #373c32;
  --muted: #5d6357;
  --rule: #aaa99b;
  --accent: #356443;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #00070e;
    --text: #e6e1d4;
    --muted: #b6b8a8;
    --rule: #2a3340;
    --accent: #dcd6c8;
    --on-accent: #00070e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1rem, 5vw, 4rem);
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
}

.mark {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.375rem;
}
.mark-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }

main {
  grid-column: 1;
  align-self: center;
  padding-block: 3rem;
}
h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.cite {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}
.lede {
  margin: 2.25rem 0 0;
  max-width: 32rem;
  font-size: 1.25rem;
}
.get {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.note { color: var(--muted); }

footer {
  grid-column: 1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}
footer p { margin: 0.25rem 0; }

a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
.button:focus-visible { border-radius: 999px; }

.art {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  display: block;
  width: min(100%, 34rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 1rem;
}

.notfound { grid-template-columns: minmax(0, 38rem); grid-template-rows: 1fr; }
.notfound h1 { max-width: 18ch; font-size: clamp(2rem, 5vw, 3rem); }

@media (max-width: 52rem) {
  body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
  .art {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 1.25rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 64%;
    border-radius: 0.75rem;
  }
  main { padding-block: 2rem 2.5rem; }
}
