/* KatchiMed · framsida: personlege innslag (handskrift, oppslagstavle, byggjelogg, gøymde ting). */
:root { --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; --paper: #f4ecdc; --ink-hand: #ffd9a8; }

.hand { font-family: var(--hand); font-weight: 500; letter-spacing: 0; }

/* ---------- hero ---------- */
.hand-hi { position: relative; display: inline-block; margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink-hand); transform: rotate(-3deg); transform-origin: left; }
.hand-hi .doodle-arrow { position: absolute; left: calc(100% + 6px); top: 6px; width: 74px; height: 38px; color: var(--ink-hand); opacity: .85; }
@media (max-width: 640px) { .hand-hi .doodle-arrow { display: none; } }
.hero-text .sub { max-width: 34ch; line-height: 1.45; }

/* ---------- akkurat no ---------- */
.now { max-width: 1100px; margin: 0 auto; padding: 14vh clamp(16px, 4vw, 48px) 6vh; }
.now h2, .board h2, .two h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--ink-hand); margin: 0 0 18px; font-weight: 700; }
.now h2 { transform: rotate(-1.5deg); transform-origin: left; }
.now-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .now-grid { grid-template-columns: 1fr; } }
.now-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.now-card:hover, .now-card:focus-visible { border-color: rgba(255,210,120,.5); transform: translateY(-2px); }
.now-card:first-child { background: linear-gradient(135deg, rgba(255,158,122,.12), rgba(124,196,255,.06)), var(--bg-2); }
.now-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.now-k .live { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #7fe0a8; box-shadow: 0 0 0 0 rgba(127,224,168,.6); animation: km-live 2s infinite; vertical-align: 1px; }
@keyframes km-live { 70% { box-shadow: 0 0 0 8px rgba(127,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(127,224,168,0); } }
.now-card b { font-weight: 600; font-size: 19px; line-height: 1.3; }
.now-s { color: var(--muted); font-size: 14px; margin-top: auto; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.facts b { color: var(--accent); font-weight: 600; font-size: 18px; margin-right: 2px; }

/* ---------- oppslagstavla ---------- */
.board { position: relative; max-width: 1100px; margin: 0 auto; padding: 6vh clamp(16px, 4vw, 48px); }
.board h2 { transform: rotate(1deg); transform-origin: left; }
.doodle-neuron { position: absolute; right: clamp(16px, 5vw, 60px); top: 4vh; width: 150px; color: rgba(255,217,168,.55); transform: rotate(-6deg); }
@media (max-width: 640px) { .doodle-neuron { display: none; } }
.pins { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; padding: 26px; border-radius: 18px;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.05), transparent 60%), repeating-linear-gradient(45deg, #1a1410 0 6px, #1d1712 6px 12px);
  border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 2px 30px rgba(0,0,0,.5); }
.pin { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 18px 16px; border-radius: 4px; text-decoration: none;
  color: #2a2016; background: var(--paper); box-shadow: 0 10px 22px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s; }
.pin:hover, .pin:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.02) !important; box-shadow: 0 16px 30px rgba(0,0,0,.55); z-index: 2; }
.pin b { font-weight: 600; font-size: 17px; line-height: 1.25; }
.pin .hand { font-size: 20px; line-height: 1.15; color: #6b4a2a; }
.pin-k { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #ff9e7a; color: #2a1208; }
.tack { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; box-shadow: 0 3px 4px rgba(0,0,0,.45), inset -3px -3px 0 rgba(0,0,0,.2); }
.p1 { grid-column: span 5; transform: rotate(-2deg); background: #fff3d6; } .p1 .tack { background: #ff6b6b; }
.p2 { grid-column: span 4; transform: rotate(1.5deg); margin-top: 18px; } .p2 .tack { background: #7cc4ff; }
.p3 { grid-column: span 3; transform: rotate(-1deg); background: #e8f3ff; } .p3 .tack { background: #ffd278; }
.p4 { grid-column: span 4; transform: rotate(2deg); background: #eef8ec; } .p4 .tack { background: #b59cff; }
.p5 { grid-column: span 4; transform: rotate(-1.5deg); margin-top: -6px; background: #fbe9f2; } .p5 .tack { background: #7fe0a8; }
.p6 { grid-column: span 4; transform: rotate(1deg); margin-top: 10px; } .p6 .tack { background: #ff9e7a; }
.p7 { grid-column: span 5; transform: rotate(-.5deg); background: #f3eaff; } .p7 .tack { background: #ffd278; }
.p8 { grid-column: span 7; transform: rotate(1deg); background: #fffbe8; margin-top: 8px; } .p8 .tack { background: #7fe0a8; }
.p8 b { font-size: 18px; }
.dk-btn { align-self: flex-start; font: 600 13px Sora, system-ui, sans-serif; color: #2a2016; background: #ffd278; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.dk-a { font-size: 21px !important; }
.dk-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: #6b4a2a; }
.dk-foot a { color: #2a2016; font-weight: 600; }
.dk-dots { letter-spacing: 2px; }
@media (max-width: 820px) { .pins { grid-template-columns: 1fr 1fr; padding: 18px; } .pin { grid-column: span 1 !important; margin-top: 0 !important; } .p1, .p7, .p8 { grid-column: span 2 !important; } }
@media (max-width: 480px) { .pins { grid-template-columns: 1fr; } .pin, .p1, .p7, .p8 { grid-column: span 1 !important; } }

/* ---------- byggjelogg og gøymde ting ---------- */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 1100px; margin: 0 auto; padding: 6vh clamp(16px, 4vw, 48px) 14vh; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.log ol { list-style: none; margin: 0; padding: 0; border-left: 2px dashed rgba(255,217,168,.3); }
.log li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 0 0 18px 18px; color: var(--muted); }
.log li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.log time { font-size: 24px; color: var(--ink-hand); line-height: 1.1; }
.log span { color: var(--text); opacity: .85; }
.secrets h2 { transform: rotate(-1deg); transform-origin: left; }
.secrets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.secrets li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; color: var(--muted); }
.secrets kbd { justify-self: start; font: 600 13px ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--text); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--bg-2); white-space: nowrap; }
.secrets a { color: var(--cool); }

.foot-hand { font-size: 20px; color: var(--ink-hand); }
