/* Pebble Dragon: dark-mode site styles. Fonts are self-hosted (no requests to third parties). */
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  --bg: #16252A;        /* page background: a deeper Slate */
  --surface: #1E3237;   /* cards */
  --slate: #263D42;     /* brand Slate */
  --sand: #F3EEE5;      /* brand Sand: main text */
  --muted: #B9C4C2;     /* secondary text (10:1 on --bg) */
  --ember: #E8803A;     /* brand Ember: accents only, never small text */
  --line: rgba(243, 238, 229, 0.12);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--sand);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sand); text-decoration-color: rgba(232, 128, 58, 0.7); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--sand); color: var(--slate); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 10; }
.skip:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--sand); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--sand); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 8px; border-radius: 50%; background: var(--ember); transform: rotate(-12deg); margin-right: 10px; vertical-align: 1px; }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.4vw, 62px); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 34px; }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--sand); color: var(--slate); }
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { border: 1.5px solid rgba(243, 238, 229, 0.45); color: var(--sand); }
.btn-ghost:hover { border-color: var(--sand); }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--slate); display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 74%; height: auto; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--slate); display: flex; align-items: center; justify-content: center; color: var(--sand); }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--sand); }
.tag-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); margin-right: 7px; vertical-align: 1px; }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }

.about p { max-width: 42em; color: var(--muted); margin: 0; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-box p { margin: 0; color: var(--muted); }
.email { font-family: "Sora", system-ui, sans-serif; font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); color: var(--sand); }
.social { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--sand); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--sand); font-weight: 600; }
.legal dl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 8px 22px; margin: 0; }
.legal dt { color: var(--sand); font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
.legal .inline-num { display: inline-block; height: 1em; width: auto; vertical-align: -0.2em; }
.updated { font-size: 15px; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .logo img { width: 160px; }
  .nav { gap: 18px; font-size: 13px; }
}
