/* terg.hr — the front door.
 *
 * Not an app: no database, no login, no sharing. It is a page that knows the
 * family and says so plainly. The palette, the type and the floor under every
 * control come from vendor/tokens.css (the same copy the eight apps use), so the
 * site and the apps look like one thing without sharing a line of code.
 *
 * Layout: one column of prose, wider only where a grid earns it. Nothing is
 * centred that has to be read; nothing moves when you hover it.
 */

:root {
  --col: 34rem;          /* the measure a paragraph is read at */
  --wide: 62rem;         /* the grid and the header */
}

.site {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

/* ── the header ──────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 1.2rem;
  max-width: var(--wide); margin: 0 auto; padding: 1rem 1.25rem 0.6rem;
}
.mark {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2rem; padding: 0 0.1rem;
  text-decoration: none; color: var(--ink);
}
.mark-glyph {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  background: var(--ink); color: var(--paper); border-radius: 5px;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1;
}
.mark-word { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.01em; }
.top-nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.top-nav a, .foot nav a {
  display: inline-flex; align-items: center; min-height: 1.9rem;
  color: var(--ink-2); text-decoration: none; font-size: 0.85rem;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.top-nav a:hover, .foot nav a:hover { border-color: var(--line-strong); color: var(--ink); }
.top-acts { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.top-acts #theme {
  font-size: 0.95rem; padding: 0 0.45rem; min-width: 2rem; min-height: 2rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2);
  color: var(--ink-2); cursor: pointer;
}
.top-acts #theme:hover { border-color: var(--line-strong); color: var(--ink); }
.go {
  display: inline-block; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--paper); border-radius: 6px;
  font-size: 0.82rem; padding: 0.42rem 0.7rem;
}
.go:hover { background: var(--ink-2); }
.go.big { font-size: 0.92rem; padding: 0.55rem 0.9rem; }
.quiet { color: var(--ink-2); font-size: 0.88rem; text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ── the hero ────────────────────────────────────────────────────── */
main { display: block; }
.hero { max-width: var(--wide); margin: 0 auto; padding: 3.5rem 1.25rem 2.5rem; }
.kicker {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.9rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.06;
  letter-spacing: -0.015em; margin: 0 0 1.1rem;
}
.lede { max-width: 38rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.hero-acts { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 0; }

/* ── blocks ──────────────────────────────────────────────────────── */
.block { max-width: var(--wide); margin: 0 auto; padding: 2.2rem 1.25rem; border-top: 1px solid var(--line); }
.block h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.35rem; }
.block .sub { max-width: var(--col); color: var(--ink-2); margin: 0 0 1.4rem; font-size: 0.95rem; }
.block p { max-width: var(--col); }

/* the eight */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.apps li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem;
  padding: 0.85rem 0; border-top: 1px solid var(--line-strong);
}
.apps li:first-child { border-top: 0; }
.apps li > a {
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 0.5rem;
}
.apps li > a b { font-family: var(--mono); font-size: 1rem; }
.apps li > a .what { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); }
.apps li > a:hover .what { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.apps li p { grid-column: 1; margin: 0.1rem 0 0; font-size: 0.9rem; color: var(--ink-2); max-width: 40rem; }
.apps .addr {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); white-space: nowrap;
}

/* the rules */
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 0.75rem; max-width: 46rem; }
.rules li { counter-increment: r; position: relative; padding-left: 2.1rem; font-size: 0.94rem; color: var(--ink-2); }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 0.05rem;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); background: var(--paper);
}
.rules li b { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.split h2 { font-size: 1.25rem; }
.split p { font-size: 0.94rem; color: var(--ink-2); }
.fine { font-size: 0.8rem; color: var(--ink-3); }
/* inline styles are refused by the site's own CSP, which is a good reason to
 * keep the spacing in the stylesheet where it can also be changed once */
.gap-top { margin-top: 2rem; }
.dim { color: var(--ink-3); }

/* the ask */
.ask .mail { font-family: var(--mono); font-size: 1rem; margin: 0.6rem 0 0; }
.ask .mail a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ── prose pages (faq, imprint, privacy, 404) ─────────────────────── */
.page { max-width: var(--col); margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1.2rem; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.page p, .page li { font-size: 0.95rem; color: var(--ink-2); }
.page p b, .page li b { color: var(--ink); }
.page ul, .page ol { padding-left: 1.15rem; }
.page a { color: var(--ink); }
.page dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.page dt { font-size: 0.8rem; color: var(--ink-3); font-family: var(--mono); }
.page dd { margin: 0; font-size: 0.95rem; }

/* ── footer ──────────────────────────────────────────────────────── */
.foot {
  max-width: var(--wide); margin: 1rem auto 0; padding: 1.4rem 1.25rem 2.4rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.5rem;
}
.foot-mark { font-family: var(--serif); margin: 0; color: var(--ink-2); }
.foot-mark span {
  display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem;
  background: var(--ink); color: var(--paper); border-radius: 4px;
  font-size: 0.8rem; line-height: 1; margin-right: 0.25rem;
}
.foot nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.foot nav { gap: 0.35rem; }
.foot nav a {
  font-family: var(--mono); font-size: 0.78rem;
  min-width: 2rem; justify-content: center; padding: 0 0.3rem;
  border: 1px solid var(--line); border-radius: 4px;
}
.foot nav a:hover { border-color: var(--line-strong); }
.foot-fine { font-size: 0.76rem; color: var(--ink-3); margin: 0.35rem 0 0; }
.foot-fine a { color: var(--ink-2); }

/* ── a phone ─────────────────────────────────────────────────────── */
@media (max-width: 46rem) {
  .top { flex-wrap: wrap; gap: 0.6rem; }
  .top-nav { order: 3; width: 100%; gap: 0.85rem; }
  .top-acts { margin-left: auto; }
  .go { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
  .hero { padding: 2.2rem 1.1rem 1.6rem; }
  .block { padding: 1.7rem 1.1rem; }
  .split { grid-template-columns: 1fr; gap: 1.2rem; }
  .apps li { grid-template-columns: 1fr; }
  .apps .addr { grid-column: 1; grid-row: auto; margin-top: 0.15rem; }
  .page dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .page dt { margin-top: 0.5rem; }
}

@media print {
  .top-acts, .top-nav, .foot nav { display: none; }
  .site { font-size: 11pt; }
}
