/* The Coordinates brand: palette and type of thecoordinates.xyz
   (gold #D09A40, cream #FAF5E5, near-black #1B1B1B; Playfair Display + Open Sans).
   Fonts are self-hosted (SIL Open Font License), latin subset, variable weight. */
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --tc-gold: #d09a40;
  --tc-gold-dark: #a87a2c;
  --tc-cream: #faf5e5;
  --tc-ink: #1b1b1b;
  --tc-ink-2: #2e2d2a;
  --tc-muted: #6b665a;
  --tc-line: #e8dfc6;
  --tc-card: #ffffff;
  --tc-ok: #2f7d4f;
  --tc-warn: #a15c07;
  --tc-err: #b42318;
  --tc-radius: 10px;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--tc-ink);
  background: var(--tc-cream);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--tc-ink);
}

a {
  color: var(--tc-gold-dark);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.25rem;
  background: var(--tc-card);
  border-bottom: 3px solid var(--tc-gold);
}
.tc-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--tc-ink);
}
.tc-brand img {
  width: 44px;
  height: 44px;
  display: block;
}
.tc-brand span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.tc-header .tc-spacer {
  flex: 1;
}

.tc-footer {
  background: var(--tc-ink);
  color: #d9d3c3;
  padding: 1.5rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tc-footer a {
  color: var(--tc-gold);
  text-decoration: none;
}
.tc-footer a:hover {
  text-decoration: underline;
}

.tc-btn,
button {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--tc-line);
  background: var(--tc-card);
  color: var(--tc-ink);
  cursor: pointer;
}
.tc-btn-primary,
button.primary {
  background: var(--tc-gold);
  border-color: var(--tc-gold);
  color: var(--tc-ink);
  font-weight: 600;
}
.tc-btn-primary:hover,
button.primary:hover {
  background: var(--tc-gold-dark);
  border-color: var(--tc-gold-dark);
  color: #fff;
}
.tc-btn-dark {
  background: var(--tc-ink);
  color: var(--tc-cream);
  border-color: var(--tc-ink);
}
a.tc-btn {
  display: inline-block;
  text-decoration: none;
}

.tc-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--tc-ink);
  color: var(--tc-cream);
  padding: 1rem;
  border-radius: var(--tc-radius);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  z-index: 50;
}
.tc-consent p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.9rem;
}
.tc-consent a {
  color: var(--tc-gold);
}
