/* ============ base.css ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100dvh; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ tokens ============ */
:root,
[data-theme='light'] {
  --color-bg: #FAF7F0;
  --color-text: #141312;
  --color-text-muted: #5B5954;
  --color-gold: #A8833E;
  --color-gold-light: #C7A55B;
}
[data-theme='dark'] {
  --color-bg: #141312;
  --color-text: #FAF7F0;
  --color-text-muted: #9A968C;
  --color-gold: #C7A55B;
  --color-gold-light: #D9BE85;
}

/* ============ layout ============ */
html, body {
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color 400ms ease, color 400ms ease;
}

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 3.5rem);
  padding: clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mark { width: 100%; max-width: 560px; }
.mark__svg { width: 100%; height: auto; display: block; overflow: visible; }

.rule { stroke: var(--color-gold); stroke-width: 1.1; }
.rule--thin { stroke: var(--color-gold); stroke-width: 0.8; opacity: 0.7; }
.diamond { fill: var(--color-gold); }

.wordmark {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 46px;
  letter-spacing: 9px;
  fill: var(--color-gold);
}

.subtitle {
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 5px;
  fill: var(--color-text-muted);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
}

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
}

.contact__label {
  color: var(--color-gold);
  font-size: 0.75rem;
  letter-spacing: 2px;
  width: 1.2rem;
  text-align: right;
  flex-shrink: 0;
}

.contact__value {
  font-weight: 300;
  font-size: clamp(0.85rem, 0.6rem + 0.6vw, 1rem);
  letter-spacing: 1.5px;
  color: var(--color-text);
  white-space: nowrap;
}

.footer {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  opacity: 0.55;
}

/* ============ theme toggle ============ */
.theme-toggle {
  position: fixed;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  z-index: 10;
  transition: opacity 200ms ease, border-color 200ms ease;
  opacity: 0.55;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle::before {
  content: '';
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: auto;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ============ mobile ============ */
@media (max-width: 480px) {
  .wordmark { font-size: 32px; letter-spacing: 6px; }
  .subtitle { font-size: 11px; letter-spacing: 3.5px; }
  .contact__value { white-space: normal; }
}
