/* emil-design-eng: custom ease-out, press scale, shadow surfaces, contrast floor. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/f0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/f0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/f0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 460;
  font-display: swap;
  src: url(/fonts/f1.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/f2.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/f2.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ink: #081311;
  --foam: #f4f1ea;
  --label: #9a9d98;
  --quiet: #adaea9;
  --body: #c0c0ba;
  --soft: #d8d6d0;
  --gold: #f0d48a;
  --lagoon: #3ee0c0;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --background: var(--ink);
  --foreground: var(--foam);
}

html,
body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--foam);
  overscroll-behavior: none;
}

body {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-optical-sizing: auto;
}

.italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 460;
}

.bg-ink.min-h-full {
  min-height: 100dvh;
  background:
    radial-gradient(980px 460px at 8% -12%, rgba(62, 224, 192, 0.16), transparent 58%),
    radial-gradient(720px 380px at 100% -6%, rgba(240, 212, 138, 0.08), transparent 52%),
    var(--ink);
}

.orb {
  opacity: 0.42;
}

header.sticky {
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 19, 17, 0.78);
  border-bottom-color: rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(18px);
}

header a span.bg-lagoon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 4px rgba(62, 224, 192, 0.14);
}

nav a {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

nav a:active {
  transform: scale(0.97);
}

nav a[aria-current="page"] {
  background: rgba(62, 224, 192, 0.14);
  color: var(--foam);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 192, 0.32);
}

main#content {
  padding-top: 2.25rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

h1.font-serif {
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1.leading-\[1\.02\] {
  font-size: clamp(2.65rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2.font-serif,
h3.font-serif {
  letter-spacing: -0.025em;
}

.tracking-\[0\.28em\],
.tracking-widest {
  letter-spacing: 0.14em;
  font-weight: 600;
}

.text-foam\/40,
.text-foam\/45 {
  color: var(--label);
}

.text-foam\/50,
.text-foam\/55 {
  color: var(--quiet);
}

.text-foam\/60,
.text-foam\/65 {
  color: var(--body);
}

.text-foam\/70,
.text-foam\/75 {
  color: var(--soft);
}

.text-gold {
  color: var(--gold);
}

.text-lagoon {
  color: #8cf3df;
}

input::placeholder,
textarea::placeholder {
  color: var(--quiet) !important;
}

a.rounded-full.bg-lagoon,
button.rounded-full.bg-lagoon,
button.rounded-full.bg-gold,
header a.rounded-full.bg-gold,
a.rounded-full.border,
button.rounded-full.border {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 140ms var(--ease-out), filter 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

a.rounded-full.bg-lagoon,
button.rounded-full.bg-lagoon {
  background: linear-gradient(180deg, #6af0d4, #2ed3b4);
  color: #06221c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 22px -14px rgba(46, 211, 180, 0.95);
}

header a.rounded-full.bg-gold,
button.rounded-full.bg-gold {
  background: linear-gradient(180deg, #f6de9e, #e2b85a);
  color: #1a1408;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px -12px rgba(226, 184, 90, 0.95);
}

a.rounded-full.border,
button.rounded-full.border {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

a.rounded-full.bg-lagoon:active,
button.rounded-full.bg-lagoon:active,
button.rounded-full.bg-gold:active,
header a.rounded-full.bg-gold:active,
a.rounded-full.border:active,
button.rounded-full.border:active {
  transform: scale(0.97);
}

button:disabled {
  transform: none;
}

.rounded-2xl.border,
.rounded-3xl.border {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(244, 241, 234, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 44px -30px rgba(0, 0, 0, 0.9);
}

.rounded-3xl.border.grid-spots {
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.border-l-4.border-l-lagoon {
  border-left-width: 4px;
  border-left-color: var(--lagoon);
}

.rounded-3xl .castid-empty {
  border: 0;
  background: transparent;
  padding: 1.75rem 0.25rem;
}

section.lg\:grid-cols-\[1\.15fr_0\.85fr\] {
  gap: 2rem;
}

section.lg\:grid-cols-\[1\.15fr_0\.85fr\] > .border-l-4 dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

section.lg\:grid-cols-\[1\.15fr_0\.85fr\] > .border-l-4 dd {
  margin-top: 0.25rem;
}

section.lg\:grid-cols-\[1\.15fr_0\.85fr\] > .border-l-4 dd.text-gold {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
}

a.group .aspect-\[16\/10\] > div {
  background-image:
    radial-gradient(circle at 16% 18%, rgba(62, 224, 192, 0.5), transparent 56%),
    linear-gradient(165deg, rgba(18, 64, 56, 0.35), rgba(8, 19, 17, 0.05));
}

a.group .aspect-\[16\/10\] p.font-serif {
  font-size: clamp(1.85rem, 2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}

a.group:has(.aspect-\[16\/10\] p.font-serif) h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a.group .absolute.right-3 {
  background: rgba(8, 19, 17, 0.82);
  box-shadow: inset 0 0 0 1px rgba(240, 212, 138, 0.35);
  font-variant-numeric: tabular-nums;
}

section.grid article p.text-xs.text-gold {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.h-1\.5.rounded-full {
  height: 0.4rem;
}

.h-1\.5.rounded-full > .bg-lagoon {
  background: linear-gradient(90deg, #2ed3b4, #f0d48a);
}

input.rounded-full,
input.rounded-xl,
select.rounded-full,
textarea.rounded-2xl,
textarea.rounded-xl {
  background-color: rgba(8, 19, 17, 0.55);
  border-color: rgba(244, 241, 234, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.castid-empty {
  display: block;
  border-radius: 1.25rem;
  border: 1px dashed rgba(244, 241, 234, 0.22);
  background: rgba(255, 255, 255, 0.03);
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--body);
  line-height: 1.55;
}

.castid-loading {
  color: var(--quiet);
}

.animate-pulse {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  animation: none;
}

.animate-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: translateX(-100%);
  animation: castid-shimmer 1.05s var(--ease-out) infinite;
}

footer {
  color: var(--label);
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--foam);
  outline-offset: 3px;
}

@keyframes castid-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > .space-y-8 > section {
  animation: castid-rise 280ms var(--ease-out) backwards;
}

main > .space-y-8 > section:nth-child(2) {
  animation-delay: 40ms;
}

main > .space-y-8 > section:nth-child(3) {
  animation-delay: 80ms;
}

@media (min-width: 64rem) {
  main#content {
    padding-top: 2.5rem;
  }

  section.lg\:grid-cols-\[1\.15fr_0\.85fr\] {
    align-items: stretch;
    gap: 2.75rem;
  }

  section.lg\:grid-cols-\[1\.15fr_0\.85fr\] > .border-l-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  section.lg\:grid-cols-\[1\.15fr_0\.85fr\] > .border-l-4 dl {
    margin-top: auto;
    padding-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  nav[aria-label="Sections"] {
    margin: 0 0.75rem 0.55rem;
    padding: 0.2rem;
    gap: 0.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.08);
    scrollbar-width: none;
  }

  nav[aria-label="Sections"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="Sections"] a {
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  a.group.overflow-hidden.rounded-2xl,
  a.rounded-2xl.border {
    transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
  }

  a.group.overflow-hidden.rounded-2xl:hover,
  a.rounded-2xl.border:hover {
    transform: translateY(-3px);
  }
}

a.group.overflow-hidden.rounded-2xl:active,
a.rounded-2xl.border:active {
  transform: scale(0.985);
}

@media (pointer: coarse) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse::after,
  main > .space-y-8 > section {
    animation: none;
    transform: none;
  }

  .orb {
    display: none;
  }
}
