/* Sufra site — "The Round Table" skin.
   Colour tokens are copied verbatim from src/constants/theme.ts; if that
   file changes, change these to match. */

:root {
  --background: #faf7f2;
  --panel: #f5f0e8;
  --terracotta: #c4783a;
  --saddle-brown: #8b4513;
  --text: #1a1208;
  --border: #e8ddd0;
  --panel-deep: #efe3d5;
  --panel-muted: #f0e8dd;
  --amber: #d9982f;
  --gold: #c79a3e;
  --error-text: #8a1f11;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand .dot {
  color: var(--terracotta);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--saddle-brown);
  text-decoration: none;
  font-weight: 500;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--terracotta);
}

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

/* ---------- shared blocks ---------- */

main {
  padding: 2.5rem 0 3.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  margin: 2.75rem 0 0.9rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.5rem;
}

p + p {
  margin-top: 0.9rem;
}

a {
  color: var(--saddle-brown);
}

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

.lede {
  font-size: 1.2rem;
  color: var(--saddle-brown);
  max-width: 36rem;
}

.overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.4rem 1.5rem;
  margin: 1.2rem 0;
}

.card h3:first-child,
.card h2:first-child {
  margin-top: 0;
}

.card--deep {
  background: var(--panel-deep);
}

.card--gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 62, 0.15);
}

.note {
  font-size: 0.95rem;
  color: var(--saddle-brown);
}

ul, ol {
  padding-left: 1.4rem;
  margin: 0.7rem 0;
}

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

strong {
  font-weight: 700;
}

.sparkle {
  color: var(--gold);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* steps (how-to page) */

.step {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-num {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--background);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.step h3 {
  margin-top: 0;
}

/* the illustration */

.table-figure {
  margin: 2.5rem auto;
  max-width: 24rem;
  text-align: center;
}

.table-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.table-figure figcaption {
  font-size: 0.85rem;
  color: var(--saddle-brown);
  margin-top: 0.75rem;
}

/* seat-state legend */

.legend {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.legend-swatch {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--panel-muted);
}

.legend-swatch--amber {
  border-color: var(--amber);
  box-shadow: 0 0 10px 2px rgba(217, 152, 47, 0.55);
}

.legend-swatch--photo {
  border-color: var(--terracotta);
  background: radial-gradient(circle at 35% 35%, #fff 0 28%, var(--panel-deep) 30% 100%);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 1.8rem 0 2.2rem;
  font-size: 0.92rem;
  color: var(--saddle-brown);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.footer-links a {
  color: var(--saddle-brown);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.footer-links .sep {
  color: var(--border);
}

/* ---------- policy / longform pages ---------- */

.longform h2 {
  margin-top: 2.2rem;
}

.effective {
  font-size: 0.95rem;
  color: var(--saddle-brown);
  margin-bottom: 1.8rem;
}

/* ---------- small screens ---------- */

@media (max-width: 420px) {
  body {
    font-size: 1rem;
  }

  .card {
    padding: 1.1rem 1.15rem;
  }

  .step {
    gap: 0.8rem;
  }
}
