@font-face { font-family: "Archivo"; src: url("/fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1b2430;
  --ink-soft: #4a5666;
  --paper: #eef1f4;
  --white: #ffffff;
  --rule: #d5dbe2;
  --fake: #b4232c;
  --real: #2e6b4f;
  --tpc: #f04d23;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 "Plex Sans", system-ui, sans-serif; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--tpc); outline-offset: 3px; border-radius: 2px; }

/* övningsbanner */
.banner { background: var(--fake); color: var(--white); padding: 14px var(--gutter); }
.banner p { margin: 0; max-width: 1100px; font-size: 1.02rem; line-height: 1.45; }
.banner strong { font-weight: 600; }

/* sidhuvud */
.top { background: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.brand img { display: block; height: 30px; width: auto; }
.top-note { color: #b9c3cf; font-size: .95rem; }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 64px); max-width: 1240px; }
h1 { font: 600 clamp(1.7rem, 3.6vw, 2.6rem)/1.15 "Plex Sans", system-ui, sans-serif; margin: 0 0 12px; letter-spacing: -.01em; }
.intro { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: var(--measure); margin: 0 0 clamp(28px, 4vw, 44px); }

.domains { display: grid; gap: clamp(6px, 1.2vw, 14px); }
.domain { margin: 0; display: grid; grid-template-columns: 4.6rem 1fr; align-items: baseline; gap: 12px; }
.tag { font-weight: 600; font-size: .95rem; }
.fake .tag { color: var(--fake); }
.real .tag { color: var(--real); }
.d { font: 800 clamp(2.1rem, 7vw, 6rem)/1 "Archivo", system-ui, sans-serif; letter-spacing: -.035em; white-space: nowrap; }
.fake .d { color: var(--ink); }
.real .d { color: #9aa6b4; }
.swap { position: relative; display: inline-block; padding: 0 .02em; }
.swap::after { content: ""; position: absolute; left: 50%; top: 52%; width: 1.05em; height: 1.05em; transform: translate(-50%, -50%) scale(1); border: .085em solid; border-radius: 50%; opacity: 1; animation: ring .7s cubic-bezier(.2,.8,.2,1) .35s both; }
.fake .swap { color: var(--fake); }
.fake .swap::after { border-color: var(--fake); }
.real .swap { color: var(--real); }
.real .swap::after { border-color: var(--real); animation-delay: .6s; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.loupe { margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid var(--rule); max-width: 900px; }
.loupe p { margin: 0 0 8px; color: var(--ink-soft); }
.mono { display: flex; flex-wrap: wrap; gap: 8px 36px; font: 500 clamp(1.15rem, 2.4vw, 1.6rem)/1.4 "Plex Mono", ui-monospace, monospace; }
.m-fake { color: var(--fake); }
.m-real { color: var(--real); }

/* innehållsblock */
.block { background: var(--white); padding: clamp(32px, 5vw, 56px) var(--gutter); border-top: 1px solid var(--rule); }
.block > * { max-width: 1000px; }
h2 { font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.25 "Plex Sans", system-ui, sans-serif; margin: 0 0 8px; }
.block-intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 22px; }

.glyphs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.glyphs th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: .92rem; padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.glyphs td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; color: var(--ink-soft); }
.g { font: 500 1.45rem/1 "Plex Mono", ui-monospace, monospace; color: var(--ink); margin-right: 6px; }
.ex { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 500; color: var(--ink); background: var(--paper); border-radius: 4px; padding: 1px 6px; font-size: .95em; }

.habits { list-style: none; padding: 0; margin: 18px 0 0; max-width: var(--measure); display: grid; gap: 18px; }
.habits li { padding-left: 18px; border-left: 3px solid var(--real); color: var(--ink-soft); }
.habits strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.08rem; margin-bottom: 2px; }
.to-real { margin: 34px 0 0; font-size: 1.08rem; }
.to-real a { color: var(--real); font-weight: 600; }

/* sidfot */
.foot { background: var(--ink); color: #b9c3cf; padding: 32px var(--gutter) 40px; display: grid; gap: 14px; }
.foot img { height: 30px; width: auto; }
.foot p { margin: 0; max-width: var(--measure); font-size: .95rem; }
.foot a { color: var(--white); }
.foot::before { content: ""; display: block; width: 44px; height: 3px; background: var(--tpc); }

@media (max-width: 640px) {
  .domain { grid-template-columns: 1fr; gap: 2px; }
  .d { white-space: normal; overflow-wrap: anywhere; }
  .glyphs thead { display: none; }
  .glyphs tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .glyphs td { border: 0; padding: 2px 0; }
  .glyphs td:last-child { grid-column: 1 / -1; padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .swap::after { animation: none; } }
.loupe .case { margin-top: 14px; color: var(--ink-soft); max-width: var(--measure); }
