/* Plain layer: square corners, opaque panels, one color per element, and page
   headers that are a heading and a rule rather than a full-height title panel. */
:root {
  --site-radius: 0;
  --site-hero-radius: 0;
  --site-hero-height: 0;
  --alpha-surface: 1;
  --surface-tint: 5%;
}

body.site-page { padding-top: 24px; }
body > canvas.seafloor { opacity: 0.62; }
html[data-theme="light"] body::before { opacity: 0.48; }
html[data-theme="light"] body > .daylight { opacity: 0.54; }

.wordmark { font-family: var(--font-icon); }
.eyebrow {
  margin-bottom: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* One color per element: an inline span never recolors part of a heading,
   link or sentence. Accents belong on whole elements. */
h1 span, h2 span, h3 span, h4 span,
p span, p b, a span, a b, a i,
strong span, summary span, button span,
.site-link span, .quiet-link span, .stat-unit { color: inherit; }

/* Two typefaces, applied strictly by role: Roboto Slab for headings and the
   site mark, Source Sans for everything else. No element mixes the two. */
h1, h2, h3, h4,
.wordmark, .wordmark-mark { font-family: var(--font-title); }
p, li, dt, dd, td, th, strong, b, em, small, time, figcaption, label,
span, a, button, input, select, textarea, summary { font-family: var(--font-content); }
h1 span, h2 span, h3 span, h4 span,
h1 a, h2 a, h3 a, h4 a,
.wordmark span { font-family: inherit; }
/* Classed elements that used to reach for the heading face on their own. */
.rating-score, .rating-title, .table-sort, .year-heading, .rec-callout,
.stat-strip strong, .progress-heading strong, .milestone-item strong,
.timeline-events strong, .about-timeline strong, .guide-grid strong,
.unlisted-link b, .unlisted-list strong, .release-summary,
.release-heading time { font-family: var(--font-content); }

/* Headings: one typeface, normal tracking, sizes that step down by level. */
h1, h2, h3, h4 { letter-spacing: 0; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); font-weight: 700; }

/* The page header. No panel, no fixed height: heading, intro, actions, then a
   rule. The page's mark sits beside it. */
.site-hero-copy h1,
.hero-copy h1,
.home-hero h1,
.mc-hero h1,
.rank-hero h1,
.about-hero h1 {
  margin: 0;
  font: 600 clamp(1.85rem, 3.4vw, 2.4rem) / 1.2 var(--font-title);
  letter-spacing: 0;
}
.home-hero,
.mc-hero,
.about-hero,
.rank-hero { box-shadow: none; }
.home-intro,
.rank-deck,
.mc-copy > p:not(.eyebrow),
.about-copy > p:not(.eyebrow) { max-width: 66ch; margin: 14px 0 0; font-size: 1rem; line-height: 1.65; }

.site-link { border-radius: 0; }
.site-link-primary { min-height: 43px; }
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 0 3px;
  color: var(--muted);
  font: 600 0.86rem var(--font-link);
  text-decoration-color: rgba(var(--page-accent-rgb, 180, 180, 180), 0.5);
  text-underline-offset: 5px;
}
.quiet-link:hover { color: var(--page-accent-bright, var(--ink)); }

/* Navigation stays quiet on desktop and becomes an explicit menu on phones. */
.mobile-section-menu { display: none; position: relative; }
.mobile-section-menu summary {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  font: 600 0.72rem var(--font-link);
  cursor: pointer;
  list-style: none;
}
.mobile-section-menu summary::-webkit-details-marker { display: none; }
.mobile-section-menu nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgb(var(--surface-start-rgb));
}
.mobile-section-menu nav a { padding: 9px 10px; color: var(--muted); text-decoration: none; }
.theme-toggle { border-radius: 0; }

