/* Slow Craft Weekly — Craft Pattern Grid visual:
   graph-paper grid ground, dashed "stitch" borders, serif small-caps heads.
   No rounded corners, no emoji. Warm crafts palette from the spec. */
:root {
  --bg: #f4efe6;
  --paper: #fbf7ef;
  --ink: #3a2e22;
  --accent: #8a5a2b;
  --accent-dark: #6f4620;
  --muted: #7a6a56;
  --line: #d8cdb8;
  --grid: rgba(138, 90, 43, 0.10);
  --c-deep: #8a5a2b;
  --c-long: #4a6741;
  --c-patience: #7a3b52;
  --c-slow: #2f5d6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body.craftgrid {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.68;
  font-size: 16px;
}

.bench { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-variant: small-caps;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------- header ---------- */
.craft-header {
  background: var(--paper);
  border-bottom: 2px dashed var(--accent);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.header-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 22px;
}
.craft-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.craft-brand:hover { text-decoration: none; }
.brand-glyph {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); color: var(--accent);
  font-family: Georgia, serif; font-size: 22px; line-height: 1;
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, rgba(138,90,43,.18) 5px 6px);
}
.brand-words { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-variant: small-caps; letter-spacing: 0.06em; font-weight: 700; font-size: 19px; }
.brand-tag {
  font-size: 11px; color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif;
}
.craft-nav { display: flex; gap: 20px; }
.craft-nav a {
  color: var(--ink); font-size: 14px; padding: 2px 0 3px;
  border-bottom: 2px solid transparent;
  font-family: Georgia, serif; font-variant: small-caps; letter-spacing: 0.04em; font-size: 16px;
}
.craft-nav a:hover { border-bottom-color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.shelf-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 46px 0 40px;
}
.hero-kicker {
  color: var(--accent); font-size: 12px; letter-spacing: 3px; font-weight: 700;
  margin-bottom: 12px; font-family: "Segoe UI", Arial, sans-serif; text-transform: uppercase;
}
.shelf-hero h1 { font-size: 38px; line-height: 1.12; margin-bottom: 14px; }
.hero-lede { max-width: 660px; color: var(--muted); font-size: 17px; }
.hero-rules {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
}
.hero-rules li {
  border: 1px dashed var(--line); padding: 4px 10px; font-size: 12px; color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0.04em;
  background: var(--paper);
}

/* ---------- section frame ---------- */
.rack { padding: 34px 0; }
.rack-label {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px;
}

/* ---------- category "doors" ---------- */
.door-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.craft-door {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px dashed var(--accent);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
}
.craft-door:hover { border-color: var(--accent); text-decoration: none; }
.door-count {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase;
}
.door-name { font-size: 21px; }

/* ---------- shelf groups + project cards ---------- */
.shelf-group { margin-bottom: 34px; }
.shelf-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 18px;
}
.shelf-head h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.shelf-figure {
  width: 12px; height: 12px; background: var(--accent); display: inline-block;
}
.shelf-more { font-size: 13px; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0.04em; }

.pcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px dashed var(--accent);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
}
.pcard:hover { border-color: var(--accent); text-decoration: none; }
.pcard-cat {
  align-self: flex-start; font-family: "Segoe UI", Arial, sans-serif; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor;
}
.pcard-title { font-family: Georgia, serif; font-weight: 700; font-size: 16px; line-height: 1.3; }
.pcard-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px;
}
.pcard-cell { display: flex; flex-direction: column; font-size: 12px; }
.pcard-cell b {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.pcard-desc { font-size: 13px; color: var(--muted); }

.cat-deep { color: var(--c-deep); }
.cat-long { color: var(--c-long); }
.cat-patience { color: var(--c-patience); }
.cat-slow { color: var(--c-slow); }
.edge-deep { border-top-color: var(--c-deep); }
.edge-long { border-top-color: var(--c-long); }
.edge-patience { border-top-color: var(--c-patience); }
.edge-slow { border-top-color: var(--c-slow); }

/* ---------- page leaf head ---------- */
.leaf-head { padding: 38px 0 14px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-family: "Segoe UI", Arial, sans-serif; }
.crumb a { color: var(--muted); }
.leaf-head h1 { font-size: 32px; line-height: 1.16; }
.lede { color: var(--muted); margin-top: 10px; max-width: 680px; }

/* ---------- entry: fact panel + prose ---------- */
.panel-layout {
  display: grid; grid-template-columns: 310px 1fr; gap: 30px;
  padding-top: 26px; padding-bottom: 44px;
}
.project-panel {
  align-self: start; background: var(--paper); border: 1px solid var(--line);
  border-top: 3px dashed var(--accent);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px dashed var(--line);
}
.panel-label {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.fact-list { list-style: none; }
.fact-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row:last-child { border-bottom: none; }
.fact-key {
  flex: 0 0 42%; padding: 10px 14px; color: var(--muted); border-right: 1px dashed var(--line);
  font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; letter-spacing: 0.03em;
}
.fact-val { flex: 1; padding: 10px 14px; }
.fact-val ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fact-val li {
  border: 1px solid var(--line); padding: 1px 8px; font-size: 12px; background: var(--paper);
}

.prose {
  background: var(--paper); border: 1px solid var(--line); padding: 28px 32px;
}
.prose .sec { margin-bottom: 26px; }
.prose .sec:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: 21px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px;
  border-bottom: 1px dashed var(--line); padding-bottom: 6px;
}
.sec-num {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; color: var(--accent);
  border: 1px solid var(--accent); padding: 0 6px; letter-spacing: 0.06em;
}
.prose p { margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.related-list li:last-child { border-bottom: none; }

/* ---------- footer ---------- */
.craft-footer {
  background: var(--paper); border-top: 2px dashed var(--accent);
  margin-top: 24px; padding: 32px 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-brand { flex: 1 1 320px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-nav { display: flex; gap: 16px; font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; }
.footer-nav a { color: var(--ink); }
.copyright {
  flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
}

@media (max-width: 900px) {
  .door-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-layout { grid-template-columns: 1fr; }
  .shelf-hero h1 { font-size: 31px; }
}
@media (max-width: 560px) {
  .door-grid, .pcard-grid { grid-template-columns: 1fr; }
  .header-band { flex-direction: column; align-items: flex-start; gap: 12px; }
  .craft-nav { gap: 14px; }
  .leaf-head h1, .shelf-hero h1 { font-size: 26px; }
  .prose { padding: 22px 18px; }
  .fact-row { flex-direction: column; }
  .fact-key { flex: none; border-right: none; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
}
