:root {
  color-scheme: dark;
  --ink: #080808;
  --yellow: #ffd400;
  --yellow-hover: #ffe65a;
  --paper: #f4f4f1;
  --muted: #b4b3ab;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scrollbar-color: var(--yellow) var(--ink);
  scrollbar-width: thin;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  font-family: "Rajdhani", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

/* Carry the carbon texture and diagonal yellow accent of the main site. */
body::before {
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(45deg, #292925 25%, transparent 25%),
    linear-gradient(-45deg, #292925 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #292925 75%),
    linear-gradient(-45deg, transparent 75%, #292925 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

body::after {
  top: 0;
  bottom: 0;
  left: calc(50% + 12rem);
  width: clamp(6rem, 18vw, 18rem);
  border-inline: 1px solid #ffd40020;
  background: linear-gradient(180deg, #ffd40016, #ffd40003 75%);
  transform: skewX(-17deg);
  transform-origin: top;
}

::selection { color: var(--ink); background: var(--yellow); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--paper); outline-offset: 5px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.link-page {
  width: min(100%, 32rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}

.intro { margin-bottom: 1.75rem; text-align: center; }
.brand { display: block; width: fit-content; margin: 0 auto .625rem; }
.brand img { display: block; width: 10.5rem; height: auto; }

h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.875rem, 7.8vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span { color: var(--yellow); }
.intro p { margin: .75rem 0 0; color: var(--muted); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.link-list { display: grid; gap: .625rem; list-style: none; margin: 0; padding: 0; }

.link-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.125rem;
  padding: .65rem 1.25rem;
  color: var(--ink);
}

.link-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 160ms ease-out;
}

.link-button-primary { min-height: 4.875rem; margin-bottom: .25rem; }
.link-icon, .link-arrow {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-button-primary .link-icon { width: 1.875rem; height: 1.875rem; }
.link-copy { display: grid; gap: .1rem; min-width: 0; }
.link-copy strong { font: 700 1.375rem/1.05 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.link-copy > span { color: #423700; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.link-button-primary strong { font-style: italic; font-weight: 800; }
.link-button-primary .link-copy > span { font-size: .9375rem; letter-spacing: .02em; }
.link-arrow { width: 1.125rem; height: 1.125rem; margin-left: auto; transition: transform 160ms ease-out; }
.link-button:active::before { background: #efc600; }

@media (hover: hover) {
  .link-button:hover::before { background: var(--yellow-hover); }
  .link-button:hover .link-arrow { transform: translateX(3px); }
}

.footer { margin-top: 1.875rem; text-align: center; }
.footer-line { display: block; width: 2rem; height: 2px; margin: 0 auto .875rem; background: var(--yellow); }
.footer p { margin: 0 0 .375rem; font: italic 700 1.125rem/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.footer small { color: var(--muted); font-size: .625rem; font-weight: 600; letter-spacing: .16em; }

@media (min-width: 700px) {
  .link-page { padding-top: 2rem; padding-bottom: 2rem; }
}

@media (max-width: 359px) {
  .link-page { padding-inline: 1rem; }
  .link-button { gap: .75rem; padding-inline: 1rem; }
  .link-copy strong { font-size: 1.2rem; }
  .link-copy > span { font-size: .8125rem; }
  .link-button-primary .link-icon { width: 1.5rem; height: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
