/* ============================================================
   Truescale Studios — Member Website
   Shared stylesheet. Dark / cinematic theme, cyan accent.
   Design tokens follow the build spec (section 3).
   Flat surfaces only: no gradients, glows, or shadows.
   ============================================================ */

:root {
  /* --- Color tokens (spec 3.1) --- */
  --bg:            #0E1216; /* page background            */
  --panel:         #161C22; /* cards, columns, nav hover  */
  --hairline:      #232A31; /* dividers & borders (0.5px) */
  --text:          #E7ECF2; /* primary text / headings    */
  --muted:         #8A94A0; /* secondary labels, nav      */
  --body:          #9BA6B2; /* body copy in cards         */
  --accent:        #3FD0C9; /* cyan accent                */
  --accent-surf:   #12312F; /* finished pill / now bg     */
  --accent-border: #1C4C48; /* accent pill / chip border  */
  --amber:         #F2A93B; /* in-progress text           */
  --amber-surf:    #33260F; /* in-progress bg             */
  --white:         #FFFFFF; /* wordmark, system names     */

  /* --- Type scale (spec 3.2) --- */
  --f-title: 23px;
  --f-system: 16px;
  --f-subtitle: 13px;
  --f-body: 12.5px;
  --f-small: 11px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--f-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Content column (spec 3.3) */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text); font-weight: 500; margin: 0 0 8px; }

/* =====================  NAV  ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 0.5px solid var(--hairline);
}
.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.wordmark:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--muted);
  font-size: var(--f-subtitle);
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--white); }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--hairline);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}

/* =====================  FOOTER  ===================== */
.site-footer {
  border-top: 0.5px solid var(--hairline);
  margin-top: 56px;
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: var(--f-subtitle);
}
.site-footer .foot-tag { margin-bottom: 12px; }
.site-footer .foot-tag .built { color: var(--accent); }
.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .foot-links a { color: var(--muted); }
.site-footer .foot-links a:hover { color: var(--text); text-decoration: none; }

/* =====================  GENERIC PAGE  ===================== */
main { padding: 40px 0 0; }
.page-title { font-size: var(--f-title); font-weight: 500; }
.subtitle { color: var(--muted); font-size: var(--f-subtitle); margin: 2px 0 0; }
.section { margin: 34px 0; }
.section h2 { font-size: var(--f-system); }
.section p { color: var(--body); }
.lede { color: var(--text); font-size: 14px; }

/* Brand lockup / tagline */
.tagline { color: var(--white); font-weight: 500; }
.tagline .built { color: var(--accent); }

/* =====================  HOME HERO  ===================== */
.hero {
  padding: 56px 0 20px;
  border-bottom: 0.5px solid var(--hairline);
}
.hero .tagline {
  font-size: 44px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0;
}
.hero .hero-sub {
  color: var(--body);
  font-size: 15px;
  max-width: 560px;
  margin: 16px 0 0;
}
.soon-chip {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 0.5px solid var(--accent-border);
  background: var(--accent-surf);
  color: var(--accent);
  font-size: var(--f-subtitle);
}

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: var(--f-subtitle);
  font-weight: 500;
  cursor: pointer;
}
.btn-cyan {
  background: var(--accent);
  color: #05201E;
}
.btn-cyan:hover { text-decoration: none; opacity: 0.92; }

/* =====================  CARDS  ===================== */
.card {
  background: var(--panel);
  border: 0.5px solid var(--hairline);
  border-radius: 11px;
  padding: 18px;
}

/* =====================  PROGRESS SNAPSHOT (Home)  ===================== */
.snapshot { margin: 30px 0 10px; }
.snap-link { display: block; }
.snap-link:hover { text-decoration: none; }
.snap-row { margin: 16px 0; }
.snap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.snap-head .name { color: var(--white); font-size: var(--f-system); font-weight: 500; }
.snap-head .pct { color: var(--accent); font-size: var(--f-subtitle); }

/* =====================  PROGRESS BAR  ===================== */
.bar {
  height: 7px;
  border-radius: 7px;
  background: var(--hairline);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: var(--accent);
  width: 0;
  transition: width 0.35s ease;
}

/* =====================  STUDIO RELEASE ROADMAP  ===================== */
.release { margin: 26px 0 34px; }
.release-summary { margin: 6px 0 22px; }

