/* Brosgarden — minimal dark, IBM Plex */

:root {
  --bg: #0c0c0c;
  --bg-elevated: #111;
  --bg-code: #141414;
  --text: #d6d6d6;
  --text-muted: #8b8b8b;
  --title: #f4f4f4;
  --link: #8eb4d9;
  --link-hover: #a8c8e8;
  --link-visited: #7a9ab8;
  --border: #262626;
  --border-subtle: #2a2a2a;
  --accent-line: rgba(255, 255, 255, 0.08);
  --content-width: 720px;
  --space: 1.75rem;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.site-header {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--accent-line);
  padding: 1rem 0;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--title);
}

.site-title:hover {
  color: var(--link);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav .page-link {
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav .page-link:hover {
  color: var(--link);
}

/* Main column */
.page-content {
  flex: 1;
  padding: var(--space) 0 calc(var(--space) * 2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--accent-line);
  padding: var(--space) 0;
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--link);
}

/* Home */
.page-heading {
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--title);
  margin: 0 0 var(--space);
}

.home-intro {
  margin-bottom: calc(var(--space) * 1.25);
}

.post-list-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list > li {
  margin-bottom: calc(var(--space) * 1.1);
}

.post-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.post-list-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.post-list-title a {
  color: var(--title);
}

.post-list-title a:hover {
  color: var(--link);
}

/* Page / post */
.page-header,
.post-header {
  margin-bottom: var(--space);
}

.page-title,
.post-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--title);
}

.post-header .post-meta {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.post-categories {
  color: var(--text-muted);
}

/* Recipes */
.recipe-subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.recipe-meta-item {
  margin: 0;
}

.recipe-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recipe-meta dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--text);
}

.recipe-section-title {
  margin: calc(var(--space) * 1.25) 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--title);
  letter-spacing: -0.02em;
}

.recipe-ingredient-list {
  margin: 0 0 calc(var(--space) * 1);
  padding-left: 1.35rem;
}

.recipe-ingredient-list li {
  margin-bottom: 0.35rem;
}

.recipe-ingredient-list li > p {
  margin: 0;
}

.recipe-list .recipe-list-blurb {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Prose (markdown) */
.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: calc(var(--space) * 1.25) 0 0.65rem;
  font-weight: 500;
  color: var(--title);
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose h4 {
  font-size: 1.05rem;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote,
.prose pre,
.prose table,
.prose .highlight {
  margin: 0 0 calc(var(--space) * 0.65);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

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

.prose blockquote {
  margin-left: 0;
  padding-left: calc(var(--space) * 0.65);
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--accent-line);
  margin: calc(var(--space) * 1.25) 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  color: #b8b8b8;
}

.prose th,
.prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}

.prose tr:nth-child(even) {
  background-color: var(--bg-elevated);
}

.prose th {
  background-color: #161616;
  text-align: left;
}

/* Inline & fenced code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: var(--bg-code);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background-color: var(--bg-code);
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

/* Rouge / Kramdown blocks */
.highlight,
.highlighter-rouge .highlight {
  background: var(--bg-elevated) !important;
  border-radius: 6px;
}

div.highlight,
figure.highlight {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

div.highlight pre,
figure.highlight pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-elevated);
}

/* Syntax (Pygments / Rouge classes) */
.highlight .c,
.highlight .cm,
.highlight .c1,
.highlight .cs {
  color: #8b949e !important;
  font-style: italic;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr {
  color: #7eb6ff !important;
  font-weight: 600;
}

.highlight .o,
.highlight .ow {
  color: #c9d1d9 !important;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx {
  color: #a8d5a8 !important;
}

.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #9cdcfe !important;
}

.highlight .na,
.highlight .no,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi {
  color: #79c0ff !important;
}

.highlight .nb,
.highlight .bp {
  color: #d2a8ff !important;
}

.highlight .nc,
.highlight .nn,
.highlight .nt {
  color: #7eb6ff !important;
  font-weight: 600;
}

.highlight .nf,
.highlight .ne {
  color: #d2a8ff !important;
  font-weight: 600;
}

.highlight .err {
  color: #ff7b72 !important;
  background-color: transparent !important;
}

.highlight .gd {
  color: #ffa198 !important;
  background-color: rgba(255, 123, 114, 0.12) !important;
}

.highlight .gi {
  color: #7ee787 !important;
  background-color: rgba(126, 231, 135, 0.08) !important;
}

/* 404 */
.err-404 {
  text-align: center;
  padding: calc(var(--space) * 2) 0;
}

.err-404-image {
  display: block;
  max-width: min(100%, 28rem);
  height: auto;
  margin: 0 auto var(--space);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.err-404-tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--title);
}

.err-404-code {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--text-muted);
}

.err-404-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.err-404-sub a {
  color: var(--link);
}

@media screen and (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .page-title,
  .post-title {
    font-size: 1.65rem;
  }
}
