/* Styles for Corkly's topic pages (same cork-board look as the homepage) */
:root {
  --ink: #2f2418; --cream: #fff3dc; --wood: #6e4527; --wood-dark: #4a2c17;
  --hand: 'Caveat', cursive; --ui: 'Patrick Hand', system-ui, sans-serif;
  --marker: 'Permanent Marker', cursive; --type: 'Special Elite', ui-monospace, monospace;
  --cork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .17 0 0 0 0 .05 0 0 0 2.2 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 1px rgba(0,0,0,.18), 0 12px 20px -10px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ui); font-size: 19px; line-height: 1.55; color: var(--ink);
  background: var(--cork) 0 0 / 220px, radial-gradient(ellipse at 50% 0%, #d6a76e, #bb864e 55%, #a06b3b);
  background-color: #c4935b; min-height: 100vh; overflow-x: hidden;
}
a { color: #23407a; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

header { background: linear-gradient(180deg, #8a5a34, #5b3a22); color: var(--cream); box-shadow: 0 4px 14px rgba(0,0,0,.35); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo img { width: 34px; height: 34px; }
.logo span { font-family: var(--marker); font-size: 26px; color: #ffe6b0; transform: rotate(-3deg); text-shadow: 0 2px 0 var(--wood-dark); }
header nav { margin-left: auto; }
.mini-dl { background: #fff3dc; color: var(--ink); padding: 6px 16px; border-radius: 999px; box-shadow: 0 3px 0 #2f2418; text-decoration: none; }

.crumbs { font-family: var(--type); font-size: 14px; margin: 26px 0 0; color: #3b2814; }
.crumbs a { color: #3b2814; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding: 26px 0 10px; }
.hero > div { min-width: 0; }
h1 { font-family: var(--marker); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 20px; color: #fff8ea; text-shadow: 0 3px 0 rgba(74,44,23,.55), 0 10px 22px rgba(0,0,0,.25); transform: rotate(-1.5deg); }
.lead { background: #ffe97a; padding: 22px 22px 20px; transform: rotate(1deg); box-shadow: var(--shadow); position: relative; border-bottom-right-radius: 60px 8px; }
.lead p { margin: 0; font-family: var(--hand); font-size: 27px; line-height: 1.12; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 8px; background: #2f2418; color: #fff3dc; text-decoration: none; font-family: var(--type); font-size: 19px; padding: 14px 26px; border-radius: 999px; box-shadow: 0 4px 0 #000; transition: transform .2s; }
.cta:hover { transform: translateY(-2px) rotate(-1deg); }
.cta-note { font-family: var(--hand); font-size: 21px; color: #3b2814; }
.shot { background: #fdfdfb; padding: 12px; margin: 0; transform: rotate(1.6deg); box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 30px 50px -18px rgba(0,0,0,.55); position: relative; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { text-align: center; font-family: var(--hand); font-size: 23px; padding-top: 8px; }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px; transform: rotate(-4deg); background: repeating-linear-gradient(45deg, rgba(255,160,185,.85) 0 8px, rgba(255,200,215,.85) 8px 16px); }
.pin { position: absolute; top: -8px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0 2.5px, transparent 3.5px), radial-gradient(circle at 40% 36%, var(--p, #e63946) 0 48%, #3a0f12 130%); box-shadow: 3px 5px 4px rgba(0,0,0,.35); }

/* article: lined paper cards */
.paper { position: relative; background: #fffdf6; padding: 34px 36px 30px; margin: 56px 0 0; box-shadow: var(--shadow); }
.paper:nth-of-type(odd) { transform: rotate(-.4deg); }
.paper:nth-of-type(even) { transform: rotate(.35deg); }
.paper h2 { font-family: var(--type); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.paper h3 { font-family: var(--marker); font-weight: 400; font-size: 20px; margin: 22px 0 6px; }
.paper p, .paper li { font-size: 19px; }
.paper ul, .paper ol { padding-left: 24px; }
.paper li { margin: 6px 0; }
.paper li b { font-weight: 400; font-family: var(--marker); font-size: 17px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1.5px dashed rgba(47,36,24,.25); vertical-align: top; }
th { font-family: var(--type); font-weight: 400; font-size: 16px; }
td:first-child { font-family: var(--marker); font-size: 15px; }
.yes { color: #2a9d8f; } .no { color: #b04040; }
.ideas { counter-reset: idea; list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.ideas li { counter-increment: idea; position: relative; padding-left: 40px; }
.ideas li::before { content: counter(idea); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #ffd166; font-family: var(--marker); font-size: 15px; display: grid; place-items: center; }
details { border-bottom: 1.5px dashed rgba(47,36,24,.25); padding: 10px 0; }
summary { cursor: pointer; font-family: var(--type); font-size: 18px; }
details p { margin: 8px 0 4px; }

.closer { text-align: center; padding: 60px 0 10px; }
.closer h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(28px, 4vw, 40px); color: #fff8ea; text-shadow: 0 3px 0 rgba(74,44,23,.55); margin: 0 0 6px; transform: rotate(-1.5deg); }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; }
.more a { background: #fff3dc; color: var(--ink); text-decoration: none; padding: 6px 14px; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.25); font-size: 16px; }

footer { margin-top: 70px; background: linear-gradient(180deg, #6e4527, #4a2c17); color: var(--cream); padding: 28px 0 32px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer a { color: #ffe6b0; }

@media (max-width: 820px) {
  .hero, .grid2, .ideas { grid-template-columns: minmax(0, 1fr); }
  .paper { padding: 28px 20px 22px; }
  table { font-size: 15px; }
}
