/*
Theme Name: FogPie
Theme URI: https://fogpie.com
Author: Jeff Kuhne
Description: Steampunk instrument theme for the FogPie technical site.
Version: 1.0.0
Requires at least: 6.4
Text Domain: fogpie
*/

:root {
  --ink: #120e0b;
  --soot: #1c1612;
  --cream: #f3e6cf;
  --cream-dim: rgba(243, 230, 207, 0.72);
  --brass: #e0c48a;
  --brass-deep: #8d6232;
  --copper: #c56a38;
  --line: rgba(224, 196, 138, 0.45);
  --plate: rgba(22, 16, 12, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(197, 106, 56, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.72), rgba(10, 8, 6, 0.88)),
    url("assets/field.jpg") center / cover fixed;
}

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff4df; }

img { max-width: 100%; height: auto; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(14, 10, 8, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--brass);
  box-shadow: 0 0 0 4px rgba(224, 196, 138, 0.12);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-kicker {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brass);
}

.latch {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 2.5rem;
  min-height: 2.75rem;
  color: transparent;
  background: transparent;
  text-decoration: none;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  cursor: default;
}


.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.15) 0%, rgba(18, 14, 11, 0.2) 40%, rgba(18, 14, 11, 0.92) 100%),
    url("assets/hero.jpg") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 4rem 0 3.2rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.lede {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.2rem;
  color: var(--cream-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--brass);
  color: var(--ink);
  background: linear-gradient(180deg, #f0d7a4, #c79655);
  text-decoration: none;
  font-weight: 600;
}

.button.ghost {
  color: var(--cream);
  background: transparent;
}

.section { padding: 3.5rem 0; }

.section h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.deck {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--cream-dim);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card, .plate, .spec {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.2rem 1.2rem 1.3rem;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224, 196, 138, 0.18);
  border-radius: 12px;
  pointer-events: none;
}

.card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.7rem;
}

.card p { margin: 0; color: var(--cream-dim); }

.card .index {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.spec th, .spec td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(224, 196, 138, 0.16);
  vertical-align: top;
}

.spec th {
  width: 28%;
  font-weight: 560;
  color: var(--brass);
  letter-spacing: 0.04em;
}

.plate {
  margin: 2.5rem auto 3rem;
  padding: 1.4rem 1.4rem 1.8rem;
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.82), rgba(18, 14, 11, 0.9)),
    url("assets/ledger.jpg") center / cover;
}

.plate h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.prose h2 { margin: 1.6rem 0 0.4rem; font-size: 1.8rem; }
.prose h3 { margin: 1.2rem 0 0.3rem; font-size: 1.25rem; }
.prose p { margin: 0.6rem 0; }
.prose ul, .prose ol { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  color: #fff1d4;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.login {
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.78), rgba(10, 8, 6, 0.88)),
    url("assets/hero.jpg") center / cover fixed;
}

body.login #login h1 a {
  background-image: url("assets/emblem.jpg");
  background-size: contain;
  background-position: center;
  width: 120px;
  height: 120px;
}

body.login form {
  border: 1px solid var(--line);
  background: rgba(18, 14, 11, 0.88);
  color: var(--cream);
  box-shadow: var(--shadow);
}

body.login label,
body.login #nav a,
body.login #backtoblog a { color: var(--cream); }

body.login .button-primary {
  background: linear-gradient(180deg, #f0d7a4, #c79655);
  border-color: var(--brass-deep);
  color: var(--ink);
  text-shadow: none;
}

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; }
  .latch { flex: 0 0 auto; width: 100%; min-height: 2.25rem; }
  .hero { min-height: 70vh; background-attachment: scroll; }
  body { background-attachment: scroll; }
}
