@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400&family=Work+Sans:wght@400;500&display=swap');

@font-face {
  font-family: 'Glasket';
  src: url('/fonts/Glasket-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-1:  #57565c;
  --ink-2:  #2c2b30;
  --fg:     #f4f2ee;
  --muted:  #b0aeb5;
  --line:   rgba(244, 242, 238, 0.16);
  --glow:   rgba(244, 242, 238, 0.35);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 400;
  color: var(--muted);
  background-color: var(--ink-2);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-breathe {
  background: radial-gradient(ellipse at 50% 60%, var(--ink-1) 0%, var(--ink-2) 70%);
  animation: bg-breathe 16s ease-in-out infinite;
}

@keyframes bg-breathe {
  0%   { background: radial-gradient(ellipse at 50% 60%, var(--ink-1) 0%, var(--ink-2) 70%); }
  50%  { background: radial-gradient(ellipse at 50% 40%, var(--ink-2) 0%, var(--ink-1) 80%); }
  100% { background: radial-gradient(ellipse at 50% 60%, var(--ink-1) 0%, var(--ink-2) 70%); }
}

.wordmark {
  font-family: 'Glasket', 'Jost', sans-serif;
  font-weight: 500;
  font-size: clamp(4.5rem, 9vw, 7rem);
  letter-spacing: 0.01em;
  color: var(--fg);
  line-height: 1;
}

.coming-soon {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.12em;
}

.coming-soon .cs-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

.coming-soon.glow-idle {
  animation: cs-glow 5s ease-in-out infinite;
}

@keyframes cs-glow {
  0%, 100% { text-shadow: 0 0  6px rgba(244, 242, 238, 0); }
  50%       { text-shadow: 0 0 22px var(--glow); }
}

.contact-row {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.contact-row a {
  transition: color 180ms ease;
}

.contact-row a:hover,
.contact-row a:focus-visible {
  color: var(--fg);
  outline: none;
}

.divider {
  width: 100%;
  max-width: 280px;
  height: 1px;
  background: var(--line);
  border: none;
}

.page-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.home-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
  width: 100%;
}

.home-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding-top: 1.5rem;
}

.page-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
  background-color: var(--ink-2);
  animation: page-fadein 180ms ease both;
}

@keyframes page-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.links-inner {
  width: 100%;
  max-width: 480px;
}

.back-link {
  font-family: 'Glasket', 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 2.5rem;
  transition: color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--fg);
  outline: none;
}

.links-heading {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(2.125rem, 5vw, 2.625rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.links-tagline {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: normal;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.links-list {
  list-style: none;
  width: 100%;
}

.links-list li {
  border-top: 1px solid var(--line);
}

.links-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.link-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 0;
  width: 100%;
  cursor: pointer;
  transition: color 180ms ease;
  color: var(--muted);
}

.link-row:hover,
.link-row:focus-visible {
  color: var(--fg);
  outline: none;
}

.link-index {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.55;
}

.link-name {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(1.1875rem, 3vw, 1.375rem);
  letter-spacing: 0.01em;
  color: inherit;
}

.link-arrow {
  font-size: 1rem;
  color: inherit;
  opacity: 0.6;
  transition: transform 180ms ease, opacity 180ms ease;
}

.link-row:hover .link-arrow,
.link-row:focus-visible .link-arrow {
  transform: translateX(3px);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bg-breathe {
    animation: none;
    background: var(--ink-2);
  }

  .coming-soon .cs-letter {
    opacity: 1;
    transform: none;
  }

  .coming-soon.glow-idle {
    animation: none;
    text-shadow: none;
  }

  .page-links {
    animation: none;
    opacity: 1;
  }

  .link-arrow {
    transition: none;
  }

  .contact-row a,
  .back-link,
  .link-row {
    transition: none;
  }
}
