/* Sniglapóstur — handgert útlit: pappír, blek, gul umslög, frímerki. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/caveat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Varaletur með svipuðum málum, svo síðan hoppar minna þegar Fraunces kemur */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }

:root {
  --paper: #f6efe0; --paper-2: #efe4cc; --paper-3: #fffaf0;
  --ink: #2b211b; --ink-2: #4a3d33; --muted: #6a5848; --line: rgba(43,33,27,.18);
  --mustard: #f2c94c; --envelope: #f4d35e; --rust: #a63d24; --rust-dark: #8a3b22; --sage: #5f7a52;
  --pine: #2f4a36; --pine-2: #3e5d45; --berry: #b5392b; --snow: #fffaf0;
  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --body: 'Iowan Old Style', 'Palatino Linotype', Palatino, Charter, 'Bitstream Charter', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  --shadow: 0 1px 0 rgba(43,33,27,.06), 0 8px 24px -12px rgba(43,33,27,.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--paper) url(/assets/img/grain.webp); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.55em; line-height: 1.1; color: var(--rust); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.squiggle { background: url(/assets/img/d/krot.svg) no-repeat left bottom / 100% 10px; padding-bottom: 8px; }

/* ---------- Haus ---------- */
.site-head { padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 168px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.02rem; padding: 10px 2px; display: inline-block; }
.site-nav a[aria-current="page"], .site-nav a:hover { background: url(/assets/img/d/krot.svg) no-repeat left 86% / 100% 7px; }
.site-nav .nav-cta { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: var(--radius); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--rust-dark); color: var(--paper); }
.lang { font-family: var(--body); font-size: .95rem; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius); font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--paper-3); border-block: 1.5px dashed var(--line); padding: 10px 20px 18px; z-index: 20; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-head { position: relative; }
  .brand img { width: 140px; }
}

/* ---------- Hnappar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper-3); font-family: var(--serif); font-size: 1.08rem; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--rust); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--paper-3); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--rust); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--rust); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); box-shadow: none; }
.btn-yellow { background: var(--envelope); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-yellow:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Kaflar ---------- */
section { padding: clamp(48px, 8vw, 88px) 0; }
.sec-alt { background: rgba(239,228,204,.55); border-block: 1.5px dashed var(--line); }
.eyebrow { font-family: var(--hand); font-size: 1.5rem; color: var(--rust); display: block; margin-bottom: 4px; transform: rotate(-2deg); transform-origin: left; }
.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 38em; }

