:root {
  --night: #18243A;
  --steel: #344967;
  --silver: #A8B5C6;
  --pearl: #E9E9E5;
}

html {
  @media (prefers-reduced-motion: reduce) {
    scroll-behavior: auto;
  }
}

body {
  background: var(--night);
  color: var(--pearl);
  font-family: Inter, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.cover-locked {
  overflow: hidden;
  height: 100dvh;
}

h1,
h2,
h3,
.serif {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 400;
}

.lattice {
  background-image: repeating-linear-gradient(45deg, rgba(168, 181, 198, 0.07) 0 1px, transparent 1px 38px),
                    repeating-linear-gradient(-45deg, rgba(168, 181, 198, 0.07) 0 1px, transparent 1px 38px);
}

.metal {
  height: 1px;
  background: linear-gradient(90deg, transparent, #A8B5C6 25%, #E9E9E5 50%, #A8B5C6 75%, transparent);
}

.metal-l {
  height: 1px;
  background: linear-gradient(90deg, #E9E9E5, #A8B5C6 40%, transparent);
}

.metal-v {
  width: 1px;
  background: linear-gradient(180deg, transparent, #A8B5C6 30%, #E9E9E5 50%, #A8B5C6 70%, transparent);
}

.metal-text {
  background: linear-gradient(100deg, #A8B5C6 0%, #E9E9E5 38%, #A8B5C6 62%, #E9E9E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ghost {
  -webkit-text-stroke: 1px rgba(168, 181, 198, 0.45);
  color: transparent;
  font-family: 'Bodoni Moda', Georgia, serif;
  line-height: 0.8;
  user-select: none;
}

.panel {
  background: linear-gradient(160deg, rgba(52, 73, 103, 0.75), rgba(52, 73, 103, 0.35));
  border: 1px solid rgba(168, 181, 198, 0.35);
}

.dia {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--silver);
  transform: rotate(45deg);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 2.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.btn-silver {
  background: var(--pearl);
  color: var(--night);
}

.btn-silver:hover {
  background: var(--silver);
}

.btn-line {
  border: 1px solid var(--silver);
  color: var(--pearl);
}

.btn-line:hover {
  background: var(--silver);
  color: var(--night);
}

.btn-dark {
  background: var(--night);
  color: var(--pearl);
}

.btn-dark:hover {
  background: var(--steel);
}

.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(168, 181, 198, 0.6);
  padding: 0.7rem 0.1rem;
  font-size: 0.95rem;
  color: inherit;
  border-radius: 0;
}

.field:focus {
  outline: none;
  border-bottom-color: var(--pearl);
}

.field option {
  color: #18243A;
}

.light .field {
  border-bottom-color: rgba(24, 36, 58, 0.45);
}

.light .field:focus {
  border-bottom-color: var(--night);
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.light :focus-visible {
  outline-color: var(--night);
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;

  @media (prefers-reduced-motion: reduce) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

#opening-cover {
  transition: opacity 1s ease, visibility 1s, clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1);
  clip-path: inset(0 0 0 0);

  @media (prefers-reduced-motion: reduce) {
    transition: opacity 0.2s ease, visibility 0.2s;
  }
}

#opening-cover.cover-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);

  @media (prefers-reduced-motion: reduce) {
    clip-path: none;
  }
}

.spin {
  animation: rahmahSpin 90s linear infinite;
  transform-origin: 50% 50%;

  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

@keyframes rahmahSpin {
  to {
    transform: rotate(360deg);
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--night);
}

::-webkit-scrollbar-thumb {
  background: var(--steel);
}

