/* Atesen Software — one stylesheet, no external resources, no webfonts.
   Mobile-first; the only breakpoints are where the layout actually breaks. */

:root {
  color-scheme: light dark;

  --paper: #ffffff;
  --paper-raised: #f5f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #dbe2ee;
  --brand: #1d4ed8;
  --brand-strong: #1e3a8a;
  --brand-wash: #eef2ff;
  --accent-pending: #92400e;
  --accent-pending-wash: #fef3c7;
  --accent-planned: #3730a3;
  --accent-planned-wash: #e0e7ff;
  --accent-live: #14532d;
  --accent-live-wash: #dcfce7;

  --wrap: 68rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --paper-raised: #131d31;
    --ink: #e8eefb;
    --ink-soft: #a3b2cc;
    --line: #24314c;
    --brand: #8fb0ff;
    --brand-strong: #b9ccff;
    --brand-wash: #16233d;
    --accent-pending: #fcd34d;
    --accent-pending-wash: #3a2b0b;
    --accent-planned: #c7d2fe;
    --accent-planned-wash: #232449;
    --accent-live: #86efac;
    --accent-live-wash: #0f2d1c;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ------------------------------------------------------------- typography */

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
}

p,
li {
  max-width: 68ch;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

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

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}

.meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- header */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark {
  color: var(--brand);
  border-radius: 7px;
  flex: none;
}

.site-nav {
  margin-left: auto;
}

/* Once the navigation wraps onto its own row, align it with the wordmark
   instead of leaving it stranded against the right edge. */
@media (max-width: 30rem) {
  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

/* ------------------------------------------------------------------- main */

main {
  flex: 1 0 auto;
  padding-block: 2.5rem 4rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.hero {
  padding-block: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.hero .lede {
  font-size: 1.2rem;
  max-width: 60ch;
}

.prose-section {
  margin-block: 2.5rem;
}

.prose-section ul {
  padding-left: 1.15rem;
}

.prose-section li {
  margin-bottom: 0.4rem;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  margin-bottom: 0.3rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

.button-quiet:hover {
  background: var(--brand-wash);
  color: var(--brand-strong);
}

@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #08122b;
  }
}

/* ------------------------------------------------------------------ cards */

.card-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

@media (min-width: 40rem) {
  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: none;
}

.card h3 {
  font-size: 1.15rem;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p {
  margin-bottom: 0.6rem;
  max-width: none;
}

.card p:last-child {
  margin-bottom: 0;
}

.feature {
  border-left: 3px solid var(--line);
  padding-left: 1rem;
}

.feature p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: none;
}

.notice {
  background: var(--brand-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-block: 1.75rem;
}

.notice h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.callout {
  border-left: 3px solid var(--brand);
  background: var(--paper-raised);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 68ch;
}

.status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin: 0.35rem 0 0;
  background: var(--paper-raised);
  color: var(--ink-soft);
}

.status-pending {
  background: var(--accent-pending-wash);
  color: var(--accent-pending);
}

.status-planned {
  background: var(--accent-planned-wash);
  color: var(--accent-planned);
}

.status-live {
  background: var(--accent-live-wash);
  color: var(--accent-live);
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.93rem;
  flex: none;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-column h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.35rem;
}

.footer-column a {
  color: var(--ink);
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-name {
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.footer-note {
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 0.6rem;
}

.social-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.social-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}
