/* landplan.store - the one stylesheet of the apex site (deploy/site, see deploy/README.md).
 *
 * A holding page until the brand is chosen: system fonts only (no web font, so no request leaves this
 * host), no images, no animation, no JavaScript anywhere on the site. Light and dark follow the
 * operating system through prefers-color-scheme; there is no toggle, because a toggle needs a script.
 * Keep this file ASCII, so that the charset it is served with never matters.
 */

:root {
  color-scheme: light dark;

  --bg: #f7f6f2;
  --text: #1d211c;
  --muted: #5c6358;
  --rule: #dcdad2;
  --accent: #2d5a3d;
  --accent-text: #ffffff;
  --accent-hover: #234a31;
  --code-bg: #eceae3;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", "Liberation Mono", monospace;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141613;
    --text: #e6e7e2;
    --muted: #a3a99e;
    --rule: #2e322c;
    --accent: #9cc7a4;
    --accent-text: #10200f;
    --accent-hover: #b4d8ba;
    --code-bg: #1f221d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  border-top: 4px solid var(--accent);
}

.site-header,
.page,
.site-footer {
  width: 100%;
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  padding-top: 1.5rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.page {
  flex: 1 0 auto;
  padding-top: clamp(2.5rem, 9vh, 6rem);
  padding-bottom: 3rem;
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1.3rem;
  font-weight: 600;
}

h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  background: var(--code-bg);
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
}

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

.crumbs {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
}

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

.facts dd {
  margin: 0;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.hash {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.releases {
  list-style: none;
  padding: 0;
}

.releases li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.releases li + li {
  margin-top: 0;
}

.releases a {
  font-weight: 600;
}

.releases .meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

  .facts dd {
    margin-bottom: 0.6rem;
  }
}

@media print {
  body {
    border-top: 0;
  }

  .actions,
  .site-header {
    display: none;
  }
}
