/* Twister Bench — Visual System */

/* ==========================================
   RESET & BASE
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-pale: #f5f3f0;
  --text-ink: #1a1a1a;
  --accent-vermilion: #c55a4a;
  --accent-navy: #4a5d6d;
  --accent-moss: #6b8068;
  --guide-gray: #d8d6d2;
  --guide-light: #e8e6e2;
  
  /* Typography */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
  
  /* Grid */
  --max-width: 1160px;
  --reading-width: 720px;
  --spacing-unit: 8px;
}

body {
  background: var(--bg-pale);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
}

/* Subtle background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(0, 0, 0, 0.012) 23px,
      rgba(0, 0, 0, 0.012) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 119px,
      rgba(0, 0, 0, 0.008) 119px,
      rgba(0, 0, 0, 0.008) 120px
    );
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.reading-width {
  max-width: var(--reading-width);
  margin: 0 auto;
}

/* ==========================================
   MASTHEAD
   ========================================== */

.masthead {
  height: 59px;
  border-bottom: 1px solid var(--guide-gray);
  display: flex;
  align-items: center;
  background: var(--bg-pale);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.masthead-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.masthead-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.masthead-nav a {
  color: var(--text-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.masthead-nav a:hover {
  color: var(--accent-vermilion);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-ink);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1 {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-navy);
}

.count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-navy);
}

/* ==========================================
   DAILY TONGUE TWISTER
   ========================================== */

.daily-twister {
  padding: 80px 0;
}

.daily-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.daily-main .label {
  margin-bottom: 20px;
  display: block;
}

.daily-date {
  font-size: 14px;
  color: var(--accent-navy);
  margin-bottom: 32px;
  font-weight: 500;
}

.twister-display {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.practice-instruction {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--accent-navy);
}

.daily-notes {
  background: white;
  border: 1px solid var(--guide-gray);
  padding: 32px;
}

.daily-notes h4 {
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--guide-light);
  font-size: 15px;
}

.note-item:last-child {
  border-bottom: none;
}

.note-label {
  color: var(--accent-navy);
  font-weight: 500;
}

.note-value {
  font-weight: 600;
}

/* ==========================================
   THREE-SPEED PRACTICE BENCH
   ========================================== */

.practice-bench {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.practice-bench h2 {
  text-align: center;
  margin-bottom: 48px;
}

.practice-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.practice-stage {
  border: 1px solid var(--guide-gray);
  padding: 32px;
  background: white;
}

.stage-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent-vermilion);
}

.stage-content {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 120px;
}

.stage-instruction {
  font-size: 14px;
  color: var(--accent-navy);
  margin-bottom: 20px;
  font-style: italic;
}

.btn {
  background: var(--text-ink);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: var(--accent-vermilion);
}

.btn-secondary {
  background: white;
  color: var(--text-ink);
  border: 1px solid var(--text-ink);
}

.btn-secondary:hover {
  background: var(--text-ink);
  color: white;
}

.btn.completed {
  background: var(--accent-moss);
  pointer-events: none;
}

.practice-complete {
  text-align: center;
  margin-top: 40px;
  display: none;
}

.practice-complete.visible {
  display: block;
}

.practice-complete p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ==========================================
   SOUND BREAKDOWN
   ========================================== */

.sound-breakdown {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.sound-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}

.sound-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border: 1px solid var(--guide-gray);
  background: white;
}

.sound-pair {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  margin-bottom: 24px;
}

.sound-example {
  font-size: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-navy);
}

.sound-explanation h3 {
  margin-bottom: 20px;
}

.sound-explanation p {
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================
   SIX QUICK TWISTERS
   ========================================== */

.quick-twisters {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.quick-twisters h2 {
  margin-bottom: 48px;
}

.quick-list {
  max-width: 900px;
  margin: 0 auto;
}

.quick-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--guide-gray);
  display: grid;
  grid-template-columns: 40px 1fr 120px 100px 100px;
  gap: 20px;
  align-items: center;
}

.quick-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-navy);
}

.quick-text {
  font-family: var(--font-serif);
  font-size: 18px;
}

.quick-difficulty,
.quick-sound {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-navy);
}

.quick-action {
  text-align: right;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.quick-reveal {
  grid-column: 2 / -1;
  margin-top: 12px;
  padding: 16px;
  background: var(--guide-light);
  font-family: var(--font-serif);
  font-size: 16px;
  display: none;
}

.quick-reveal.visible {
  display: block;
}

/* ==========================================
   DIFFICULTY RUNWAY
   ========================================== */

.difficulty-runway {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.difficulty-runway h2 {
  margin-bottom: 48px;
}

.runway-grid {
  display: grid;
  grid-template-columns: 3fr 4fr 5fr;
  gap: 32px;
}

.runway-stage {
  border: 1px solid var(--guide-gray);
  padding: 32px;
  background: white;
}

.runway-stage h3 {
  margin-bottom: 24px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runway-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--guide-light);
  font-family: var(--font-serif);
  font-size: 16px;
}

.runway-item:last-child {
  border-bottom: none;
}

/* ==========================================
   SOUND-FAMILY SHELVES
   ========================================== */

.sound-shelves {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.sound-shelves h2 {
  margin-bottom: 48px;
}

.shelf-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--guide-gray);
  display: grid;
  grid-template-columns: 120px 1fr 80px 400px 100px;
  gap: 24px;
  align-items: center;
}

