:root {
  --night: #121E26;
  --deep: #182833;
  --stone: #E7E2D6;
  --weathered: #9DA9AF;
  --brass: #B89B5E;
  --display: "Lexend Exa", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Type scale: 14 / 17 / 24-30 / display. The lede and the name scale with the viewport. */
  --t-small: 14px;
  --t-body: 17px;
  --t-lede: clamp(24px, 0.8vw + 18px, 30px);
  --t-display: clamp(44px, 7.2vw, 112px);

  /* Spacing: an 8px scale, with fluid values for the page gutter and the large gaps */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --gutter: clamp(24px, 5vw, 80px);
  --gap-xl: clamp(48px, 7vw, 112px);

  /* Motion: short and quiet. Nothing overshoots. */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 200ms;
  --reveal: 300ms;
  --draw: 600ms;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--stone);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding: 0 var(--gutter);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) 0;
}

.wordmark {
  text-decoration: none;
  font-size: var(--t-body);
  letter-spacing: 0.005em;
}

.btn {
  text-decoration: none;
  border: 1px solid var(--brass);
  padding: 0 var(--s-3);
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: var(--t-small);
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-6) 0 var(--s-8);
}

.name {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 var(--gap-xl);
}

/* Keep "Texas Nationalist" on one line where it fits, so the name reads in two lines */
@media (min-width: 900px) {
  .name .line { white-space: nowrap; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6) var(--gap-xl);
  padding-top: var(--s-6);
  position: relative;
}

/* The brass rule over the record: drawn as a pseudo-element so it can draw in from the left */
.split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
  transform-origin: left center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lede {
  margin: 0;
  font-size: var(--t-lede);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 23ch;
  text-wrap: pretty;
}

.record { margin: calc(-1 * var(--s-2)) 0 0; }

.record div {
  display: grid;
  grid-template-columns: clamp(88px, 22vw, 140px) 1fr;
  gap: var(--s-2);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(184, 155, 94, 0.4);
}

.record a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(231, 226, 214, 0.45);
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease);
}

.record a:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

.record dt {
  color: var(--weathered);
  font-style: italic;
  font-size: var(--t-small);
}

.record dd { margin: 0; min-width: 0; overflow-wrap: break-word; }

.foot {
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(231, 226, 214, 0.15);
  color: var(--weathered);
  font-size: var(--t-small);
  letter-spacing: 0.01em;
}

.foot p { margin: 0; }

/* Load sequence */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .name { animation: rise var(--reveal) var(--ease) 80ms both; }
  .split::before { animation: draw var(--draw) var(--ease) 240ms both; }
  @media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lede { animation: rise var(--reveal) var(--ease) 420ms both; }
  .record div { animation: fade var(--reveal) var(--ease) both; }
  .record div:nth-child(1) { animation-delay: 480ms; }
  .record div:nth-child(2) { animation-delay: 540ms; }
  .record div:nth-child(3) { animation-delay: 600ms; }
  .record div:nth-child(4) { animation-delay: 660ms; }
}

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