/* headline bar shared by Roadmap section + Home summary */
.headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0.5px solid var(--accent-border);
  background: var(--accent-surf);
  margin-bottom: 9px;
}
.headline-name {
  color: var(--white);
  font-size: var(--f-system);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.headline .pct { color: var(--accent); font-size: var(--f-subtitle); }

/* ordered milestone list */
.ms-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.ms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 0.5px solid var(--hairline);
}
.ms-row:first-child { border-top: 0; }
.ms-num {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 0.5px solid var(--hairline);
  color: var(--muted);
  font-size: var(--f-small);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ms-body { flex: 1; }
.ms-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ms-label { color: var(--body); font-size: var(--f-body); }
.ms-note { color: var(--muted); font-size: var(--f-small); margin-top: 5px; }

/* final launch milestone, emphasized */
.ms-row.emphasis {
  background: var(--panel);
  border: 0.5px solid var(--accent-border);
  border-radius: 11px;
  padding: 12px 14px;
  margin-top: 8px;
}
.ms-row.emphasis .ms-num { border-color: var(--accent-border); color: var(--accent); }
.ms-row.emphasis .ms-label { color: var(--text); font-weight: 500; }

/* =====================  ROADMAP  ===================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}
.chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-size: var(--f-subtitle);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.active {
  border-color: var(--accent-border);
  background: var(--accent-surf);
  color: var(--accent);
}

.system { margin: 30px 0; }
.system-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}
.system-head .name { color: var(--white); font-size: var(--f-system); font-weight: 500; }
.system-head .pct { color: var(--accent); font-size: var(--f-subtitle); }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.col {
  background: var(--panel);
  border: 0.5px solid var(--hairline);
  border-radius: 11px;
  padding: 14px;
}
.col > .col-label {
  color: var(--muted);
  font-size: var(--f-small);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 0.5px solid var(--hairline);
}
.item:first-of-type { border-top: 0; }
.item .label { color: var(--body); font-size: var(--f-body); }

/* Status pills (spec 6.3) */
.pill {
  flex: none;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--f-small);
  white-space: nowrap;
  border: 0.5px solid transparent;
}
.pill.notstarted { color: var(--muted); border-color: var(--hairline); }
.pill.inprogress { color: var(--amber); background: var(--amber-surf); }
.pill.finished   { color: var(--accent); background: var(--accent-surf); border-color: var(--accent-border); }

/* =====================  TIMELINE  ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 0.5px solid var(--hairline);
}
.milestone { display: flex; gap: 10px; align-items: flex-start; }
.dot {
  flex: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-top: 3px;
  border: 1.5px solid var(--accent);
}
.dot.filled { background: var(--accent); }
.milestone .q { color: var(--white); font-size: var(--f-subtitle); }
.milestone .cap { color: var(--muted); font-size: var(--f-small); }

/* =====================  HOME LANDING  ===================== */
.eyebrow {
  color: var(--accent);
  font-size: var(--f-small);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* hero CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-ghost {
  background: transparent;
  border: 0.5px solid var(--hairline);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent); text-decoration: none; }

/* short statement band */
.statement {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text);
  max-width: 720px;
  margin: 6px 0;
}
.statement .built { color: var(--accent); }

/* titles / work showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.title-card {
  background: var(--panel);
  border: 0.5px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.title-cover {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.title-cover .mono {
  color: #2C353E;
  font-size: 30px;
  letter-spacing: 6px;
  font-weight: 500;
}
.title-cover .cover-pill { position: absolute; top: 12px; left: 12px; }
.title-body { padding: 16px; }
.title-body h3 { color: var(--text); font-size: var(--f-system); font-weight: 500; margin: 0 0 6px; }
.title-body p { color: var(--muted); font-size: var(--f-body); margin: 0; }

/* at a glance strip */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.glance { border-top: 2px solid var(--accent-border); padding-top: 12px; }
.glance .g-label {
  color: var(--muted);
  font-size: var(--f-small);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.glance .g-value { color: var(--white); font-size: var(--f-system); font-weight: 500; margin: 5px 0; }
.glance .g-desc { color: var(--body); font-size: var(--f-body); margin: 0; }

/* closing CTA band */
.cta-band {
  background: var(--panel);
  border: 0.5px solid var(--hairline);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  margin: 44px 0 10px;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }

/* =====================  FEATURE / PILLAR CARDS  ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.feature-card h3 {
  color: var(--text);
  font-size: var(--f-system);
  font-weight: 500;
  margin: 0 0 7px;
}
.feature-card p { color: var(--body); margin: 0; }
.section em { color: var(--text); font-style: normal; }

/* single card, centered under the middle column of the grid above */
.center-card {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.center-card > .feature-card {
  width: calc((100% - 24px) / 3);
  min-width: 240px;
}
@media (max-width: 640px) {
  .center-card > .feature-card { width: 100%; }
}

/* =====================  ABOUT ROLES  ===================== */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.role-group h3 {
  color: var(--accent);
  font-size: var(--f-subtitle);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.role-group ul { margin: 0; padding: 0; list-style: none; }
.role-group li {
  color: var(--body);
  font-size: var(--f-body);
  padding: 3px 0;
}

/* =====================  DEVLOG  ===================== */
.entry { margin: 0 0 14px; }
.entry .meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.entry .date { color: var(--muted); font-size: var(--f-small); letter-spacing: 0.3px; }
.entry h3 { color: var(--text); font-size: var(--f-system); margin: 0; }
.entry .tags { display: flex; gap: 6px; }
.entry .tag {
  color: var(--accent);
  font-size: var(--f-small);
  padding: 2px 8px;
  border-radius: 20px;
  border: 0.5px solid var(--accent-border);
  background: var(--accent-surf);
}
.entry .body { color: var(--body); }
.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

/* =====================  RESPONSIVE (spec 8)  ===================== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 0.5px solid var(--hairline);
    padding: 6px 20px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-block; }
  .hero .tagline { font-size: 34px; }
  .cols, .timeline, .roles { grid-template-columns: 1fr; }
}

/* Visible keyboard focus (spec 8) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}