/*
Theme Name: Mist & Fire Coming Soon
Theme URI:
Author: Mist & Fire
Description: A minimal "coming soon" holding page for mistandfire.com, matching the site's warm editorial visual identity. Upload and activate to show this page while the real site is in progress.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
*/

/* Layout: centered single column, same editorial chrome-band system as the
   site itself. The page is a held breath before the first issue, not an error state. */
:root {
  --ground:     #F6F2EF;
  --chrome:     #E4E9EA;
  --paper:      #FFFCFA;
  --edge:       #DACFC7;
  --edge-cool:  #C3CDD0;
  --ink:        #241F1C;
  --ink-soft:   #5E554F;
  --amber:      #A85B17;
  --ember:      #7C3D10;
  --amber-wash: #F2E2D1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #191513;
    --chrome:     #13171A;
    --paper:      #221D19;
    --edge:       #3A322C;
    --edge-cool:  #2D353A;
    --ink:        #EBE5DF;
    --ink-soft:   #A79C93;
    --amber:      #E09A4B;
    --ember:      #F0B571;
    --amber-wash: #2B2018;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground:     #191513;
  --chrome:     #13171A;
  --paper:      #221D19;
  --edge:       #3A322C;
  --edge-cool:  #2D353A;
  --ink:        #EBE5DF;
  --ink-soft:   #A79C93;
  --amber:      #E09A4B;
  --ember:      #F0B571;
  --amber-wash: #2B2018;
  color-scheme: dark;
}

:root {
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Newsreader", "Iowan Old Style", Georgia, serif;
  --s--1: 0.875rem;
  --s-0:  1.1875rem;
  --s-1:  1.375rem;
  --s-2:  1.75rem;
  --s-3:  2.5rem;
  --s-4:  3.4rem;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s-0);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, .wordmark { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 40, "WONK" 1; line-height: 1.1; text-wrap: balance; margin: 0; }

.band { background: var(--chrome); }
.wrap {
  max-width: 62ch;
  margin: 0 auto;
  width: 100%;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.masthead { border-bottom: 1px solid var(--edge-cool); }
.masthead .wrap { padding-block: 22px; }
.wordmark { font-size: var(--s-2); letter-spacing: -0.015em; }
.wordmark .amp { color: var(--amber); font-style: italic; font-variation-settings: "SOFT" 90, "WONK" 1; padding-inline: 0.08em; }

main { flex: 1; display: flex; align-items: center; }
.main-wrap { padding-block: 72px; }

.kicker {
  font-family: var(--display);
  font-size: var(--s--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  border-left: 3px solid var(--amber);
  padding-left: 12px;
}

h1 {
  font-size: clamp(var(--s-3), 7vw, var(--s-4));
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 14ch;
}

.lede {
  font-size: var(--s-1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 40px;
}

.capture {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--amber);
  padding: 28px 26px;
  margin-bottom: 40px;
}
.capture h2 { font-size: var(--s-1); margin: 0 0 8px; font-family: var(--display); font-weight: 600; }
.capture p { color: var(--ink-soft); margin: 0 0 18px; font-size: var(--s--1); }
.capture-form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--body);
  font-size: var(--s-0);
  padding: 11px 14px;
  border: 1px solid var(--edge);
  background: var(--ground);
  color: var(--ink);
}
.capture input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.capture button {
  font-family: var(--display);
  font-size: var(--s--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 22px;
  border: none;
  background: var(--ink);
  color: var(--ground);
  cursor: pointer;
}
.capture button:hover { background: var(--amber); color: #FFF; }
.capture-note { font-size: var(--s--1); color: var(--ink-soft); margin-top: 14px; }
.capture-note[hidden] { display: none; }

.progress-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--s--1);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.progress-track {
  flex: 1 1 160px;
  max-width: 220px;
  height: 6px;
  background: var(--edge);
  position: relative;
}
.progress-fill {
  position: absolute;
  inset: 0;
  width: 90%;
  background: var(--amber);
}

footer { border-top: 1px solid var(--edge-cool); }
footer .wrap { padding-block: 26px; }
footer p { margin: 0; font-size: var(--s--1); color: var(--ink-soft); max-width: 48ch; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
