/* ==========================================================================
   KA Technologies — Håndverk site stylesheet (handverk.html)
   --------------------------------------------------------------------------
   C-108: the A1 Håndverk recipe as a COMPLETE, self-contained site — not a
   skin on top of the tech page. Same copy as index.html, its own
   composition: phone-first hero, taped notes, hand-drawn work path,
   polaroid cards.

   Recipe (DESIGN-ARCHETYPES.md §1, A1): kraft base, deep warm ink, one rust
   accent, Fraunces display, radius 12-16px, paper grain, no pure white.
   ========================================================================== */

:root {
    --base: #f5efe2;
    --base-deep: #ece0c9;
    --surface: #fbf7ee;
    --ink: #23201b;
    --muted: #5c5346;
    --line: #ddd0b8;
    --accent: #b4532a;
    --accent-deep: #8f4021;
    --shadow: 0 2px 4px rgba(35,32,27,0.07);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--base);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    /* paper grain */
    background-image:
        radial-gradient(rgba(35,32,27,0.05) 1px, transparent 1px),
        radial-gradient(rgba(35,32,27,0.035) 1px, transparent 1px);
    background-size: 4px 4px, 9px 9px;
    background-position: 0 0, 3px 5px;
}

.container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 1.35rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0.75rem 0 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.small { font-size: 0.9rem; color: var(--muted); }

section { padding: 5.5rem 0; }
.paper-band { background: var(--base-deep); }

.kicker {
    font-family: var(--display); font-style: italic; font-size: 0.95rem;
    letter-spacing: 0.1em; color: var(--accent-deep); margin: 0 0 0.9rem;
}
.mono-note { font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent-deep); color: var(--base);
    padding: 0.7rem 1.1rem; border-radius: 14px; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- header: a strip of tape holds the wordmark to the paper --------- */
header { position: relative; background: var(--surface); border-bottom: 1px dashed var(--line); }
.tape-header::before {
    content: ""; position: absolute; top: -0.55rem; left: 50%;
    width: 8rem; height: 1.4rem; margin-left: -4rem;
    background: rgba(180,83,42,0.16);
    border-left: 1px dashed rgba(143,64,33,0.5);
    border-right: 1px dashed rgba(143,64,33,0.5);
    transform: rotate(-1.5deg);
}
.bar { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: baseline; justify-content: space-between; padding: 1.3rem 1.35rem 1.1rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
nav ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
nav a:hover, nav a:focus { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* --- hero: phone first, heading second, facts pinned up as polaroids -- */
#hero { padding-top: 2.5rem; }
.hero-phone {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem 1.35rem 1.4rem;
    margin-bottom: 2.4rem;
}
.status-pill {
    display: inline-block; font-family: var(--display); font-style: italic;
    font-size: 0.92rem; color: var(--accent-deep); margin: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1rem; }
.cta-primary {
    display: inline-block; font-family: var(--display); font-weight: 600;
    background: var(--accent-deep); color: var(--surface); text-decoration: none;
    border: 1px solid var(--accent-deep); border-radius: 14px; padding: 0.85rem 1.4rem;
}
.cta-primary:hover, .cta-primary:focus { background: var(--accent); border-color: var(--accent); }
.cta-secondary {
    display: inline-block; font-family: var(--display); font-weight: 600;
    color: var(--accent-deep); background: var(--base-deep); text-decoration: none;
    border: 1px dashed var(--accent); border-radius: 14px; padding: 0.85rem 1.4rem;
}
.cta-secondary:hover, .cta-secondary:focus { background: var(--surface); }
.hero-phone-note { font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--muted); margin: 0.9rem 0 0; }

/* signature: hand-drawn underline under the hero heading */
#hero h1 { display: inline-block; }
#hero h1::after {
    content: ""; display: block; height: 7px; margin-top: 0.6rem;
    border-radius: 14px;
    background: repeating-linear-gradient(-1.5deg, var(--accent) 0 18px, transparent 18px 24px);
}

