/* Gante site. Colours, type and shapes follow docs/DESIGN.md.
   Dark only. Brass (--ring) means "this rings" and is used for the bell
   mark and the example alarm, nothing else. No script, no inline style. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0F1115;
  --surface: #191C22;
  --raised: #22262E;
  --line: #2E333D;
  --line-strong: #6E7480;
  --text: #F2F0EA;
  --muted: #A9ADB6;
  --ring: #E2B04A;
  --on-ring: #1A1405;
  --ring-tint: #2A2413;
  --missed: #F08A5D;
  --missed-text: #F6A583;

  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --side: 20px;
  --wide: 1040px;
  --read: 68ch;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--side);
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: var(--side);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  fill: var(--ring);
}

.top ul {
  display: flex;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.top li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.top li a:hover,
.top li a[aria-current="page"] {
  color: var(--text);
}

.top li a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.4em;
}

/* Landing: hero */

.hero {
  display: grid;
  gap: 40px;
  padding-block: 36px 56px;
}



.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.25rem, 9.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.lede {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.0625rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
}

.status svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

/* The example alarm. The one place brass is used at size: it rings. */

.alarm {
  max-width: 400px;
}

.alarm-card {
  padding: 22px 20px 20px;
  border: 1px solid var(--ring);
  border-radius: 16px;
  background: var(--ring-tint);
}

.alarm-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ring);
  font-size: 0.8125rem;
  font-weight: 600;
}

.alarm-state svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.alarm-clock {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 20vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alarm-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.alarm-from {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.alarm-job {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ground);
  font-size: 0.9375rem;
}

.alarm-job .label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.alarm-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.act-main {
  border-color: var(--ring);
  background: var(--ring);
  color: var(--on-ring);
}

.alarm figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Landing: points */

.band {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}

.band > h2 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  letter-spacing: -0.02em;
}

.points {
  display: grid;
  gap: 0;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.points li {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.points h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
}

.points p {
  margin-top: 8px;
  max-width: 36em;
  color: var(--muted);
}

.plain {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  max-width: 40em;
  color: var(--muted);
}

.plain strong {
  color: var(--text);
  font-weight: 600;
}

.mail,
.lost a {
  display: inline-block;
  padding-block: 12px;
  font-weight: 600;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 28px 44px;
  color: var(--muted);
  font-size: 0.875rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.foot li a:hover {
  color: var(--text);
}

/* Legal pages */

.doc {
  display: grid;
  gap: 32px;
  padding-block: 28px 64px;
}

.doc-head h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.doc-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.toc {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.toc h2 {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.toc ol {
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  max-width: var(--read);
  min-width: 0;
}

.prose section {
  padding-top: 34px;
}

.prose section:first-child {
  padding-top: 0;
}

.prose h2 {
  font-size: 1.4375rem;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 22px;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.prose p,
.prose ul,
.prose dl {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--line-strong);
}

.prose strong {
  font-weight: 600;
}

.short {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.data {
  display: grid;
  gap: 10px;
}

.data > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.data dt {
  font-weight: 600;
}

.data dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The "do not rely on this" notice in the terms. Not brass: it is a
   warning, not a ring. Marked with a word and an icon as well as colour. */

.warn {
  margin-top: 16px;
  padding: 18px 18px 20px;
  border: 1px solid var(--missed);
  border-left-width: 4px;
  border-radius: 14px;
  background: var(--surface);
}

.warn-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--missed-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.warn-label svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.warn .big {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

/* A value the owner still has to fill in. Loud on purpose. */

.todo {
  padding: 1px 6px;
  border: 1px dashed var(--missed);
  border-radius: 6px;
  background: var(--raised);
  color: var(--missed-text);
  font-size: 0.9375em;
  font-weight: 500;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 404 */

.lost {
  padding-block: 56px 96px;
}

.lost h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lost p {
  margin-top: 14px;
  color: var(--muted);
}

/* Wider screens */

@media (min-width: 720px) {
  :root {
    --side: 32px;
  }

  .points {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .points li:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 400px);
    align-items: center;
    gap: 64px;
    padding-block: 64px 88px;
  }

  .band {
    padding-block: 64px;
  }

  .doc {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 64px;
    padding-top: 48px;
  }

  .doc-head {
    grid-column: 1 / -1;
  }

  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .toc a {
    min-height: 34px;
    color: var(--muted);
  }

  .toc a:hover {
    color: var(--text);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .skip {
    transition: color 120ms ease, text-decoration-color 120ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .top ul,
  .toc,
  .skip {
    display: none;
  }
}
