/* What the Pieces Know — public site
   Deep teal / ivory / restrained amber. No frameworks. */

:root {
  --foundation: #121820;
  --foundation-deep: #0e171c;
  --surface: #141c22;
  --panel: #1a2228;
  --ivory: #e8e4dc;
  --muted: #9a958c;
  --amber: #c4a574;
  --on-amber: #1a1612;
  --line: rgba(232, 228, 220, 0.2);
  --line-strong: rgba(232, 228, 220, 0.34);
  --max: 42rem;
  --pad: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, #1a2a32 0%, transparent 55%),
    linear-gradient(180deg, var(--foundation-deep) 0%, var(--foundation) 40%, #0c1216 100%);
  background-attachment: fixed;
}

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

a:hover {
  color: var(--ivory);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: var(--on-amber);
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
}

.skip-link:focus {
  left: var(--pad);
  top: var(--pad);
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 1.75rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--amber);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  display: block;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.site-main {
  padding: 1.5rem 0 3.5rem;
}

.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.hero-icon {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.35rem;
  margin: 0 auto 1.35rem;
  display: block;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.35rem 0 1.1rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1rem;
  color: var(--muted);
}

.product-desc {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--ivory);
}

.panel {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  padding: 1.25rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  text-align: left;
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.panel p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
}

.status {
  margin: 1.5rem 0 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
  color: var(--amber);
  font-weight: 600;
}

.home-links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
}

.page-title {
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
}

.meta-line {
  margin: 0 0 1.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--ivory);
}

.prose h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--amber);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ivory);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ivory);
  font-weight: 700;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.topic-list li {
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
}

.mailto {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.note {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--amber);
  background: rgba(196, 165, 116, 0.08);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.error-block {
  text-align: center;
  padding: 3rem 0 2rem;
}

.error-block .code {
  margin: 0 0 0.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (max-width: 480px) {
  :root {
    --pad: 1rem;
  }

  .hero-icon {
    width: 6.25rem;
    height: 6.25rem;
  }
}
