.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  background: var(--sign-bg);
  color: var(--sign-ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid rgba(244, 239, 228, 0.16);
}

.page-home .site-header {
  padding-bottom: 0;
}

.header-inner {
  display: grid;
  gap: var(--space-4);
}

.header-top,
.header-tools,
.site-nav ul,
.footer-nav,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.header-top {
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--header-ink);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  text-decoration: none;
}

.logo:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


.site-nav ul,
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-1);
  color: var(--header-ink);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -4px 0 #f3d27a;
}

.menu-toggle {
  position: relative;
}

.nav-check {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nav-check:focus {
  outline: none;
}

.menu-close-label,
.when-dark {
  display: none;
}

.menu-toggle:has(.nav-check:checked) .menu-open-label {
  display: none;
}

.menu-toggle:has(.nav-check:checked) .menu-close-label {
  display: inline;
}

.menu-toggle:has(.nav-check:checked) {
  background: var(--stone-hover);
}

.menu-toggle:has(.nav-check:focus-visible) {
  outline: 3px solid var(--focus-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-ink);
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
  }

  .header-inner:has(.nav-check:checked) .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .header-tools .menu-toggle {
    display: none;
  }
}

[data-theme="dark"] .when-light {
  display: none;
}

[data-theme="dark"] .when-dark {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-light {
    display: none;
  }

  :root:not([data-theme="light"]) .when-dark {
    display: inline;
  }
}

.ip-sign {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}

.ip-label {
  font-size: var(--text-sm);
}

.ip-value {
  font-size: var(--text-lg);
  line-height: 1.3;
  overflow-wrap: anywhere;
  user-select: all;
}

.ip-sign .button {
  width: 100%;
}

@media (min-width: 768px) {
  .ip-sign {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .ip-value {
    flex: 1 1 12rem;
  }

  .ip-sign .button {
    width: auto;
    margin-left: auto;
  }
}

.site-header .ip-sign {
  border-color: rgba(244, 239, 228, 0.28);
  color: var(--header-ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 22rem;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-7);
  background: #10141c;
  color: #f4efe4;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.15), rgba(16, 20, 28, 0.78)),
    linear-gradient(90deg, rgba(16, 20, 28, 0.88) 0%, rgba(16, 20, 28, 0.42) 70%, rgba(16, 20, 28, 0.2) 100%);
}

.eyebrow {
  color: #f3d27a;
  font-size: var(--text-md);
}

.lede {
  max-width: 40rem;
  font-size: var(--text-lg);
}

.hero .placeholder {
  border-left-color: #f3d27a;
  color: var(--header-ink);
}

.button {
  --btn-bg: var(--stone);
  --btn-ink: var(--stone-ink);
  --btn-hover: var(--stone-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.button:hover {
  background: var(--btn-hover);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-hover: var(--accent-hover);
}

.button-text {
  --btn-bg: transparent;
  --btn-ink: var(--link);
  --btn-hover: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button-text:hover,
.button-text:active {
  background: transparent;
  box-shadow: none;
  text-decoration-thickness: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button:focus-visible {
  outline: 3px solid var(--focus-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-ink);
}

.button-text:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ink);
}

.panel {
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-5);
  border: 1px solid var(--line);
}

.placeholder {
  border-left: 4px solid var(--gold);
  padding-left: var(--space-3);
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.menu-list li {
  padding-block: var(--space-4);
  border-top: 2px solid var(--bevel-dark);
}

.slot {
  display: block;
  width: 48px;
  height: 48px;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.35),
    inset -3px -3px 0 rgba(0, 0, 0, 0.45);
}

.slot-dust { background: #7a6a58; }
.slot-earth { background: linear-gradient(#5d9c37 0 46%, #6b4423 46%); }
.slot-mars { background: #a34528; }
.slot-moon { background: #d5d8df; }
.slot-jupiter {
  background: linear-gradient(
    #f0d7a2 0 22%,
    #c47a3a 22% 40%,
    #f3e6c4 40% 58%,
    #a85a32 58% 78%,
    #e7c98a 78%
  );
}
.slot-galaxy {
  background-color: #1c2433;
  background-image:
    radial-gradient(1.5px 1.5px at 30% 35%, #f3d27a 50%, transparent 52%),
    radial-gradient(1px 1px at 68% 62%, #f4efe4 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 72%, #f4efe4 50%, transparent 52%);
}

.kicker {
  color: var(--gold);
  font-size: var(--text-sm);
}

.plain-list {
  margin: 0;
  padding-left: 1.25rem;
}

.plain-list li + li {
  margin-top: var(--space-2);
}

main a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

main a:hover {
  text-decoration-thickness: 2px;
}

main a.button {
  text-decoration: none;
}

.form {
  display: grid;
  gap: var(--space-4);
  max-width: 36rem;
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label,
.check-field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: var(--text-sm);
}

.field-error {
  color: var(--danger);
  font-weight: 700;
}

.check-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}

.check-field input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.check-field input:focus-visible {
  outline: 3px solid var(--focus-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ink);
}

.site-footer {
  padding: var(--space-6) 0 var(--space-8);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-name {
  font-size: var(--text-xl);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  text-underline-offset: 0.15em;
}

.footer-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -4px 0 var(--gold);
}

a:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--focus-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-ink);
}

@media (forced-colors: active) {
  .button,
  .panel,
  .ip-sign,
  .slot {
    border: 1px solid CanvasText;
  }
}
