:root {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #191916;
  --surface-raised: #20201c;
  --text: #f1f0eb;
  --muted: #b6b5ad;
  --subtle: #929188;
  --border: #34342e;
  --accent: #e4bc69;
  --accent-strong: #f0cb7b;
  --accent-ink: #17140e;
  --max-width: 900px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #fff;
  --surface-raised: #f2f0e9;
  --text: #22221f;
  --muted: #55554f;
  --subtle: #68675f;
  --border: #dfddd4;
  --accent: #805100;
  --accent-strong: #684100;
  --accent-ink: #fffdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 82% 0%, rgb(228 188 105 / 7%), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner,
.header-actions,
.primary-nav,
.theme-toggle {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 76px;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.gold,
.section-kicker {
  color: var(--accent);
}

.header-note,
.primary-nav,
.theme-toggle {
  color: var(--muted);
  font-size: 12px;
}

.header-note {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.header-actions {
  gap: 20px;
}

.primary-nav {
  gap: 18px;
}

.primary-nav a,
.site-footer a {
  transition: color 150ms ease;
}

.primary-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.theme-toggle {
  min-height: 40px;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.theme-icon {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}

.welcome {
  padding-block: clamp(88px, 13vw, 138px) clamp(72px, 10vw, 108px);
}

.eyebrow,
.portfolio-label,
.section-kicker,
.section-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.045em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(50px, 9vw, 84px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.welcome-description {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.85;
}

.portfolio-band {
  border-block: 1px solid var(--border);
}

.portfolio-link {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}

.portfolio-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.portfolio-link h2 {
  margin-bottom: 5px;
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.portfolio-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 20px;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.portfolio-link:hover .portfolio-arrow {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.section {
  padding-block: clamp(68px, 10vw, 100px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-count {
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 11px;
  text-transform: uppercase;
}

.website-list {
  border-top: 1px solid var(--border);
}

.website,
.website-main {
  display: flex;
  align-items: center;
}

.website {
  justify-content: space-between;
  gap: 25px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
  transition:
    padding 150ms ease,
    background-color 150ms ease;
}

.website:hover {
  padding-inline: 23px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.website-main {
  min-width: 0;
  gap: 18px;
}

.website-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 20px;
}

.website-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.website-name {
  font-size: 15px;
  font-weight: 700;
}

.website-description {
  color: var(--muted);
  font-size: 12px;
}

.website-arrow {
  flex-shrink: 0;
  color: var(--subtle);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p,
.footer-inner a {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.loading-message,
.load-error {
  padding-block: 24px;
  color: var(--muted);
}

.load-error h1 {
  font-size: clamp(32px, 6vw, 54px);
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 12px;
  }

  .header-note {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .primary-nav {
    gap: 12px;
  }

  .theme-toggle {
    width: 40px;
    padding-inline: 0;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .website {
    gap: 12px;
    padding-inline: 4px;
  }

  .website:hover {
    padding-inline: 8px;
  }

  .website-main {
    gap: 12px;
  }

  .website-description {
    max-width: 340px;
  }

}

@media (max-width: 480px) {
  .container {
    width: min(100% - 36px, var(--max-width));
  }

  .header-actions {
    gap: 8px;
  }

  .primary-nav {
    gap: 10px;
    font-size: 11px;
  }

  .footer-inner {
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