/* signature: polaroid-style fact cards, hung slightly off-square */
.polaroid-row { margin-top: 2.6rem; }
.polaroid-row dl { margin: 1.2rem 0 0; display: grid; gap: 1.6rem; }
.polaroid {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.3rem 1.5rem;
}
.polaroid:nth-child(odd) { transform: rotate(-0.8deg); }
.polaroid:nth-child(even) { transform: rotate(0.7deg); }
.polaroid::before {
    content: ""; position: absolute; top: -0.6rem; left: 1.4rem;
    width: 4.5rem; height: 1.3rem;
    background: rgba(180,83,42,0.16);
    border-left: 1px dashed rgba(143,64,33,0.5);
    border-right: 1px dashed rgba(143,64,33,0.5);
    transform: rotate(-2deg);
}
.polaroid dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.polaroid dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* --- hva du får: taped notes, single warm column ---------------------- */
.note-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.note-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem;
}
.note-card--lead { background: var(--base-deep); border: 1px solid var(--accent); }
.note-card--lead h3 { color: var(--accent-deep); }
.note-card p { color: var(--muted); }
.tape {
    display: block; width: 5.5rem; height: 1.3rem;
    margin: 0 0 0.7rem -0.4rem;
    background: rgba(180,83,42,0.16);
    border-left: 1px dashed rgba(143,64,33,0.5);
    border-right: 1px dashed rgba(143,64,33,0.5);
    transform: rotate(-1.5deg);
}

/* --- sånn jobber vi: a hand-drawn work path, numbers in the margin --- */
.workpath { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 2rem; }
.day-step { position: relative; padding-left: 3.6rem; }
.day-step::before {
    content: ""; position: absolute; left: 1.05rem; top: 2.7rem; bottom: -2rem;
    border-left: 2px dashed var(--line);
}
.day-step:last-child::before { border-left: 0; }
.day-num {
    position: absolute; left: 0; top: 0.1rem;
    font-family: var(--display); font-weight: 700; font-size: 1.7rem;
    color: var(--accent);
}
.day-label { font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--muted); display: block; }
.day-step p { color: var(--muted); }

/* --- for deg som håndverker: spørsmål og svar ------------------------- */
.qa-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.8rem; }
.qa { padding-left: 1.2rem; border-left: 3px solid var(--accent); }
.qa h3 { font-style: italic; font-weight: 600; }
.qa p { color: var(--muted); }

/* --- om: polaroid portrait ------------------------------------------- */
.photo-note { display: grid; gap: 1.4rem; align-items: start; margin-top: 2.2rem; }
.photo-frame {
    width: 132px; height: 148px; border-radius: 14px;
    background: var(--base-deep);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: rotate(-1.2deg);
}

/* --- kontakt: a note taped to the page ------------------------------- */
.contact-note {
    position: relative; margin-top: 2.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.6rem 1.5rem;
}
.contact-list { margin: 1.4rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.contact-list dt { font-family: var(--display); font-style: italic; font-size: 0.92rem; color: var(--muted); }
.contact-list dd { margin: 0.35rem 0 0; font-size: 1.1rem; overflow-wrap: break-word; }

footer { background: var(--base-deep); border-top: 1px dashed var(--line); padding: 3.2rem 0; }
footer p { color: var(--muted); font-size: 0.94rem; }
.footer-link { color: var(--accent-deep); }

/* --- wide screens ---------------------------------------------------- */
@media (min-width: 800px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.1rem; }
    .container { padding: 0 2rem; }
    .hero-phone { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
    .hero-phone .cta-row { margin-top: 0; }
    .polaroid-row dl { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
    .note-list { grid-template-columns: 1fr 1fr; }
    .note-card--lead { grid-column: 1 / -1; }
    .photo-note { grid-template-columns: 132px 1fr; gap: 2rem; }
    section { padding: 6rem 0; }
}
