/* Flattop Gourmet — cook's notebook on steel
   Mobile-first. Text-first. No framework. */

:root {
  --paper: #f6f1e8;
  --paper-2: #efe6d6;
  --card: #fffdf8;
  --ink: #1c1814;
  --ink-muted: #5a544c;
  --steel: #6e6962;
  --steel-dark: #3a3733;
  --rust: #b3471a;
  --rust-deep: #8a3613;
  --rule: #d8cfbc;
  --hot: #b3471a;
  --hold: #c4a46a;
  --off: #8a857c;
  --measure: 65ch;
  --sans: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(28, 24, 20, 0.06), 0 8px 24px rgba(28, 24, 20, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px — phone-first reading size */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* faint steel grain via stacked gradients, not a photo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(58, 55, 51, 0.03) 47px,
      rgba(58, 55, 51, 0.03) 48px
    );
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.75rem;
  z-index: 20;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.skip:focus {
  top: 0.75rem;
}

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

a {
  color: var(--rust-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* ----- header / nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, #c4beb0);
  border-bottom: 1px solid var(--steel-dark);
  box-shadow: 0 1px 0 #c9c0ae;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark:hover {
  color: var(--rust-deep);
}

.mark {
  display: block;
  width: 1.35rem;
  height: 0.7rem;
  background: linear-gradient(180deg, #9a9590 0%, #6a6660 45%, #4a4743 100%);
  border: 1px solid #2e2c29;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.nav-toggle {
  font-family: var(--sans);
}

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--steel);
  background: var(--card);
  color: var(--ink);
}

.nav-toggle > summary::-webkit-details-marker {
  display: none;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-nav a,
.site-nav summary {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.15rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav summary:hover {
  color: var(--rust);
}

.site-nav a[aria-current="page"],
.site-nav summary[aria-current="page"] {
  color: var(--rust-deep);
  box-shadow: inset 0 -2px 0 var(--rust);
}

.nav-drop {
  position: relative;
}

.nav-drop > summary {
  list-style: none;
  cursor: pointer;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop > summary::after {
  content: " ▾";
  font-size: 0.7em;
  color: var(--steel);
}

.nav-drop-list {
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0 0.35rem 0.85rem;
}

.nav-drop-list a {
  font-weight: 400;
  font-size: 0.92rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
  }

  .nav-drop-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 13rem;
    padding: 0.45rem 0.6rem;
    background: var(--card);
    border: 1px solid var(--steel-dark);
    box-shadow: var(--shadow);
    z-index: 12;
  }
}

/* ----- layout ----- */

.wrap {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

main {
  flex: 1;
  padding: 1.75rem 0 3.5rem;
}

.article {
  max-width: var(--measure);
  margin: 0 auto;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.55rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.45rem;
}

p,
li {
  margin: 0 0 0.9rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.muted,
.meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  padding-left: 0.15rem;
}

strong {
  font-weight: 650;
}

/* ----- homepage ----- */

.hero {
  max-width: 40rem;
  margin: 0.5rem auto 2.4rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 38ch;
}

.groups {
  display: grid;
  gap: 2.1rem;
}

.group h2 {
  margin-top: 0;
  border-bottom: 0;
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  padding-bottom: 0;
}

.cards {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rust);
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.card:hover {
  border-color: var(--steel);
  border-left-color: var(--rust);
  color: inherit;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ----- zones diagram ----- */

.zones {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  border: 0;
}

.zones-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  background: linear-gradient(180deg, #6a6660, #3f3c38);
  padding: 0.45rem;
  border: 1px solid #2a2825;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.z {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 0.2rem;
  color: #1c1814;
  line-height: 1.25;
}

.z span {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-bottom: 0.1rem;
}

.z.hot {
  background: #c45622;
  color: #fff8f2;
}

.z.mid {
  background: #d4b06a;
}

.z.off {
  background: #b8b3aa;
}

.zones figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

/* ----- tables ----- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

th {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  background: var(--paper-2);
}

td:first-child,
th:first-child {
  white-space: nowrap;
}

/* ----- related / notes ----- */

.related {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.related h2 {
  margin-top: 0;
  border: 0;
  font-size: 0.78rem;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.related ul {
  list-style: none;
  padding: 0;
}

.related li {
  margin-bottom: 0.35rem;
}

.note {
  background: var(--paper-2);
  border-left: 3px solid var(--steel);
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
}

/* ----- footer ----- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--steel-dark);
  background: var(--steel-dark);
  color: #e8e0d4;
  padding: 1.4rem 0 1.7rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.site-footer a {
  color: #f0c9b0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

.footer-tag {
  color: #c9c2b6;
  max-width: 42rem;
  margin: 0;
}

.footer-aff {
  color: #a8a196;
  margin: 0;
  font-size: 0.8rem;
}

/* ----- 404 / utility ----- */

.center-page {
  max-width: 36rem;
  margin: 2rem auto 0;
}

@media (max-width: 799px) {
  .nav-toggle {
    position: relative;
  }

  .nav-toggle[open] .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(18rem, 80vw);
    background: var(--card);
    border: 1px solid var(--steel-dark);
    padding: 0.7rem 0.9rem 0.85rem;
    box-shadow: var(--shadow);
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .related {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