.shelf-label {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.shelf-description {
  font-size: 14px;
  color: var(--accent-navy);
}

.shelf-count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-navy);
}

.shelf-samples {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
}

.shelf-link {
  text-align: right;
}

.shelf-link a {
  color: var(--accent-vermilion);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.shelf-link a:hover {
  text-decoration: underline;
}

/* ==========================================
   ONE-BREATH CHALLENGE
   ========================================== */

.breath-challenge {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.breath-challenge h2 {
  margin-bottom: 24px;
}

.breath-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.breath-phrase {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.4;
  margin: 40px 0;
  padding: 48px;
  border: 2px solid var(--guide-gray);
  background: white;
}

.breath-instruction {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.breath-safety {
  font-size: 14px;
  color: var(--accent-vermilion);
  font-weight: 600;
  margin: 24px 0;
}

.breath-chunks {
  margin-top: 24px;
  padding: 24px;
  background: var(--guide-light);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.8;
  display: none;
}

.breath-chunks.visible {
  display: block;
}

/* ==========================================
   BUILD-UP PRACTICE
   ========================================== */

.buildup-practice {
  padding: 80px 0;
  border-top: 2px solid var(--guide-gray);
}

.buildup-practice h2 {
  margin-bottom: 48px;
}

.buildup-content {
  max-width: 800px;
  margin: 0 auto;
}

.buildup-stage {
  padding: 24px 0;
  border-bottom: 1px solid var(--guide-light);
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.buildup-stage.active {
  opacity: 1;
}

.buildup-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-navy);
  width: 40px;
}

.buildup-text {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.4;
  flex: 1;
}

.buildup-controls {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================
   LIBRARY PAGES
   ========================================== */

.library-intro {
  padding: 60px 0 40px;
  max-width: var(--reading-width);
  margin: 0 auto;
}

.twister-list {
  padding: 40px 0 80px;
}

.twister-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--guide-gray);
  max-width: 900px;
  margin: 0 auto;
}

.twister-entry-text {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.twister-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  font-size: 14px;
}

.meta-item {
  color: var(--accent-navy);
  font-weight: 500;
}

.twister-slow {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--accent-navy);
  margin-bottom: 12px;
  font-style: italic;
}

.twister-note {
  font-size: 14px;
  color: var(--text-ink);
  line-height: 1.6;
}

.related-links {
  padding: 40px 0;
  border-top: 2px solid var(--guide-gray);
  max-width: var(--reading-width);
  margin: 0 auto;
}

.related-links h3 {
  margin-bottom: 20px;
}

.related-links ul {
  list-style: none;
}

.related-links li {
  margin-bottom: 12px;
}

.related-links a {
  color: var(--accent-vermilion);
  text-decoration: none;
  font-weight: 600;
}

.related-links a:hover {
  text-decoration: underline;
}

/* ==========================================
   ARTICLE PAGES
   ========================================== */

.article-header {
  padding: 60px 0 40px;
  max-width: var(--reading-width);
  margin: 0 auto;
}

.article-content {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 28px;
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 22px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================
   ABOUT & CONTACT
   ========================================== */

.page-content {
  padding: 60px 0 80px;
  max-width: var(--reading-width);
  margin: 0 auto;
}

.page-content h1 {
  margin-bottom: 32px;
}

.page-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-info {
  margin: 32px 0;
  padding: 32px;
  background: white;
  border: 1px solid var(--guide-gray);
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-info a {
  color: var(--accent-vermilion);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  border-top: 2px solid var(--guide-gray);
  padding: 60px 0;
  margin-top: 80px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-identity {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-nav a {
  color: var(--text-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent-vermilion);
}

.footer-contact {
  font-size: 14px;
  color: var(--accent-navy);
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--accent-navy);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-vermilion);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 760px) {
  .masthead-nav {
    display: none;
    position: absolute;
    top: 59px;
    left: 0;
    right: 0;
    background: var(--bg-pale);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--guide-gray);
    gap: 16px;
  }
  
  .masthead-nav.mobile-open {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .daily-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .twister-display {
    font-size: 36px;
  }
  
  .practice-stages {
    grid-template-columns: 1fr;
  }
  
  .sound-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sound-pair {
    font-size: 48px;
  }
  
  .quick-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .quick-action {
    text-align: left;
  }
  
  .runway-grid {
    grid-template-columns: 1fr;
  }
  
  .shelf-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .breath-phrase {
    font-size: 24px;
    padding: 32px;
  }
  
  .buildup-text {
    font-size: 20px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}
