/* Match the beta UI tokens in poker-ui/src/index.css and AuthPages.css. */
:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --dorm-bg-950: #06090d;
  --dorm-bg-900: #0a1117;
  --dorm-surface-900: #111a22;
  --dorm-surface-800: #17232d;
  --dorm-border-600: #2b3f4d;
  --dorm-text-100: #e8eff3;
  --dorm-text-200: #c9d5de;
  --dorm-text-300: #9eb0bd;
  --dorm-accent-500: #2f6b3f;
  --dorm-accent-600: #235231;
  --dorm-link: #8ed2a8;
  --dorm-gold: #f4e5bf;
  --felt-contrast-overlay: linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%));
  --felt-green-surface:
    url("assets/poker-felt-texture.svg") 0 0 / 64px 64px repeat,
    url("assets/poker-felt-texture.svg") 20px 14px / 108px 108px repeat,
    linear-gradient(140deg, #1e7d1e 0%, #1a6f1a 52%, #166316 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: #000; color: var(--dorm-text-100); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--dorm-link); text-underline-offset: 0.25em; }
a:hover { color: #c4f0d6; }
a:focus-visible { outline: 3px solid var(--dorm-gold); outline-offset: 6px; border-radius: 3px; }
main:focus { outline: none; }
.wrapper { width: min(1120px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 0.75rem; padding: 0.7rem 1rem; background: var(--dorm-surface-900); z-index: 3; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.2rem; border-bottom: 1px solid var(--dorm-border-600); }
.brand { display: block; flex: 0 0 144px; }
.brand img { width: 144px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
nav a { color: var(--dorm-text-200); font-size: 0.875rem; text-decoration: none; }
nav a:hover { color: var(--dorm-link); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 5rem; padding-block: 5rem 5.5rem; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: 1.06; font-weight: 750; letter-spacing: -0.055em; }
h1 span { display: block; color: var(--dorm-link); }
.brand-panel { padding: 3.6rem 2rem 2rem; border: 1px solid #487f4d; border-radius: 12px; background: var(--felt-contrast-overlay), var(--felt-green-surface); text-align: center; box-shadow: 0 18px 44px rgb(0 0 0 / 45%); }
.hero-logo { width: 100%; margin-bottom: 1.8rem; }
.brand-panel-caption { color: var(--dorm-gold); font-size: clamp(0.875rem, 1.6vw, 1.125rem); font-weight: 600; line-height: 1.4; }
.brand-panel-meta { color: #e5f0e5; font-size: 0.875rem; margin-top: 0.9rem; }

.section { padding-block: 4.4rem; border-top: 1px solid var(--dorm-border-600); scroll-margin-top: 1.5rem; }
h2 { font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.22; letter-spacing: -0.035em; font-weight: 650; }
h3 { font-size: 1.1rem; line-height: 1.4; font-weight: 600; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.section-description p { color: var(--dorm-text-200); margin-bottom: 1rem; }
.developer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5rem; align-items: start; }
.developer-intro { color: var(--dorm-text-200); margin-top: 1.5rem; }
.developer-steps { list-style: none; margin: 0; padding: 0; }
.developer-step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--dorm-border-600); padding-block: 1.4rem; }
.developer-step:first-child { border-top: 0; padding-top: 0; }
.developer-step:last-child { padding-bottom: 0; }
.developer-step .pillar-number { margin-bottom: 0; }
.developer-step p { color: var(--dorm-text-300); font-size: 0.9375rem; margin-top: 0.7rem; }
.text-link { display: inline-block; font-size: 0.9375rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin-top: 3.4rem; }
.pillar { border-top: 1px solid var(--dorm-border-600); padding-top: 1.3rem; }
.pillar-number { display: block; color: var(--dorm-link); font-size: 0.875rem; margin-bottom: 1rem; }
.pillar p { color: var(--dorm-text-300); font-size: 0.9375rem; margin-top: 0.7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.team-member { min-width: 0; border: 1px solid var(--dorm-border-600); border-radius: 10px; overflow: hidden; background: var(--dorm-surface-900); }
.team-photo { width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: center 35%; }
#team-member-2 .team-photo { object-position: center top; }
.team-photo-placeholder { object-position: center; background: var(--dorm-surface-800); }
.team-details { padding: 1.5rem; }
.team-role { color: var(--dorm-link); font-size: 0.875rem; margin-top: 0.4rem; }
.team-details > p:last-child { color: var(--dorm-text-200); font-size: 0.9375rem; margin-top: 1rem; }
.resources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.resource { padding: 1.6rem; background: var(--dorm-surface-900); border: 1px solid var(--dorm-border-600); border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.resource > p { color: var(--dorm-text-200); margin-block: 1rem 1.4rem; font-size: 0.9375rem; }
.resource .text-link { margin-top: auto; }
.drive-link-row { margin-top: 2rem; color: var(--dorm-text-300); font-size: 0.9375rem; }
.drive-link-row .text-link { display: inline; }

@media (max-width: 900px) {
  .hero { gap: 2.5rem; padding-block: 3.5rem; }
  .section-intro, .developer-layout { gap: 2.5rem; }
  .team-grid { gap: 1rem; }
  .team-details { padding: 1.2rem; }
  .resources-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { max-width: 360px; margin-inline: auto; }
  .brand-panel-caption { font-size: clamp(0.875rem, 4.1vw, 1.125rem); }
}

@media (max-width: 660px) {
  .wrapper { width: calc(100% - 2.5rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .brand { flex-basis: auto; }
  nav { gap: 0.8rem 1.3rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem; }
  .brand-panel { padding: 2.5rem clamp(0.65rem, 3.5vw, 2rem) 1.8rem; }
  .hero-logo { max-width: 300px; margin: 0 auto 1.5rem; }
  .section { padding-block: 3rem; }
  .section-intro, .developer-layout, .pillars, .team-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .pillars { margin-top: 2.5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .team-photo { max-height: 380px; }
  .team-details { padding: 1.5rem; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #17232d; background: #fff; }
  .site-header, .brand-panel, .skip-link { display: none; }
  .hero, .section-intro, .developer-layout { display: block; }
  .hero, .section { padding-block: 1.5rem; }
  h1 { font-size: 3rem; }
  .team-member, .resource { break-inside: avoid; }
  p, a, h1 span { color: #17232d !important; }
}
