/* Sacred Steak — style guide from the logo.
   The logo is white line-art on pure black: a steak on a hook beneath a
   halo, blood dripping onto a plate. The site follows it exactly:
   black ground, white ink, thin rules, nothing coloured, nothing soft.
   The halo returns as the section divider (the <hr> is an oval ring). */
:root {
  --ink: #f2efe8;
  --paper: #000000;
  --muted: #9a978f;
  --rule: #3a3a3a;
  --note-bg: #0d0d0d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: #ffffff; text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: #ffffff; }
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 1.2rem 1.2rem;
  text-align: center;
}
header.site .logo img {
  display: block;
  width: 210px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto 0.9rem;
}
header.site .brand {
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
header.site .brand a { color: #ffffff; text-decoration: none; }
header.site .tagline {
  color: var(--muted);
  font-style: italic;
  margin: 0.35rem 0 0;
  font-size: 1rem;
}
nav.main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
nav.main a { color: var(--ink); text-decoration: none; }
nav.main a:hover { color: #ffffff; text-decoration: underline; }
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}
main.wide { max-width: 46rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.5rem; color: #ffffff; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; line-height: 1.3; color: #ffffff; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; color: #ffffff; }
h4 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; color: #ffffff; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }
blockquote {
  margin: 1rem 0 1.2rem 0;
  padding: 0.6rem 1.1rem;
  border-left: 2px solid #ffffff;
  background: var(--note-bg);
  font-style: italic;
}
blockquote p { margin: 0 0 0.5rem; }
blockquote p:last-child { margin-bottom: 0; }
/* The halo: every horizontal rule is an oval ring, like the one above the steak. */
hr {
  border: 1px solid #555555;
  border-radius: 50%;
  width: 7rem;
  height: 1.5rem;
  margin: 2.4rem auto;
}
table { border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.92rem; }
th, td { border: 1px solid var(--rule); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--note-bg); color: #ffffff; }
code { font-size: 0.85em; background: var(--note-bg); padding: 0.1em 0.3em; }
.note {
  background: var(--note-bg);
  border: 1px solid var(--rule);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
.note strong { color: #ffffff; }
.byline { color: var(--muted); font-style: italic; margin-bottom: 1.4rem; }
.toc { background: var(--note-bg); border: 1px solid var(--rule); padding: 1rem 1.3rem; margin: 0 0 1.6rem; }
.toc h2 { margin-top: 0; font-size: 1.05rem; }
.toc ul { margin-bottom: 0; }
.post { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 1.6rem; }
.post h2 { margin-top: 0; }
.post .day { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.4rem 1rem 2rem;
}
footer.site p { margin: 0 0 0.4rem; }

/* Mobile */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  header.site { padding: 1.5rem 1rem 1rem; }
  header.site .logo img { width: 170px; }
  header.site .brand { font-size: 1.5rem; letter-spacing: 0.1em; }
  header.site .tagline { font-size: 0.95rem; }
  /* Stack the nav as a tappable list instead of a cramped wrapped row. */
  nav.main {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }
  main { padding: 1.5rem 1rem 2.5rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }
  blockquote { padding: 0.5rem 0.9rem; }
  .toc, .note { padding: 0.8rem 0.9rem; }
  /* Wide tables scroll sideways instead of breaking the layout. */
  table { display: block; overflow-x: auto; }
  hr { width: 5rem; height: 1.2rem; }
}
