:root {
  --ink: #15161a;
  --muted: #5f646d;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #d7dde4;
  --night: #080b12;
  --rubin-red: #b7282e;
  --sunset: #f0b84f;
  --cyan: #177d8f;
  --violet: #5c4b8b;
  --shadow: 0 18px 50px rgba(8, 11, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(23, 125, 143, 0.35);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rubin-red);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: conic-gradient(from 210deg, var(--rubin-red), var(--sunset), var(--cyan), var(--violet), var(--rubin-red));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.02rem;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.72rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: #e9eef4;
  color: var(--rubin-red);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-hero {
  min-height: calc(72vh - 72px);
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.62), rgba(8, 11, 18, 0.28) 55%, rgba(8, 11, 18, 0.04)),
    url("../img/rubin-milky-way.jpg") center 42% / cover no-repeat;
  color: #ffffff;
}

.hero-overlay {
  min-height: calc(72vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.card-kicker,
.item-meta {
  margin: 0 0 0.7rem;
  color: var(--rubin-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: var(--sunset);
}

.home-hero h1 {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.8rem, 11vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.hero-title .hero-title-nowrap {
  display: inline-block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 680px;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.button-primary {
  background: var(--rubin-red);
  border-color: var(--rubin-red);
}

.button-secondary {
  background: rgba(8, 11, 18, 0.32);
}

.construction-callout {
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--sunset);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.54);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 700;
}

.content-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.22rem;
}

.prose {
  font-size: 1.04rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-top: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(8, 11, 18, 0.06);
}

.feature-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.feature-card p {
  color: var(--muted);
}

.feature-card a {
  margin-top: auto;
  font-weight: 800;
}

.page-hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(8, 11, 18, 0.66), rgba(49, 37, 71, 0.36)),
    url("../img/rubin-milky-way.jpg") center 38% / cover no-repeat;
}

.page-hero--image {
  padding: 0;
  background: var(--night);
}

.page-hero--image img {
  display: block;
  width: 100%;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.page-hero .lede {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-title-section {
  padding: clamp(2.2rem, 5vw, 3.8rem) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-title-section h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}

.page-title-section .lede {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.prose figure {
  margin: 1.5rem 0 2rem;
}

.prose figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(8, 11, 18, 0.08);
}

.prose figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.item-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.list-item {
  padding: 1.2rem;
}

.list-item h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.list-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.list-item .item-meta {
  margin: 0 0 0.55rem;
  color: var(--violet);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.inline-links a,
.inline-links span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef4f5;
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-links a {
  text-decoration: none;
}

.inline-links span {
  color: var(--muted);
}

.document-links {
  display: block;
  margin-top: 0.85rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.document-links li + li {
  margin-top: 0.35rem;
}

.document-links a,
.document-links span {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
}

.document-links a {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
}

.site-footer p {
  margin: 0.2rem 0;
}

.fine-print {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-nav {
    min-height: auto;
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .home-hero,
  .hero-overlay {
    min-height: 66vh;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .wrap,
  .site-nav,
  .footer-inner {
    width: min(100% - 1.25rem, 1120px);
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .nav-list a {
    padding-inline: 0.5rem;
    font-size: 0.9rem;
  }

  .home-hero h1 {
    font-size: 3.4rem;
  }
}

@media (max-width: 360px) {
  .home-hero h1 {
    font-size: 3rem;
  }
}

/* Rubin 2036 workshop agenda */
.agenda-day {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.1rem;
}

.agenda-day .agenda-sub {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.agenda-day .agenda-sub::before {
  content: "— ";
}

.agenda-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.35;
}

.agenda-table th,
.agenda-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.38rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.agenda-table thead th {
  color: var(--violet);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--line);
}

.agenda-table tbody tr:nth-child(odd) {
  background: var(--paper);
}

.agenda-table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  width: 1%;
}

.agenda-table td:last-child {
  color: var(--muted);
}
