/* Presley’s Digital Kitchen - comfortable reading mode (October 2026).
   Loaded last on every page. Changes type, spacing, and contrast only;
   scripts, student accounts, games, recipes, and Supabase untouched. */

:root {
  color-scheme:light;
  --pdk-readable-text:#293b32;
  --pdk-readable-muted:#4a5b50;
  --pdk-readable-link:#26563d;
  --pdk-readable-border:#c5d1c4;
}

html {
  font-size:16px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body {
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  color:var(--pdk-readable-text);
}

/* Keep lines comfortable rather than running the full width of the screen. */
p, li, dd, dt, blockquote, label, summary {line-height:1.65}
.intro p,.simple-hero-copy p,.quick-card p,.mini-feature-card p,.guide-card p,
.plain-article p,.lesson-article p,.path-hero p,.recipe-hero p,
.k12-lesson .lesson-content p,.community-callout p,.account-hero p {
  max-width:76ch;
}

h1,h2,h3,h4 {line-height:1.24;overflow-wrap:break-word}
h1 {letter-spacing:-.025em}
h2,h3,h4 {letter-spacing:-.015em}

/* Important supporting text must never look faded or miniature. */
.lede,.muted,.library-note,.updated,.article-subtitle,.source-note,
.site-nav a,.brand-small,.eyebrow,.guide-topic,.read-guide,.quick-link,
.path-subtitle,.path-note,.path-step-meta,.path-progress-text,.type-label,
.recipe-tip,.recipe-count,.recipe-search-label,.recipe-card-category,
.recipe-card-foot,.recipe-card-foot button,.recipe-card p,.recipe-warning,
.recipe-note,.recipe-status,.recipe-hero .eyebrow,.recipe-form .form-hint,
.recipe-form label,.recipe-create>p,.recipe-detail-actions button,
.recipe-primary,.recipe-secondary,.recipe-file-label,
.kid-filter-label,.kid-recipe-reminder,.kids-cafe-note,.bible-callout-note,
.bible-verse-reference p,.recipe-filters button,
.cr-hint,.cr-search-tools label,.cr-card-content small,.cr-card-content p,
.cr-mini,.cr-review small,.cr-review-form label,
.account-form label,.account-small,.account-stat,.account-score,
.k12-disclaimer,.k12-status,.k12-extra-grid span,.progress-box strong,
.k12-lesson .lesson-num,.quest-header p,.game-help,.avatar-option span:last-child,
.scene-tag,.scene p,.question-area p,.best-notice,
#pdk-ai-open-new,#pdk-ai-launch,#pdk-ai-panel-head,
.recipe-backup p,.recipe-hero-art,.collection .card-body small,
.lesson-side p,.plain-article .lead {
  color:var(--pdk-readable-muted);
}

/* Clear, 15px minimum for supporting text that used to be 10-13px. */
small,.eyebrow,.guide-topic,.brand-small,.library-note,
.recipe-card-category,.recipe-card-foot,.recipe-card-foot button,
.recipe-count,.recipe-warning,.recipe-form .form-hint,.recipe-search-label,
.recipe-tip,.recipe-note,.recipe-form label,.recipe-create>p,.recipe-filters button,
.recipe-detail-actions button,.recipe-primary,.recipe-secondary,.recipe-file-label,
.bible-verse-reference p,.bible-callout-note,.kids-cafe-note,.kid-filter-label,
.kid-recipe-reminder,.cr-hint,.cr-search-tools label,.cr-mini,
.cr-card-content small,.cr-review small,.cr-review-form label,
.k12-disclaimer,.k12-status,.k12-extra-grid span,.progress-box strong,
.k12-lesson .lesson-num,.game-help,.scene-tag,.best-notice,
.account-small,.account-stat,#pdk-ai-open-new,.path-progress-text,
.path-step-meta,.type-label,.quest-button,.k12-primary,.k12-secondary {
  font-size:15px !important;
  line-height:1.55;
}

/* Make key body copy clear on the cards and instructions. */
.recipe-card p,.cr-card-content p,.k12-lesson p,.k12-lesson li,
.path-step p,.path-step li,.recipe-steps li,.recipe-ingredients label,
.lesson-article li,.plain-article li,.article-layout p,.account-card p,
.k12-extra-grid a,.quick-card p,.mini-feature-card p,.guide-card p,
.cr-review p,.cr-line-list li,.scene p,.feedback p {
  font-size:16.5px !important;
  line-height:1.65;
  color:var(--pdk-readable-text);
}

/* Comfortable paragraphs on wider screens. */
.simple-hero .lede,.recipe-hero p:not(.eyebrow),
.path-hero p,.quest-header p,.k12-hero p {font-size:18px !important;line-height:1.65}

/* Better buttons and tabs, especially for touch and older readers. */
a:not(.brand){text-underline-offset:3px}
.site-nav a {font-size:16px !important;line-height:1.4;padding:10px 12px}
footer a{font-size:15px !important;line-height:1.55}
button,[role="button"],.primary-cta,.secondary-cta,.studio-launch,
.recipe-primary,.recipe-secondary,.recipe-file-label,.recipe-filters button,
.k12-primary,.k12-secondary,.quest-button,.answer-option,
.account-btn,.lesson-mark,.cr-mini,.recipe-detail-actions button {
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:16px !important;
  line-height:1.4;
  font-weight:700;
}
.recipe-filters button,.kid-type-filters button,
.recipe-card-foot button,.recipe-detail-actions button,.cr-mini {
  min-height:42px;
}

/* Clear labels and inputs; 16px prevents mobile browser auto-zoom. */
input,textarea,select {font-size:16px !important;line-height:1.5}
input::placeholder,textarea::placeholder {color:#58675b;opacity:1}
label,.account-form label,.recipe-form label,.cr-review-form label {
  color:#34493c;
}

/* Focus outlines need to be easy to see when using a keyboard. */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #2b6b51;
  outline-offset:3px;
}

/* Make selected filters and checkmarks visually obvious. */
.recipe-filters button.is-selected,.kid-type-filters button.is-selected,
.avatar-option.is-active,.path-option.is-active {
  border-color:#477950;
}
.recipe-ingredients input:checked+span {
  color:#485c4d;
  text-decoration-thickness:2px;
}

/* Avoid faint menu labels and metadata on white or cream cards. */
.recipe-card-category,.guide-topic,.eyebrow,.type-label,.scene-tag {
  color:#475a49 !important;
  letter-spacing:.055em !important;
}
.recipe-card-foot,.recipe-note,.recipe-warning,.recipe-detail-desc,
.recipe-card p,.recipe-count,.cr-card-content small,.cr-review small,
.account-small,.k12-disclaimer,.game-help,.kids-cafe-note {
  color:#4b5b50 !important;
}

/* Keep title hierarchy comfortable but not overpowering. */
.recipe-card h3,.cr-card-content h3 {font-size:22px;line-height:1.3}
.quick-card h3,.mini-feature-card h3 {line-height:1.3}
.k12-lesson summary {font-size:19px;line-height:1.45}
.question-area>p {font-size:20px !important;line-height:1.5}
.answer-option {font-size:17px !important;line-height:1.55}

/* The adventure map must stay compact enough for six stops. */
.map-stop .stop-label{font-size:12px !important;color:#314937;line-height:1.3}
.trail-map{min-height:148px}

/* Increase breathing room between paragraphs and list items. */
.lesson-article li,.plain-article li,.recipe-steps li,.cr-line-list li {margin-bottom:12px}
.recipe-card-body,.cr-card-content{line-height:1.6}
.recipe-card-foot {gap:10px;flex-wrap:wrap}

/* Print remains clean and legible. */
@media print {
 body{font-size:12pt;color:#000;background:#fff}
 p,li,label,small{color:#111 !important}
 a{color:#111}
}

@media(max-width:720px){
 body{font-size:17px;line-height:1.65}
 main{max-width:100%}
 h1{line-height:1.18}
 .site-nav{gap:5px;row-gap:7px}
 .site-nav a{font-size:15px!important;padding:9px 10px}
 .brand-small{font-size:14px!important}
 .recipe-card-foot{align-items:flex-start}
 .map-stop .stop-label{font-size:11.5px!important}
 .trail-map{min-height:146px}
 .k12-lesson .lesson-content{padding-left:0}
}
