@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --accent: #b23b2e; --accent-ink: #ffffff;
  --ink: #2c241c; --muted: #6b5f4f; --dim: #948669;
  --cork: #cdb896; --cork-dark: #b8a17d;
  --paper: #faf6ec; --paper-shadow: rgba(44,36,28,.18);
  --line: #ddd0ae;
  --font-head: 'Zilla Slab', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(0,0,0,.05) 0, rgba(0,0,0,0) 3px),
    radial-gradient(circle at 68% 58%, rgba(0,0,0,.045) 0, rgba(0,0,0,0) 3px),
    radial-gradient(circle at 42% 82%, rgba(0,0,0,.04) 0, rgba(0,0,0,0) 2.5px),
    radial-gradient(circle at 85% 15%, rgba(0,0,0,.04) 0, rgba(0,0,0,0) 2.5px);
  background-size: 140px 140px, 160px 160px, 130px 130px, 150px 150px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }

/* ---- pushpin + washi tape (shared decorative bits) ---- */
.pushpin { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a7a, var(--accent) 60%, #7a1f16 100%); box-shadow: 0 3px 4px rgba(0,0,0,.35); z-index: 2; }
.pushpin.small { width: 12px; height: 12px; top: -7px; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.pushpin.large { width: 20px; height: 20px; top: -11px; box-shadow: 0 4px 5px rgba(0,0,0,.4); }
.washi-tape { position: absolute; top: -8px; left: 14px; width: 62px; height: 22px; background: repeating-linear-gradient(45deg, rgba(230,196,110,.85), rgba(230,196,110,.85) 6px, rgba(214,176,90,.85) 6px, rgba(214,176,90,.85) 12px); transform: rotate(-6deg); box-shadow: 0 1px 2px rgba(0,0,0,.15); opacity: .9; }
.washi-tape.big { width: 96px; height: 30px; left: 24px; top: -12px; }

/* ---- header ---- */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); padding: 20px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-group { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 58px; width: auto; max-width: 420px; object-fit: contain; }
.logo-box { width: 52px; height: 52px; flex-shrink: 0; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; font-family: var(--font-head); border-radius: 3px; transform: rotate(-2deg); }
.site-name { font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.site-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.social-dot { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-dot:hover { border-color: var(--accent); color: var(--accent); }

.folder-tabs { background: var(--ink); }
.folder-tabs-inner { display: flex; gap: 4px; overflow-x: auto; padding-top: 6px; }
.folder-tab { flex-shrink: 0; padding: 10px 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #d8cdb8; background: #3b3226; border-radius: 8px 8px 0 0; white-space: nowrap; }
.folder-tab.active { background: var(--paper); color: var(--ink); }
.folder-tab:hover:not(.active) { background: #4a4032; color: #fff; }

/* ---- layout ---- */
.layout { max-width: 1240px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; padding: 30px 18px 40px; } }
.main-col { min-width: 0; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.section-heading h2 { font-size: 20px; font-weight: 700; color: var(--ink); }
.see-all { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; white-space: nowrap; }
section.board-section { margin-bottom: 46px; }

/* ---- note card (shared pinned-photo-note look) ---- */
.note-card { position: relative; display: block; background: var(--paper); border-radius: 3px; box-shadow: 0 8px 16px var(--paper-shadow); padding: 0 0 16px; transition: transform .15s ease; }
.note-card:hover { transform: rotate(0deg) !important; box-shadow: 0 10px 20px rgba(44,36,28,.26); }
.note-media { position: relative; }
.placeholder-img { background: repeating-linear-gradient(45deg, #ebe2cb, #ebe2cb 10px, #e2d7ba 10px, #e2d7ba 20px); display: flex; align-items: center; justify-content: center; color: #a89872; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-mono); }
.note-media .placeholder-img { width: 100%; height: 160px; object-fit: cover; border-radius: 3px 3px 0 0; }
.featured-stamp { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); border: 1.5px solid var(--accent); padding: 3px 7px; border-radius: 2px; background: rgba(250,246,236,.9); transform: rotate(-3deg); }
.featured-stamp.static { position: static; transform: rotate(-2deg); display: inline-block; margin: 0 0 8px 6px; }
.tab-chip { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 2px; margin: 12px 16px 8px; }
.note-card h3 { font-size: 16px; line-height: 1.35; padding: 0 16px; margin: 0 0 8px; }
.note-card p { font-size: 13.5px; color: var(--muted); padding: 0 16px; margin: 0 0 10px; }
.note-card .meta { display: block; padding: 0 16px; }
.meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }

.rot-0 { transform: rotate(-1.3deg); }
.rot-1 { transform: rotate(1deg); }
.rot-2 { transform: rotate(-0.6deg); }
.rot-3 { transform: rotate(1.6deg); }
.rot-4 { transform: rotate(-1.9deg); }

/* ---- hero ---- */
.board-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; margin-bottom: 46px; }
@media (max-width: 760px) { .board-hero { grid-template-columns: 1fr; } }
.hero-note { position: relative; display: block; background: var(--paper); border-radius: 3px; box-shadow: 0 10px 22px var(--paper-shadow); padding: 0 0 22px; transform: rotate(-0.8deg); transition: transform .15s ease; }
.hero-note:hover { transform: rotate(0deg); }
.hero-note .note-media .placeholder-img { height: 320px; }
.hero-note h1 { font-size: 30px; line-height: 1.2; padding: 0 26px; margin: 8px 0 10px; }
.hero-note p { color: var(--muted); font-size: 15px; padding: 0 26px; margin: 0 0 12px; }
.hero-note .tab-chip { margin-left: 26px; }
.hero-note .meta { padding-left: 26px; }
@media (max-width: 520px) { .hero-note h1 { font-size: 23px; } .hero-note .note-media .placeholder-img { height: 210px; } }

.hero-side { display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
.hero-side .note-card .note-media .placeholder-img { height: 120px; }

/* ---- pinned row / cork grid ---- */
.pinned-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 700px) { .pinned-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pinned-row { grid-template-columns: 1fr; } }
.cork-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .cork-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cork-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cork-grid { grid-template-columns: 1fr; } }

/* ---- docket list ---- */
.docket-list { background: var(--paper); border-radius: 3px; box-shadow: 0 8px 16px var(--paper-shadow); overflow: hidden; }
.docket-row { display: flex; align-items: baseline; gap: 16px; padding: 14px 20px; border-top: 1px dashed var(--line); min-width: 0; }
.docket-row:first-child { border-top: none; }
.docket-row:hover { background: #f2ecdd; }
.docket-file { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.docket-file.standalone { display: inline-block; margin-bottom: 10px; }
.docket-title { font-size: 15.5px; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.docket-date { font-family: var(--font-mono); font-size: 11px; color: var(--dim); flex-shrink: 0; }
@media (max-width: 560px) { .docket-row { flex-wrap: wrap; } .docket-date { order: 3; width: 100%; } }

/* ---- mini note stack (most read) ---- */
.mini-note-stack { display: flex; flex-direction: column; gap: 18px; }
.mini-note { position: relative; display: block; background: var(--paper); border-radius: 3px; box-shadow: 0 6px 12px var(--paper-shadow); padding: 14px 16px; transition: transform .15s ease; }
.mini-note:hover { transform: rotate(0deg) !important; }
.mini-note-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.mini-note-meta { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); margin-top: 6px; text-transform: uppercase; letter-spacing: .03em; }

/* ---- tip-line CTA ---- */
.tip-note { position: relative; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--paper); border: 2px dashed var(--accent); border-radius: 4px; box-shadow: 0 8px 16px var(--paper-shadow); padding: 28px 30px; margin-bottom: 46px; transform: rotate(0.5deg); }
.tip-note-body { flex: 1; min-width: 220px; }
.tip-eyebrow { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tip-note h2 { font-size: 21px; margin: 0 0 8px; }
.tip-note p { color: var(--muted); font-size: 14px; margin: 0; }
.cta-form { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.cta-form input { flex: 1 1 140px; min-width: 0; max-width: 220px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 13.5px; font-family: var(--font-body); }
.cta-form button { padding: 11px 18px; border: none; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }

/* ---- sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget { position: relative; background: var(--paper); border-radius: 3px; box-shadow: 0 8px 16px var(--paper-shadow); padding: 20px; }
.widget h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.newsletter-widget form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-widget input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; }
.newsletter-widget button { padding: 10px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tab-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-cloud a { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; }
.tab-cloud a:hover { border-color: var(--accent); color: var(--accent); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.ad-widget { text-align: center; color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 30px 20px; }

/* ---- single post ---- */
.single-post { max-width: 740px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }
.category-title { font-size: 30px; margin-bottom: 6px; }
.category-desc { color: var(--muted); margin: 0 0 24px; }
.single-post-header { margin-bottom: 22px; }
.single-post-header h1 { font-size: 33px; line-height: 1.2; margin: 12px 0 10px; }
@media (max-width: 560px) { .single-post-header h1 { font-size: 25px; } }
.single-post-headline-wrap { position: relative; margin-bottom: 28px; }
.single-post-headline { width: 100%; max-height: 460px; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 20px var(--paper-shadow); }
.single-post-content { font-size: 17px; line-height: 1.8; background: var(--paper); padding: 30px 34px; border-radius: 4px; box-shadow: 0 8px 16px var(--paper-shadow); }
@media (max-width: 560px) { .single-post-content { padding: 22px 20px; } }
.single-post-content p { margin: 0 0 20px; }
.single-post-content h2 { font-size: 22px; margin: 30px 0 14px; }
.single-post-content blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; font-size: 18px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-pill-link { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.tag-pill-link:hover { border-color: var(--accent); color: var(--accent); }
.related-posts { margin-top: 48px; }
.related-posts h2 { font-size: 19px; margin-bottom: 18px; }

/* ---- search / empty ---- */
.search-form { display: flex; gap: 10px; margin-bottom: 20px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 14px; }
.search-form button { padding: 12px 20px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 4px; font-weight: 700; cursor: pointer; }
.muted { color: var(--muted); font-size: 13.5px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--paper); border-radius: 4px; }
.pagination { display: flex; justify-content: space-between; margin-top: 30px; font-family: var(--font-mono); font-size: 13px; }
.pagination a { color: var(--accent); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #d8cdb8; padding: 48px 24px 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: 1240px; margin: 0 auto; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-head); font-size: 14px; color: #fff; margin: 0 0 12px; }
.footer-grid p { color: #b7a988; font-size: 13.5px; margin: 0 0 8px; }
.footer-grid a { color: #b7a988; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid #4a4032; font-family: var(--font-mono); font-size: 11.5px; color: #948669; }

/* ---- flatten rotation on small screens for safety/simplicity ---- */
@media (max-width: 560px) {
  .note-card, .hero-note, .mini-note, .tip-note, .logo-box { transform: none !important; }
}
