@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,560;0,9..144,680;1,9..144,560&family=IBM+Plex+Mono:wght@500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,560;1,6..72,450&family=Schibsted+Grotesk:wght@500;700&display=swap');

:root {
  --bg-primary: #C6C6C6;
  --bg-secondary: #B3B3B3;
  --bg-card: #E7E7E7;
  --text-primary: #1A1A1A;
  --text-secondary: #2E2E2E;
  --accent: #2A2A2A;
  --accent-warm: #8A6232;
  --border-color: #8F8F8F;
  --dark-block: #2A2A2A;
  --dark-text: #F3F3F3;
  --container-max: 1120px;
  --dock-height: 62px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --text: "Newsreader", "Iowan Old Style", Palatino, serif;
  --ui: "Schibsted Grotesk", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.65;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding-bottom: calc(var(--dock-height) + 32px);
  overflow-x: hidden;
}

h1, h2, .rank-square, .registry-header h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3.15rem;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}

h2 {
  font-size: 2.15rem;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-variation-settings: "opsz" 36;
}

h3 {
  font-family: var(--ui);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

p, .card-desc, .clean-list li, .caption, .registry-summary {
  font-family: var(--text);
  font-weight: 400;
}

p {
  font-size: 1.14rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

p.lead {
  font-size: 1.38rem;
  font-weight: 450;
  font-style: italic;
  line-height: 1.48;
  color: var(--text-primary);
  max-width: 44rem;
}

.date-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 250ms ease-out;
}

p a, .card-desc a, .clean-list a {
  text-decoration: underline;
}

a:hover {
  color: var(--accent-warm);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.28rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--dark-block);
  color: var(--dark-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--ui);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 250ms ease-out, color 250ms ease-out, border-color 250ms ease-out, transform 250ms ease-out;
  white-space: nowrap;
}

.btn-primary {
  background-color: #3A3A3A;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-warm);
  color: #1A1A1A;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.btn-sm {
  height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 32px;
  max-width: 48rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.safety-banner {
  background-color: var(--dark-block);
  color: var(--dark-text);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.safety-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 620px;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 10px;
  background-color: var(--accent-warm);
  color: #1A1A1A;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.safety-banner p {
  color: var(--dark-text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.safety-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.safety-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 243, 243, 0.28);
  color: var(--dark-text);
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.safety-link:hover {
  border-color: var(--accent-warm);
  color: #E2C4A0;
}

.media-frame {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 14px 8px;
  margin-top: 28px;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.caption {
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 12px 6px 6px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 22px;
  display: grid;
  grid-template-columns: 48px 168px 1fr auto;
  align-items: start;
  gap: 20px;
  transition: border-color 250ms ease-out, transform 250ms ease-out;
}

.stack-card:hover {
  border-color: #4A4A4A;
  transform: translateY(-2px);
}

.stack-card.simple-card {
  grid-template-columns: 48px 1fr auto;
}

.rank-square {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--dark-block);
  color: var(--dark-text);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.operator-logo-box {
  width: 168px;
  height: 148px;
  background-color: #B9B9B9;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.operator-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  min-width: 0;
}

.card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.card-title-row h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
}

.license-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  background-color: #D5D5D5;
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.68;
}

.card-desc:last-child {
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #1A1A1A;
  background-color: #D8D8D8;
  border: 1px solid #8A8A8A;
  padding: 6px 10px;
  border-radius: 8px;
}

.status-pill.warm {
  color: #3E2A12;
  background-color: #E4D2BC;
  border-color: #8A6232;
}

.info-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.info-panel h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  margin-bottom: 12px;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--accent-warm);
}

.registry-footer {
  background-color: var(--dark-block);
  color: var(--dark-text);
  padding: 52px 0 32px;
  margin-top: 64px;
}

.registry-header {
  margin-bottom: 22px;
  max-width: 46rem;
}

.registry-header h2 {
  color: var(--dark-text);
  font-size: 2rem;
  margin-bottom: 8px;
}

.registry-header p {
  color: #D5D5D5;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.registry-rows {
  border-top: 1px solid rgba(243, 243, 243, 0.18);
}

.registry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(243, 243, 243, 0.18);
  color: var(--dark-text);
  text-decoration: none;
  transition: background-color 250ms ease-out;
}

.registry-row:hover {
  background-color: rgba(243, 243, 243, 0.05);
  color: var(--dark-text);
}

.registry-name {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1.02rem;
  min-width: 250px;
  color: var(--dark-text);
}

.registry-summary {
  font-size: 1.02rem;
  color: #D0D0D0;
  flex: 1;
  line-height: 1.5;
}

.registry-arrow {
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: #E2C4A0;
  white-space: nowrap;
}

.footer-bottom-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-family: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #D0D0D0;
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-mini-links a {
  font-family: var(--ui);
  color: #E6E6E6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-mini-links a:hover {
  color: #E2C4A0;
}

.bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 720px;
  height: 62px;
  background-color: var(--dark-block);
  border: 1px solid rgba(243, 243, 243, 0.18);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.28);
  transition: padding 250ms ease-out, gap 250ms ease-out;
}

.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--dark-text);
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 250ms ease-out, color 250ms ease-out, padding 250ms ease-out;
}

.dock-item:hover {
  background-color: rgba(243, 243, 243, 0.1);
  color: var(--dark-text);
}

.dock-item.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
}

.dock-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.dock-label {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  transition: max-width 250ms ease-out, opacity 250ms ease-out;
}

.bottom-dock.compact .dock-label {
  max-width: 0;
  opacity: 0;
}

.bottom-dock.compact .dock-item {
  gap: 0;
  padding: 0 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .stack-card {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .operator-logo-box {
    grid-column: 2;
    width: 100%;
    max-width: 220px;
    height: 150px;
  }

  .card-body {
    grid-column: 1 / -1;
  }

  .card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .stack-card.simple-card {
    grid-template-columns: 48px 1fr;
  }

  .stack-card.simple-card .card-actions {
    grid-column: 2;
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
  }

  .registry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .registry-name {
    min-width: 0;
  }

  body {
    padding-bottom: 108px;
  }

  .bottom-dock {
    left: 6px;
    right: 6px;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    padding: 6px 3px;
    gap: 2px;
    justify-content: stretch;
    align-items: stretch;
    overflow: visible;
  }

  .dock-item,
  .bottom-dock.compact .dock-item {
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    height: auto;
    min-height: 56px;
    padding: 7px 1px 6px;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow: visible;
    white-space: nowrap;
  }

  .dock-item.active {
    font-weight: 700;
  }

  .dock-icon {
    width: 16px;
    height: 16px;
  }

  .dock-label,
  .bottom-dock.compact .dock-label {
    display: block;
    max-width: none;
    opacity: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  .dock-item,
  .bottom-dock.compact .dock-item,
  .dock-label,
  .bottom-dock.compact .dock-label {
    font-size: 9.5px;
    letter-spacing: -0.045em;
  }
}
