:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #222226;

  --text: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;

  --border: #2f2f35;
  --gold: #d6a84f;
  --gold-soft: rgba(214, 168, 79, 0.28);

  --radius: 0.75rem;
  --space: clamp(1rem, 2vw, 2rem);
  --max: 72rem;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

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

html {
  color-scheme: dark;
  font-family: var(--font);
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template:
    "nav nav" auto
    "header header" auto
    "aside main" 1fr
    "footer footer" auto
    / minmax(12rem, 18rem) minmax(0, 1fr);
  background:
    radial-gradient(circle at top, rgba(214, 168, 79, 0.08), transparent 24rem),
    var(--bg);
}

nav,
header,
aside,
main,
footer,
section,
article {
  border: 1px solid var(--border);
  background: var(--surface);
}

nav {
  grid-area: nav;
  padding: 1rem var(--space);
  border-width: 0 0 1px;
}

header {
  grid-area: header;
  padding: calc(var(--space) * 1.5) var(--space);
  border-width: 0 0 1px;
  background: var(--surface-2);
}

aside {
  grid-area: aside;
  padding: var(--space);
  border-width: 0 1px 0 0;
}

main {
  grid-area: main;
  padding: var(--space);
  border: 0;
  background: transparent;
}

footer {
  grid-area: footer;
  padding: 1rem var(--space);
  border-width: 1px 0 0;
  color: var(--muted);
  font-size: var(0.36rem);
}

container {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: var(--space);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

card {
  display: block;
  min-height: 10rem;
  padding: var(--space);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

card:hover,
card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0.75rem var(--gold-soft);
  transform: translateY(-1px);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin-block: 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p,
li,
dd {
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

button,
input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.66);
  padding: 0.65rem 0.8rem;
}

button {
  cursor: pointer;
}

button:hover,
button:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0.5rem var(--gold-soft);
}

code,
pre,
kbd,
samp {
  font-family: var(--mono);
}

pre {
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: #050507;
  border: 1px solid var(--border);
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: var(--space);
}

::selection {
  background: var(--gold);
  color: #000;
}

@media (max-width: 48rem) {
  body {
    grid-template:
      "nav" auto
      "header" auto
      "main" 1fr
      "aside" auto
      "footer" auto
      / 1fr;
  }

  aside {
    border-width: 1px 0 0;
  }
}