/* FreeMcHosting v7. Original forest-green identity, now with a proper daylight palette.
   No UI framework: a small, explicit set of design tokens and page-specific surfaces. */
:root {
  --fmc-ink-on-accent: #10251a;
  --nav-fill: #0a1713;
  --paper-raised: #0e2019;
  --soft-rule: #a1efb42a;
}
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light;
  --bg: #f7f8f2;
  --surface: #fffefa;
  --text: #1b3024;
  --muted: #52665a;
  --green: #176a45;
  --line: #d7e2d6;
  --fmc-ink-on-accent: #fffefa;
  --nav-fill: #f7f8f2;
  --paper-raised: #eef3e9;
  --soft-rule: #c7d9ca;
}
html[data-theme="light"] body { background:var(--bg);color:var(--text); }
/* Universal header treatment with room for a keyboard-accessible control. */
.nav-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
@media(min-width:1000px) {
 .home-page>.header .nav,.contact-page>.header .nav{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);gap:16px}
 .home-page>.header .nav>.brand,.contact-page>.header .nav>.brand{grid-column:1;justify-self:start}
 .home-page>.header .nav>#main-nav,.contact-page>.header .nav>#main-nav{grid-column:2;justify-self:center}
 .home-page>.header .nav>.nav-tools,.contact-page>.header .nav>.nav-tools{grid-column:3;justify-self:end}
}
.nav-tools .login{margin-left:0}
.theme-toggle{height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text);cursor:pointer;transition:border-color .18s,background .18s;line-height:1}
.theme-toggle svg{height:18px;width:18px;flex:none}
.theme-toggle-label{font:600 12px/1.2 var(--font);white-space:nowrap}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
.theme-toggle:hover{border-color:var(--green);background:color-mix(in srgb,var(--green) 7%,transparent)}
.theme-toggle:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:1250px){.theme-toggle-label{display:none}}
@media(max-width:800px){.nav-tools{gap:7px;margin-left:auto}.nav-tools .login{margin-left:0}}
@media(max-width:480px){.nav-tools{gap:5px}.theme-toggle{height:36px;min-width:36px;padding:0 8px}.nav-tools .login{min-height:36px;padding-inline:8px}}
@media(max-width:370px){.nav-tools .login .action-label{display:none}.nav-tools .login{width:36px;justify-content:center;padding:0}}
/* Sharper accent buttons. Both options remain immediately visible in the hero. */
.primary{color:var(--fmc-ink-on-accent);background:var(--green)}
html[data-theme="light"] .primary:hover{background:#0f5134}
html[data-theme="light"] .header{background:#fcfdf8;border-color:var(--line)}
html[data-theme="light"] .nav nav{color:#395544}
html[data-theme="light"] .login,.theme-toggle{border-color:var(--line)}
html[data-theme="light"] .login:hover{border-color:var(--green)}
html[data-theme="light"] .secondary{color:var(--text);border-color:#b2cbb5;background:#ffffffcf}
html[data-theme="light"] .secondary:hover{background:#e6f0e4}
html[data-theme="light"] .text-link{text-decoration-color:#176a4577;border-color:#176a4566}
html[data-theme="light"] .action-icon{stroke:currentColor}
html[data-theme="light"] .home-page>.header{background:linear-gradient(#f7f8f2e8,#f7f8f2cf);border-bottom-color:#d4e0d2}
html[data-theme="light"] .home-page>.header .brand-word{color:#152e21}
/* Daylight hero, using the same original Minecraft artwork rather than replacing it with stock art. */
html[data-theme="light"] .hero{background:#edf4e9}
html[data-theme="light"] .hero-art img{filter:brightness(1.08) saturate(.8);opacity:.83}
html[data-theme="light"] .art-shade{background:linear-gradient(180deg,#f7f8f2a8 0%,#f7f8f2cb 45%,#f7f8f2ef 83%,#f7f8f2 100%),linear-gradient(90deg,#f7f8f2a6,transparent 45%,#f7f8f2a6)}
html[data-theme="light"] .hero h1{color:#152e21}
html[data-theme="light"] .hero h1 span{color:#176a45}
html[data-theme="light"] .hero-copy{color:#3f5b49}
html[data-theme="light"] .hero-notes{color:#536a58}
html[data-theme="light"] .hero-bottom{color:#526a59;border-color:var(--line)}
html[data-theme="light"] .hero-bottom a{color:#176a45}
html[data-theme="light"] .hero .secondary{background:#fffefadd;border-color:#b8cbb9}
/* Sections are not all the same colour: keep the rhythm of the original page. */
html[data-theme="light"] .platform-stats{background:#edf3e9;border-color:#c1d8c7}
html[data-theme="light"] .platform-stat strong{color:#163d29}
html[data-theme="light"] .stats-feature{color:#4e6255}
html[data-theme="light"] .stats-feature b{color:#1f3f2c}
html[data-theme="light"] .stats-feature svg{color:#176a45}
html[data-theme="light"] .feature-symbol{color:#345b41}
html[data-theme="light"] .feature-cutout{fill:#f7f8f2}
html[data-theme="light"] .feature-cutout-line{stroke:#f7f8f2}
html[data-theme="light"] .hardware-intro p{color:var(--muted)}
html[data-theme="light"] .hardware-photo{background:#e0e8d9}
html[data-theme="light"] .infrastructure-note{border-color:var(--line)}
html[data-theme="light"] .about-section{background:#eef3e9}
html[data-theme="light"] .cta-section{background:#e6eee2}
html[data-theme="light"] .cta p{color:#496453}
html[data-theme="light"] .cta>img{opacity:.27}
html[data-theme="light"] .footer-links{color:#3f5c49}
html[data-theme="light"] .footer-bottom{color:#586c5a}
html[data-theme="light"] .legal-section p,html[data-theme="light"] .legal-section ul{color:#415c49}
html[data-theme="light"] .journey-index{color:#52665a;border-color:var(--line)}
html[data-theme="light"] .journey-index>span{color:#627a66}
html[data-theme="light"] .journey-step h3{color:#657d68}
html[data-theme="light"] .journey-step p{color:#536957}
html[data-theme="light"] .journey-step[aria-current="step"] p{color:#334e3b}
html[data-theme="light"] .journey-rail>span{background:#c5d8c3}
html[data-theme="light"] .hosting-footnote a{color:var(--green)}
/* Restored RAM pool graphic: cream paper, forest labels, readable numbers. */
html[data-theme="light"] .pool-section{background:#edf3e8;border-color:#cfdfcf}
html[data-theme="light"] .pool-intro p:not(.eyebrow){color:#4f6554}
html[data-theme="light"] .pool-example{background:#fffefa;border-color:#c8d8c8;box-shadow:12px 12px 0 #cfdfcd}
html[data-theme="light"] .pool-example-head strong{color:#233c2d}
html[data-theme="light"] .pool-example-head>span{color:#5b705e}
html[data-theme="light"] .pool-example>p{color:#5b705f}
html[data-theme="light"] .pool-example-footer{border-color:#d6e3d5}
html[data-theme="light"] .pool-example-footer strong{color:#204f31}
html[data-theme="light"] .pool-caps span{background:#e5efe0;color:#2c5439;border:1px solid #c5d9c5}
/* Story stays sticky on larger screens, with a clear reading rail. */
html[data-theme="light"] .story-section{background:#f7f8f2}
html[data-theme="light"] .story-lead,html[data-theme="light"] .story-chapter p:not(.story-phase){color:#536857}
html[data-theme="light"] .story-founders{color:#355c42}
html[data-theme="light"] .story-timeline:before{background:#d3e0d2}
html[data-theme="light"] .story-chapter{border-color:#d9e3d6}
html[data-theme="light"] .story-chapter h3{color:#233d2b}
html[data-theme="light"] .story-phase{color:#176a45}
html[data-theme="light"] .story-chapter:before{background:#b7d2bb;border-color:#f7f8f2}
/* Public plans use an actual paper surface, not a set of dark cards in light mode. */
html[data-theme="light"] .plan-card{background:#fffefa;border-color:#d2e0d1;box-shadow:0 9px 28px #193c2210}
html[data-theme="light"] .plan-card li{color:#3f5844}
html[data-theme="light"] .plan-card .plan-label{color:#176a45}
html[data-theme="light"] .plan-price{color:#1d3928}
html[data-theme="light"] .plan-card .secondary{background:#f7faf4}
html[data-theme="light"] .plans-main,html[data-theme="light"] .contact-section{background:var(--bg)}
html[data-theme="light"] .contact-field input,html[data-theme="light"] .contact-field textarea{background:#fffefa;color:#1b3024;border-color:#bacdbb}
html[data-theme="light"] .contact-field input::placeholder,html[data-theme="light"] .contact-field textarea::placeholder{color:#708373}
html[data-theme="light"] .form-status.success{color:#145332;background:#e4f3e8;border-color:#9cc6ab}
html[data-theme="light"] .form-status.error{color:#8e2431;background:#fbeaec;border-color:#e8bbc0}
html[data-theme="light"] .form-status.pending{background:#e9f2e8}
@media(max-width:800px){html[data-theme="light"] .nav nav.open{background:#fffefa;border-color:#d3e0d2;box-shadow:0 16px 32px #173e2122}html[data-theme="light"] .hero-bottom{border-top-color:#c9ddc9}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle *{transition:none!important}}
/* The sticky founder heading must stay readable against the light paper surface. */
html[data-theme="light"] .story-intro h2{color:#213c2c}
html[data-theme="light"] .story-timeline:after{background:#176a45}
