/* VirTus · em construção
   Layout: night sky, two columns (copy left, ecliptic wheel right); one column on phones.
   Tokens from brand/tokens.json (Calcário & Céu, night). Single night theme by design. */

@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --noite: #101A38;
  --noite-surface: #17234A;
  --linha-noite: #2A3A68;
  --marfim: #F5F0E6;
  --tinta-suave: #B4BCD3;
  --ouro: #D2AE62;

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Cormorant Garamond", Garamond, Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  color-scheme: dark;
}

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

html { height: 100%; background: var(--noite); }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 72% 42%, var(--noite-surface) 0%, rgba(16, 26, 56, 0) 70%),
    var(--noite);
  color: var(--marfim);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 76rem;
  margin: 0 auto;
  padding-block: max(1.25rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; border-radius: 4px; }
.lockup { width: clamp(7.5rem, 6rem + 6vw, 10rem); height: auto; display: block; }

.langs { display: inline-flex; gap: 0.25rem; }
.lang {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--tinta-suave);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.lang:hover { color: var(--marfim); }
.lang[aria-pressed="true"] { color: var(--marfim); border-color: var(--linha-noite); }

/* Main */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.copy { display: grid; gap: 1.4rem; max-width: 34rem; }

.eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ouro);
}

h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.number {
  margin: 0;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1.2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--ouro);
}

.status {
  margin: 0.4rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  border: 1px solid var(--linha-noite);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ouro);
  box-shadow: 0 0 0 0 rgba(210, 174, 98, 0.55);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210, 174, 98, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(210, 174, 98, 0); }
}

.contact { display: grid; gap: 0.2rem; }
.contact-label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.mail {
  justify-self: start;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
  color: var(--marfim);
  text-decoration: underline;
  text-decoration-color: var(--ouro);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
  border-radius: 2px;
}
.mail:hover { color: var(--ouro); }

/* Wheel */
.sky { margin: 0; display: grid; gap: 1rem; justify-items: center; }
.wheel { width: min(100%, 26rem); height: auto; display: block; overflow: visible; }

.ring-guide { fill: none; stroke: var(--linha-noite); stroke-width: 1; }
.seg { fill: none; stroke-width: 14; }
.seg-a { stroke: var(--marfim); stroke-opacity: 0.82; }
.seg-b { stroke: var(--tinta-suave); stroke-opacity: 0.42; }
.seg-oph { stroke: var(--ouro); }

.spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: turn 360s linear infinite;
}
@keyframes turn { to { transform: rotate(-360deg); } }

.caption {
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1.05rem;
  text-align: center;
  text-wrap: balance;
  max-width: 26rem;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 26rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--tinta-suave);
  font-variant-numeric: tabular-nums;
}
.legend li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(42, 58, 104, 0.7);
}
.legend .oph { color: var(--ouro); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linha-noite);
}
.tagline { margin: 0; font-style: italic; font-size: 1.15rem; }
.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--tinta-suave);
}

/* Focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 3px;
}

/* Phones and narrow tablets */
@media (max-width: 860px) {
  .main { grid-template-columns: minmax(0, 1fr); }
  .copy { max-width: none; }
  .wheel { width: min(100%, 21rem); }
}

@media (prefers-reduced-motion: reduce) {
  .spin, .dot { animation: none; }
}