/* Home: one introduction, then a compact list of profiles. */
.home-hero { min-height: 0; }
.home-hero .hero-copy { max-width: 720px; }
.hero-actions { flex-direction: row; width: auto; margin-top: 20px; }
.hero-actions > .site-link { width: auto; min-width: 175px; }
.home-elsewhere {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.home-elsewhere > span { color: var(--muted); font: 600 0.72rem var(--font-supertitle); text-transform: uppercase; letter-spacing: .1em; }
.home-elsewhere .hero-contacts { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.home-elsewhere .site-link {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.home-elsewhere .site-link:hover { color: var(--ink); }

.projects-section { padding: 48px 0 0; }
.blogs-section { padding-top: 44px; }

/* Project cards are filled panels so their text reads over the backdrop. */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.project-card,
.single-card-grid .project-card {
  display: grid;
  grid-template-columns: minmax(230px, .5fr) minmax(0, 1.5fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-background);
}
.project-card[data-accent]:hover { border-color: rgba(var(--page-accent-rgb), 0.58); }
.single-card-grid .card-art {
  isolation: isolate;
  min-height: 210px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, #15171a 88%, rgb(var(--page-accent-rgb)) 12%);
}
.single-card-grid .project-body { padding: 26px clamp(24px, 4vw, 38px); }
.project-number,
.art-kicker,
.art-caption { display: none; }
.project-body h3 { margin: 0 0 8px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
.project-body p { min-height: 0; max-width: 62ch; }
.project-actions { gap: 22px; margin-top: 16px; }
.project-actions .site-link {
  min-height: auto;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .82rem;
  text-decoration: underline;
  text-decoration-color: rgba(var(--page-accent-rgb), .48);
  text-underline-offset: 5px;
}
.project-actions .site-link:hover { color: var(--page-accent-bright); background: transparent; }
/* A card's art fills its box, logo or screenshot alike. */
.project-image,
.project-image-logo { position: relative; z-index: 1; width: 100%; height: 100%; padding: 0; object-fit: cover; opacity: 1; filter: none; }

/* Project pages carry a real mark beside the heading. */
.about-art { flex: 0 0 auto; width: clamp(150px, 20vw, 232px); margin: 0; }
.about-art img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.about-art figcaption { margin-top: 7px; color: var(--muted); font-size: .72rem; }

/* FWOB keeps its logo and data; its panels are filled like every other page. */
.rank-hero-logo {
  position: static;
  width: clamp(150px, 20vw, 232px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.stat-strip,
.channel-timeline,
.recommendation-card,
.award-card,
.lost-media-panel,
.resource-card,
.unlisted-card,
.rating-guide,
.unrated-section,
.ratings-tools,
.milestone-panel,
.ranking-table-wrap,
.year-stats-wrap {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-background);
}
.stat-strip { margin: 22px 0 48px; }
.channel-timeline { margin-bottom: 48px; padding: 22px; }
.recommendation-grid { gap: 14px; }
.recommendation-card { padding: 22px; }
.recommendation-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.recommendation-card li { border-left-width: 1px; }
.ranking-table th,
.ranking-table td { padding-top: 10px; padding-bottom: 10px; }
.rating-score { width: 50px; min-width: 50px; height: 50px; min-height: 50px; border-radius: 0; font-size: 1.08rem; }
.ranking-table th:nth-child(1), .ranking-table td:nth-child(1) { width: 96px; }
.table-scroll-note { display: none; margin: 0 0 10px; color: var(--muted); font-size: .72rem; }
.awards-grid { align-items: start; }
.award-card { min-height: 0 !important; padding: 18px; }
.lost-media-panel { padding: 22px; }
.unlisted-card { border-bottom: 1px solid var(--line); }
.rec-callout,
.no-results,
.rating-card,
.badge,
.progress-tag,
.arc-chips span,
.unrated-list span,
.milestone-item,
.guide-grid p,
.unlisted-link,
.video-embed,
.search-field,
.select-field select,
.table-filters select,
.table-filters input[type="search"],
.resource-links a,
.resource-icon,
.page-jump,
.page-jump a { border-radius: 0; }

/* The fixed footer is a small utility strip rather than a second site nav. */
.home-footer { gap: 0; padding: 9px 12px; background: rgb(var(--surface-end-rgb)); }
.home-footer .footer-actions { gap: 18px; }

html[data-theme="light"] .single-card-grid .card-art { background: color-mix(in srgb, #ece8dd 86%, rgb(var(--page-accent-rgb)) 14%); }
html[data-theme="light"] .project-image { opacity: 1; }
html[data-theme="light"] .home-elsewhere .site-link:hover { color: #111214; }
html[data-theme="light"] .home-elsewhere .site-link,
html[data-theme="light"] .project-actions .site-link {
  border: 0;
  background: transparent;
}
html[data-theme="light"] .mobile-section-menu nav { background: rgb(var(--surface-start-rgb)); }
html[data-theme="light"] .unlisted-list span { color: #527083; }

@media (max-width: 760px) {
  .site-nav .subpage-links { display: none; }
  .mobile-section-menu { display: block; }
  .site-nav { align-items: center; flex-wrap: nowrap; }
  .site-nav .nav-actions { width: auto; margin-left: auto; }
  .home-elsewhere { align-items: flex-start; flex-direction: column; gap: 12px; }
  .project-card,
  .single-card-grid .project-card { grid-template-columns: 1fr; }
  .single-card-grid .card-art { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .single-card-grid .project-body { padding: 22px; }
  .project-actions { gap: 18px; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .recommendation-card:last-child { border-bottom: 1px solid var(--line); }
  .table-scroll-note { display: block; }
}

@media (max-width: 430px) {
  body.site-page { padding-right: 14px; padding-left: 14px; }
  .wordmark { font-size: .84rem; }
  .wordmark-mark { width: 28px; height: 28px; }
  .home-intro { font-size: .98rem; }
  .home-elsewhere .hero-contacts { gap: 8px 16px; }
  .home-elsewhere .site-link { font-size: .76rem; }
  .rank-hero-channel-links .site-link { min-height: auto; padding: 7px 0; border: 0; background: transparent; }
  .home-footer .footer-actions { gap: 14px; }
}