/* Forsíða */
.hero { padding-top: clamp(28px, 6vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 6px; }
.hero .art { position: relative; }
.hero .art picture img { mix-blend-mode: multiply; transform: rotate(2deg); }
.hero .note { position: absolute; left: -6%; bottom: 4%; transform: rotate(-6deg); background: var(--paper-3); padding: 10px 16px; font-family: var(--hand); font-size: 1.45rem; line-height: 1.15; box-shadow: var(--shadow); border-radius: 3px; max-width: 15em; }
.hero .note::before { content: ''; position: absolute; top: -10px; left: 40%; width: 64px; height: 20px; background: rgba(242,201,76,.75); transform: rotate(3deg); }
.price-line { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .art { max-width: 460px; margin-inline: auto; } .hero .note { left: 0; } }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--paper-3); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); position: relative; counter-increment: s; }
.steps li:nth-child(2) { transform: rotate(.6deg); } .steps li:nth-child(3) { transform: rotate(-.5deg); }
.steps li::before { content: counter(s); position: absolute; top: -14px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--hand); font-size: 1.6rem; background: var(--envelope); border-radius: 50% 46% 52% 48%; border: 1.5px solid var(--ink); }
.steps svg { width: 52px; height: 52px; color: var(--ink); margin-bottom: 8px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1.03rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.poem { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.poem figure { margin: 0; }
.poem figure img { border-radius: 3px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.poem figcaption { font-family: var(--hand); font-size: 1.25rem; color: var(--muted); margin-top: 12px; }
.letter { background: var(--paper-3) repeating-linear-gradient(transparent 0 37px, rgba(95,122,82,.22) 37px 38px); padding: 30px 32px; border-radius: 3px; box-shadow: var(--shadow); font-family: var(--hand); font-size: 1.9rem; line-height: 38px; color: var(--ink); position: relative; }
.letter p { margin: 0; }
.letter .sign { text-align: right; color: var(--rust); margin-top: 10px; }
@media (max-width: 760px) { .poem { grid-template-columns: 1fr; } .poem figure { max-width: 340px; } }

.desk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.desk img { border-radius: 6px; box-shadow: var(--shadow); transform: rotate(1deg); border: 8px solid var(--paper-3); }
@media (max-width: 760px) { .desk { grid-template-columns: 1fr; } }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band img.mark { width: 120px; margin: 0 auto 10px; mix-blend-mode: multiply; }

/* ---------- Frímerki (CSS: tenntur kantur) ---------- */
.stamp { display: inline-block; padding: 9px; text-align: center; color: var(--ink);
  background: radial-gradient(circle, transparent 3.6px, var(--paper-3) 4.2px) -6px -6px / 12px 12px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.stamp-in { background: var(--paper-3); border: 2px solid currentColor; padding: 8px 12px; display: grid; place-items: center; gap: 2px; min-width: 96px; }
.stamp img { width: 66px; mix-blend-mode: multiply; }
.stamp .t { font-family: var(--hand); font-size: 1.5rem; line-height: 1; }
.stamp .v { font-family: var(--serif); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.stamp.xmas { color: var(--berry); transform: rotate(6deg); }
.stamp.xmas .stamp-in { background: linear-gradient(var(--paper-3) 64%, #f5ddd3 64%); }

/* ---------- Búð ---------- */
.shop-stack { display: flex; flex-direction: column; }
.shop-stack > * { order: 1; }
html:not(.xmas) .shop-stack .gift-sec { order: 2; }  /* eftir jól: áskriftin fremst aftur */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.offer .ph img { mix-blend-mode: multiply; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: '✶'; color: var(--rust); }
.bigprice { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin: 4px 0 0; }
.bigprice small { font-size: 1.05rem; color: var(--muted); font-weight: 400; }
.quiet { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
fieldset.dest { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
fieldset.dest legend { font-family: var(--serif); font-weight: 600; margin-bottom: 10px; font-size: 1.15rem; }
fieldset.dest label { position: relative; }
fieldset.dest input { position: absolute; opacity: 0; inset: 0; }
fieldset.dest span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-3); cursor: pointer; }
fieldset.dest input:checked + span { background: var(--envelope); box-shadow: 2px 2px 0 var(--ink); }
fieldset.dest input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }
.checkout-wrap { margin-top: 28px; scroll-margin-top: 16px; }
.checkout-wrap[hidden] { display: none; }

/* Gjöf */
.gift-sec { position: relative; }
.gift-panel { position: relative; background: var(--paper-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.gift-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.gift-head .ph img { mix-blend-mode: multiply; }
@media (max-width: 860px) { .gift-head { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.plan { background: var(--paper-3); color: var(--ink); border-radius: var(--radius); padding: 22px 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; }
.plan.featured { border-color: var(--ink); }
.plan.chosen { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(166,61,36,.25), var(--shadow); }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .price { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin: 4px 0 0; }
.plan .per { color: var(--muted); margin: 0 0 12px; font-size: 1rem; }
.plan .abroad { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.plan .btn { margin-top: auto; }
.plan .badge { font-family: var(--hand); font-size: 1.3rem; color: var(--rust); margin: -6px 0 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.gift-card { color: var(--ink); background: var(--paper-3); border-radius: 4px; padding: 22px; box-shadow: var(--shadow); margin-top: 26px; border: 1.5px dashed var(--line); }
.gift-card h3 { font-family: var(--hand); font-size: 2rem; font-weight: 600; margin-bottom: 4px; color: var(--rust); }
.gift-card .help { color: var(--muted); font-size: 1rem; }
.gift-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift-card label { display: grid; gap: 4px; font-family: var(--serif); font-weight: 600; margin-bottom: 10px; }
.gift-card input, .gift-card textarea { font: 1.4rem/1.3 var(--hand); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink-2); padding: 6px 2px; width: 100%; }
.gift-card textarea { border: 1.5px solid var(--line); border-radius: 4px; padding: 8px 10px; background: repeating-linear-gradient(transparent 0 33px, rgba(95,122,82,.2) 33px 34px); line-height: 34px; resize: vertical; }
.gift-card .count { text-align: right; font-size: .9rem; color: var(--muted); margin: 0; }
.notes { margin-top: 18px; display: grid; gap: 6px; }
.notes p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.gift-pay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.gift-pay .gift-card { margin-top: 0; }
@media (max-width: 960px) { .gift-pay { grid-template-columns: 1fr; } }
.gift-pay-form { min-width: 0; }

/* Jólaútlit gjafarinnar: aðeins þegar <html class="xmas"> (fram að data-gift-first-until) */
.x-only { display: none !important; }
html.xmas .x-only { display: revert !important; }
html.xmas .nx-only { display: none !important; }
html.xmas .gift-panel { background: var(--pine) url(/assets/img/d/snjor.svg); color: var(--snow); }
html.xmas .gift-panel > .gift-head h2, html.xmas .gift-panel > .gift-head p, html.xmas .gift-panel .notes p { color: var(--snow); }
html.xmas .gift-panel .eyebrow { color: var(--mustard); }
html.xmas .gift-panel a:not(.btn) { color: var(--mustard); }
html.xmas .gift-panel .gift-head .ph { background: var(--paper-3); border-radius: 4px; padding: 10px; transform: rotate(-2deg); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.greni { position: absolute; width: clamp(180px, 30vw, 320px); pointer-events: none; }
.greni.tl { top: -34px; left: -26px; transform: rotate(-8deg); }
.greni.br { bottom: -30px; right: -20px; transform: rotate(172deg); }
.gift-panel .stamp.xmas { position: absolute; top: -26px; right: 22px; z-index: 2; }
@media (max-width: 760px) { .greni.tl { left: -6px; top: -28px; } .greni.br { right: 0; } .gift-panel .stamp.xmas { right: 8px; top: -30px; transform: rotate(6deg) scale(.82); } }
.xmas-strip { display: flex; align-items: center; gap: 18px; background: var(--pine) url(/assets/img/d/snjor.svg); color: var(--snow); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.xmas-strip p { margin: 0; }
.xmas-strip strong { font-family: var(--hand); font-size: 1.8rem; font-weight: 600; color: var(--mustard); display: block; line-height: 1.1; }
.xmas-strip .btn { margin-left: auto; }
@media (max-width: 640px) { .xmas-strip { flex-wrap: wrap; } .xmas-strip .btn { margin-left: 0; } }

/* Forsíða: gjafareitur */
.gift-teaser .gift-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .gift-teaser .gift-panel { grid-template-columns: 1fr; } }

/* ---------- Blogg ---------- */
.posts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.post-card { background: var(--paper-3); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: .95rem; }
.draft-flag { display: inline-block; font-family: var(--hand); font-size: 1.25rem; color: var(--paper-3); background: var(--rust); padding: 0 10px; border-radius: 4px; transform: rotate(-2deg); margin-right: 8px; }
.draft-box { border: 2px dashed var(--rust); background: rgba(166,61,36,.06); padding: 14px 18px; border-radius: 6px; margin: 0 0 24px; font-size: 1rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.2em 0; padding: 6px 18px; border-left: 3px solid var(--mustard); font-style: italic; color: var(--ink-2); }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* ---------- Spurt og svarað ---------- */
.faq details { background: var(--paper-3); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--hand); font-size: 1.8rem; line-height: .7; color: var(--rust); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 22px 20px; }

/* ---------- Skilmálar ---------- */
.terms h1 { font-size: 2.4rem; } .terms h2 { font-size: 1.35rem; margin-top: 1.6em; }
.terms .note { background: var(--paper-2); padding: 12px 16px; border-radius: 6px; }

/* ---------- Fótur ---------- */
.site-foot { border-top: 1.5px dashed var(--line); padding: 40px 0 28px; margin-top: 20px; font-size: 1rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.site-foot img { width: 140px; mix-blend-mode: multiply; margin-bottom: 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-foot a, .site-foot button { color: var(--ink); display: inline-block; padding: 6px 0; }
.site-foot button { background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-foot .small { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- Vafrakökuborði ---------- */
.cc { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; max-width: 560px; margin-inline: auto; background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; box-shadow: 4px 4px 0 var(--ink); font-size: .95rem; line-height: 1.45; }
.cc.open { display: flex; align-items: center; gap: 12px; }
.cc p { margin: 0; }
.cc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cc .btn { min-height: 44px; padding: 6px 14px; font-size: 1rem; box-shadow: none; }
@media (max-width: 560px) { .cc.open { flex-direction: column; align-items: stretch; } .cc-actions .btn { flex: 1; } }

/* 404 */
.nf { text-align: center; padding: 80px 0; }
.nf img { width: 200px; margin: 0 auto 20px; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
