/* resources.css — sameiginlegt útlit fyrir /resources/ (statískt HTML, sama þema og SsddLanding.jsx) */
:root {
  --bg: #0b0e14; --text: #f4f1ea; --sub: #a4abbd; --dim: #6b7285;
  --gold: #d7b56d; --gold-soft: #e9d4a3; --card: rgba(255,255,255,.035); --line: rgba(255,255,255,.08);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(215,181,109,.3); }

.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg .g1 { position: absolute; top: -18%; right: -8%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(215,181,109,.12), transparent 65%); }
.bg .g2 { position: absolute; bottom: -25%; left: -12%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(106,169,240,.08), transparent 65%); }
.page { position: relative; z-index: 1; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11,14,20,.78); border-bottom: 1px solid var(--line); }
.nav .in { max-width: 1180px; margin: 0 auto; padding: 14px clamp(20px,5vw,56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg,#d7b56d,#a8843f); box-shadow: 0 4px 16px rgba(215,181,109,.3); }
.wordmark .mark svg { width: 18px; height: 18px; stroke: #0b0e14; stroke-width: 2.4; fill: none; }
.wordmark em { font-style: normal; color: var(--gold); }
.nav .links { display: flex; align-items: center; gap: 6px; }
.nav .links a { color: var(--sub); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px; }
.nav .links a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #0b0e14 !important; background: linear-gradient(135deg, #e9d4a3, #d7b56d); box-shadow: 0 8px 30px rgba(215,181,109,.25); }
.btn-gold:hover { text-decoration: none !important; filter: brightness(1.05); }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: clamp(36px,6vw,72px) clamp(20px,5vw,56px) 40px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--dim); }
.crumbs span { margin: 0 6px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px,5vw,54px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--sub); margin: 0 0 22px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--dim); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.byline strong { color: var(--sub); font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px,3vw,34px); line-height: 1.15; letter-spacing: -.015em; margin: 52px 0 14px; scroll-margin-top: 90px; }
h3 { font-size: 19px; font-weight: 700; margin: 30px 0 8px; scroll-margin-top: 90px; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 24px; margin: 0 0 18px; }
li { margin-bottom: 6px; }
li::marker { color: var(--gold); }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--sub); font-style: italic; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 0 0 36px; }
.toc .t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
.toc li { margin-bottom: 4px; font-size: 15px; }
.toc a { color: var(--sub); }
.toc a:hover { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: rgba(215,181,109,.08); color: var(--gold-soft); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td.n { color: var(--dim); white-space: nowrap; width: 1%; }
.check-table td:first-child { width: 1%; }
.box { width: 16px; height: 16px; border: 1.5px solid var(--sub); border-radius: 4px; display: inline-block; vertical-align: -3px; }

.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 22px; font-size: 15.5px; color: var(--sub); }
.note strong { color: var(--text); }
.group { margin-top: 36px; }
.group h3 { display: flex; align-items: baseline; gap: 12px; }
.group h3 .k { font-family: var(--serif); color: rgba(215,181,109,.6); font-weight: 600; font-size: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.legend span { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--sub); }
.legend .ok { border-color: rgba(95,212,154,.4); color: #8fe0b8; }
.legend .part { border-color: rgba(215,181,109,.45); color: var(--gold-soft); }
.legend .miss { border-color: rgba(240,168,168,.45); color: #f0a8a8; }

.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(215,181,109,.10), rgba(106,169,240,.05)); border: 1px solid rgba(215,181,109,.25); margin: 0 0 32px; }
.dl .t { font-weight: 700; }
.dl .s { font-size: 14px; color: var(--sub); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--sub); font-size: 16px; }

.cta { margin: 48px 0 10px; padding: clamp(24px,4vw,40px); border-radius: 22px; background: linear-gradient(135deg, rgba(215,181,109,.10), rgba(106,169,240,.05)); border: 1px solid rgba(215,181,109,.25); }
.cta h2 { margin: 0 0 10px; font-size: 28px; }
.cta p { color: var(--sub); margin-bottom: 20px; }
.author { display: flex; gap: 18px; align-items: flex-start; margin: 36px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 15px; color: var(--sub); }
.author .av { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; color: #0b0e14; background: linear-gradient(135deg,#d7b56d,#a8843f); }
.author .t { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.related { margin: 36px 0 0; }
.related .t { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.related a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; }
.related a span { display: block; font-weight: 400; color: var(--sub); font-size: 14.5px; }

/* hub */
.hub { max-width: 1000px; margin: 0 auto; padding: clamp(36px,6vw,80px) clamp(20px,5vw,56px) 40px; }
.hub h1 { max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.card { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.card:hover { text-decoration: none; border-color: rgba(215,181,109,.35); }
.card .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.card h2 { font-size: 22px; margin: 0 0 10px; }
.card p { color: var(--sub); font-size: 15px; margin: 0 0 16px; flex: 1; }
.card .m { font-size: 13px; color: var(--dim); }

/* footer */
.footer { max-width: 1180px; margin: 40px auto 0; padding: 26px clamp(20px,5vw,56px) 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--dim); font-size: 13px; }
.footer a { color: var(--dim); }
@media (max-width: 640px) {
  .nav .links a.hide-m { display: none; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
}
@media print { .nav, .bg, .cta, .footer { display: none; } body { background: #fff; color: #111; } a { color: #111; } }
