/* The Brew Journal — coffee-roast visual.
   Serif type, roast-color bands, rising steam lines, warm browns. No rounded corners. */
:root {
  --bg: #f5efe6;
  --card: #fbf6ee;
  --ink: #2f2418;
  --muted: #7a6a58;
  --line: #ddcdb8;
  --accent: #6b3f22;
  --accent-deep: #4a2a15;
  --roast-1: #d9b483;
  --roast-2: #b5874f;
  --roast-3: #8a5a2b;
  --roast-4: #6b3f22;
  --roast-5: #3f2413;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(107,63,34,.035) 0 1px, transparent 1px 7px);
  color: var(--ink);
  line-height: 1.72;
  font-size: 17px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* roast band motif — a stripe of roast levels */
.roast-band {
  height: 10px;
  background: linear-gradient(90deg,
    var(--roast-1) 0 20%, var(--roast-2) 20% 40%, var(--roast-3) 40% 60%,
    var(--roast-4) 60% 80%, var(--roast-5) 80% 100%);
}

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; position: relative;
  border: 1px solid var(--accent); overflow: hidden; flex: 0 0 auto;
}
.brand-mark .steam {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 12px;
  background: var(--accent); transform: translateX(-50%);
  box-shadow: -6px 2px 0 var(--accent), 6px 2px 0 var(--accent);
}
.brand-mark .cup { position: absolute; left: 9px; right: 9px; bottom: 8px; height: 12px; background: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: .2px; font-size: 18px; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; font-family: var(--serif); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--ink); font-size: 15px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--accent); text-decoration: none; }

/* counter (hero) */
.counter {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
  position: relative;
}
.counter .steam-row { position: absolute; top: 22px; left: 20px; display: flex; gap: 10px; }
.counter .steam-row span {
  display: block; width: 3px; height: 20px; background: var(--roast-3); opacity: .5;
  animation: rise 3.4s ease-in-out infinite;
}
.counter .steam-row span:nth-child(2) { animation-delay: .6s; height: 26px; }
.counter .steam-row span:nth-child(3) { animation-delay: 1.2s; height: 16px; }
@keyframes rise { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-7px); opacity: .7; } }
.counter-kicker { color: var(--accent); font-size: 12px; letter-spacing: 3px; font-weight: 700; margin-bottom: 12px; }
.counter h1 { font-size: 36px; line-height: 1.14; font-weight: 700; margin-bottom: 14px; max-width: 760px; }
.counter-lede { max-width: 660px; color: var(--muted); font-size: 18px; }

/* generic sections */
section { padding: 32px 0; }
.section-label { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 700; }

/* legend */
.legend-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legend-list li { font-size: 15px; color: var(--ink); }
.legend-list .chip { margin-right: 8px; }

/* category chip */
.chip {
  display: inline-block; font-family: var(--serif); font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; padding: 2px 9px;
  border-left: 4px solid currentColor; background: rgba(107,63,34,.06);
}
.k-brew { color: #6b3f22; }
.k-review { color: #8a5a2b; }
.k-latte { color: #a8752f; }
.k-roast { color: #4a2a15; }

/* station (category) cards */
.station-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.station-card {
  background: var(--card); border: 1px solid var(--line);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  border-left: 6px solid var(--accent);
}
.station-card:hover { border-color: var(--accent); text-decoration: none; }
.station-card .band { height: 4px; width: 100%; background: linear-gradient(90deg, var(--roast-2), var(--roast-5)); }
.station-name { font-weight: 700; font-size: 18px; }
.station-count { font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

/* recipe cards */
.recipe-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.recipe-head h2 { font-size: 24px; font-weight: 700; }
.recipe-more { font-size: 14px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe-card {
  background: var(--card); border: 1px solid var(--line); padding: 0 0 16px; color: var(--ink);
  display: flex; flex-direction: column;
}
.recipe-card:hover { border-color: var(--accent); text-decoration: none; }
.recipe-card .band { height: 6px; background: linear-gradient(90deg, var(--roast-1), var(--roast-4)); margin-bottom: 14px; }
.recipe-card .inner { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.recipe-title { font-weight: 700; font-size: 17px; line-height: 1.32; }
.recipe-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 8px 0; }
.recipe-spec .kv { display: flex; flex-direction: column; font-size: 12px; }
.recipe-spec .kv b { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.recipe-desc { font-size: 14px; color: var(--muted); }

/* page head */
.page-head { padding: 34px 0 12px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 32px; line-height: 1.18; font-weight: 700; }
.lede { color: var(--muted); margin-top: 8px; font-size: 17px; }

/* item layout: recipe card + notes */
.desk-layout { display: grid; grid-template-columns: 310px 1fr; gap: 30px; padding-top: 24px; padding-bottom: 44px; }
.recipe-sheet { align-self: start; background: var(--card); border: 1px solid var(--line); border-top: 8px solid var(--accent); }
.recipe-sheet .sheet-band { height: 6px; background: linear-gradient(90deg, var(--roast-1) 0 20%, var(--roast-2) 20% 40%, var(--roast-3) 40% 60%, var(--roast-4) 60% 80%, var(--roast-5) 80% 100%); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.sheet-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-list-dl { }
.fact-row { display: flex; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { flex: 0 0 42%; padding: 10px 14px; color: var(--muted); border-right: 1px solid var(--line); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.fact-row dd { flex: 1; padding: 10px 14px; }
.fact-list { list-style: none; }
.fact-list li { position: relative; padding-left: 12px; }
.fact-list li:before { content: "\2013"; position: absolute; left: 0; color: var(--accent); }

/* notes (prose) */
.notes { background: var(--card); border: 1px solid var(--line); padding: 28px 32px; }
.notes .sec { margin-bottom: 26px; position: relative; }
.notes .sec:last-child { margin-bottom: 0; }
.notes h2 { font-size: 21px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.sec-num {
  color: var(--accent); font-size: 14px; font-weight: 700;
  border: 1px solid var(--accent); padding: 0 6px; flex: 0 0 auto;
}
.notes p { margin-bottom: 13px; color: #3a2e21; }
.notes p:last-child { margin-bottom: 0; }
.notes .related h2 { border-top: 1px dashed var(--line); padding-top: 14px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 7px 0 7px 14px; border-bottom: 1px dashed var(--line); position: relative; }
.related-list li:before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); }

/* footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 20px; padding: 0 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding-top: 26px; }
.footer-brand { flex: 1 1 320px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--ink); font-size: 14px; }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 880px) {
  .station-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .desk-layout { grid-template-columns: 1fr; }
  .counter h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .station-grid, .recipe-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; }
  .main-nav { gap: 14px; }
  .notes { padding: 20px 18px; }
  body { font-size: 16px; }
}
