/* Tokens are the demo's (frontend/src/index.css in the orientaai repo). */
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --cream: hsl(43 25% 96%);
  --ink: hsl(220 40% 12%);
  --ink-soft: hsl(220 18% 42%);
  --balsamic: hsl(220 60% 22%);
  --gold: hsl(42 52% 52%);
  --navy: #0D1B3E;
  --gutter: clamp(24px, min(6vw, 8vh), 88px);
}

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

html, body { min-height: 100%; }

body {
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(13, 27, 62, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(13, 27, 62, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 17px 17px;
  background-position: 0 0, 8px 8px;
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(56px, 12vh, 140px);
}

.wordmark {
  display: block;
  width: min(100%, 1180px, 130vh);
  height: auto;
  overflow: visible;
}

.wordmark text {
  fill: var(--navy);
  font-family: "Cormorant", "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 93 7.5;
}

.dot { fill: var(--navy); }

.statement { max-width: 40rem; }

h1 {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--balsamic);
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

p {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.contact { color: var(--ink); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--balsamic);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The one moment on the page: the O draws itself and the dot lands at its opening. */
@media (prefers-reduced-motion: no-preference) {
  .ring { animation: draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .dot { animation: land 0.3s ease-out 1s both; }
}

@keyframes draw {
  from { stroke-dasharray: 0 100.5; }
  to { stroke-dasharray: 93 7.5; }
}

@keyframes land {
  from { opacity: 0; transform: scale(0.4); transform-origin: 20px 4.2px; }
  to { opacity: 1; transform: scale(1); transform-origin: 20px 4.2px; }
}
