/* Shakespeare tribute — dark literary theme, 8px spacing base */
:root {
  --bg: #0a0a0d;
  --bg-elevated: #121218;
  --surface: #18181f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e6e1;
  --text-muted: #9490a3;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --glow: rgba(201, 162, 39, 0.09);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --max: 1120px;
  --narrow: 720px;
  --radius: 12px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(90, 70, 120, 0.06), transparent 45%);
  background-attachment: fixed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: #1a1508;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.inner.narrow {
  max-width: var(--narrow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 56px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-2);
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--accent-soft);
  }
}

.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.12), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw + 1rem, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 var(--space-4);
  max-width: 36ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__quote {
  margin: 0;
  padding: var(--space-3);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}

.hero__quote p {
  margin: 0 0 var(--space-1);
}

.hero__quote footer {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
}

.section {
  padding: var(--space-5) 0;
}

.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
}

.section__intro {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.narrow p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.narrow p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.work-col__label {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.work-list li:last-child {
  border-bottom: none;
}

.work-list__play {
  font-weight: 600;
}

.work-list__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sonnet {
  margin: 0 0 var(--space-3);
  padding: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-x: auto;
}

.sonnet-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer {
  padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--border);
}

.site-footer__inner p {
  margin: 0 0 var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: var(--narrow);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}
