/* Atelvar developer site — brand matched to packages/ui/src/atelvar.css */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --ink: #1e1a26;
  --ink-2: #2b2536;
  --brass: #b38b4d;
  --brass-soft: #efe4d0;
  --ivory: #f6f3ee;
  --paper: #fffcf7;
  --muted: #5c5666;
  --line: rgba(30, 26, 38, 0.1);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  a:hover {
    text-decoration-color: var(--ink);
    text-decoration-thickness: 1.5px;
  }
}

img { max-width: 100%; height: auto; }

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

.wrap--wide {
  width: min(56rem, calc(100% - 2.5rem));
}

/* Top bar */
.site-header {
  background: var(--ink);
  color: #fff;
}

.site-header__inner {
  width: min(56rem, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.6rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover { text-decoration: none; }

.wordmark__mark {
  color: var(--brass);
  font-size: 0.85rem;
  transform: translateY(-1px);
}

.wordmark__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .nav a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-underline-offset: 4px;
  }
}

/* Hero / page titles */
.hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.page-title {
  padding: 2.5rem 0 1.25rem;
}

.page-title h1 { margin-bottom: 0.4rem; }

.page-title .lede { font-size: 1.05rem; color: var(--muted); }

/* Content */
main { padding-bottom: 3.5rem; }

.section {
  padding: 2.25rem 0 0;
}

.section + .section { padding-top: 2rem; }

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
}

h3 {
  margin: 1.6rem 0 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}

p { margin: 0 0 1rem; }

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

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

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 48rem) {
  .card-row { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.panel {
  margin-top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}

.panel strong { font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
}

.btn:hover {
  background: var(--ink-2);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30, 26, 38, 0.22);
}

.btn--ghost:hover {
  border-color: var(--brass);
  background: var(--brass-soft);
  color: var(--ink);
}

.notice {
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.95rem;
  background: var(--brass-soft);
  color: #5a4523;
  border: 1px solid #e4d5b8;
  border-radius: 6px;
  font-size: 0.92rem;
}

.legal p, .legal li {
  font-size: 1rem;
  color: var(--ink-2);
}

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

.legal li { margin-bottom: 0.35rem; }

.legal .updated {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  background: #f1ece4;
}

.site-footer__inner {
  width: min(56rem, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.site-footer nav a {
  font-size: 0.92rem;
  font-weight: 500;
}

@media (max-width: 40rem) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0 1rem;
  }

  .nav { justify-content: flex-start; }

  h1 { font-size: 2rem; }

  .hero { padding: 2.4rem 0 1.75rem; }
}

/* Logo mark beside typeset name */
.wordmark__logo {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: block;
}

.wordmark {
  align-items: center;
  gap: 0.55rem;
}

.site-footer .wordmark {
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.site-footer .wordmark__name {
  color: var(--ink);
  font-size: 1.2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 28rem;
}
