/*
Theme Name: Ignithor
Theme URI: https://ignithor.com
Author: Ignithor Intelligence OÜ
Description: Ignithor's own theme: a teaser front page with the waitlist, the Media blog and plain pages. Nothing is loaded from other sites: the fonts come with the theme, no emoji script, no tracking, comments off.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: ignithor
*/

:root {
  --obsidian: #000000;
  --red: #86262b;
  --red-deep: #5e191d;
  --red-light: #d98d90;
  --stone: #f4f1ee;
  --surface: #ffffff;
  --border: #e2dbd4;
  --muted: #615a54;
  --sidebar-muted: #9a928b;
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--obsidian); font: 16px/1.6 var(--text); }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.dark { background: var(--obsidian); color: var(--stone); }
header.nav .wrap { display: flex; align-items: center; gap: 24px; padding: 18px 0; flex-wrap: wrap; }
header.nav .brand img { display: block; width: 160px; height: auto; }
header.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
header.nav a:not(.brand) { color: var(--sidebar-muted); text-decoration: none; font-size: 15px; }
header.nav a:not(.brand):hover, header.nav .current-menu-item a, header.nav .current_page_parent a { color: var(--stone); }

/* front page */
.hero { padding: 72px 0 88px; }
.hero h1 { color: var(--stone); max-width: 14em; }
.hero h1 em { font-style: italic; color: var(--red-light); }
.hero .lead, .hero .entry { color: #d8d2cc; font-size: 19px; max-width: 36em; }
.hero .entry a { color: var(--red-light); }
.hero .eyebrow { color: var(--red-light); }

/* the waitlist form (whatever form block sits in the front page's text) */
.hero form, .waitlist form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero input[type=email], .hero input[type=text], .waitlist input[type=email] {
  flex: 1 1 260px; padding: 12px 14px; border-radius: 8px; border: 1px solid #3a3a3a; background: #111; color: var(--stone); font: inherit;
}
.hero button, .hero input[type=submit], .button, .wp-block-button__link {
  padding: 12px 20px; border-radius: 8px; border: 1px solid var(--red); background: var(--red); color: var(--stone);
  font: 600 15px var(--text); cursor: pointer; text-decoration: none; display: inline-block;
}
.hero button:hover, .hero input[type=submit]:hover, .button:hover, .wp-block-button__link:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--stone); }
.hero label { font-size: 14px; color: #bdb6af; }

/* Media: lists and posts */
section.block { padding: 56px 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { color: var(--obsidian); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0; color: var(--muted); }
time, .meta { font-size: 13px; color: var(--muted); }
.page-head { padding: 48px 0 8px; }
article.post-full { padding: 40px 0 72px; }
article.post-full .featured { margin: 24px 0; border-radius: 12px; overflow: hidden; }
.entry-content { font-size: 18px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--muted); }
.entry-content pre { background: #111; color: var(--stone); padding: 14px; border-radius: 8px; overflow-x: auto; }
.pagination { display: flex; gap: 12px; justify-content: center; padding: 32px 0 0; }
.back { display: inline-block; margin-top: 32px; }

/* footer */
footer.site { background: var(--obsidian); color: var(--sidebar-muted); font-size: 14px; padding: 32px 0; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer.site a { color: var(--sidebar-muted); }
footer.site a:hover { color: var(--stone); }

@media (max-width: 600px) {
  .hero { padding: 48px 0 56px; }
  .entry-content { font-size: 17px; }
}

/* preview mode: the coming-soon page visitors see (preview-page.php), and the reminder banner for editors */
body.coming-soon { background: var(--obsidian); color: var(--stone); min-height: 100vh; display: flex; flex-direction: column; }
.soon { flex: 1; width: min(640px, 100% - 32px); margin: 0 auto; padding: 12vh 0 48px; }
.soon-logo { display: block; width: 180px; height: auto; margin-bottom: 56px; }
.soon .eyebrow { color: var(--red-light); }
.soon h1 { color: var(--stone); font-size: clamp(34px, 6vw, 56px); margin-top: 12px; }
.soon-text { color: #cfc8c1; font-size: 18px; margin-top: 18px; }
.soon-text a { color: var(--red-light); }
.soon-text form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soon-text input[type=email], .soon-text input[type=text] {
  flex: 1 1 240px; padding: 12px 14px; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; color: var(--stone); font: inherit;
}
.soon-text button, .soon-text input[type=submit] {
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--red); background: var(--red); color: var(--stone); font: 600 15px var(--text); cursor: pointer;
}
.soon-notice { color: var(--sidebar-muted); font-size: 13px; margin-top: 28px; max-width: 34em; }
.soon-notice a { color: var(--sidebar-muted); }
.soon-foot { color: var(--sidebar-muted); font-size: 13px; padding: 24px 16px; text-align: center; }
.soon-foot a { color: var(--sidebar-muted); }
.preview-banner { background: var(--red-deep); color: var(--stone); font-size: 14px; text-align: center; padding: 8px 16px; }
.preview-banner a { color: var(--stone); font-weight: 600; }
