/* Samlingssidan, support, integritet och 404. Oskars egen stil: grädde, bläck och korall, Fraunces i
   rubrikerna och telefonens eget typsnitt i texten. Varje app bär sina egna färger. Inga typsnitt eller
   skript från tredje part. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #faf5ea;
  --fg: #191612;
  --muted: #6b6257;
  --rule: #e4dac7;
  --coral: #f4502f;
  --coral-ink: #c23a1c;
  --mark: rgba(244, 80, 47, 0.24);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191612;
    --fg: #f6efe2;
    --muted: #ada392;
    --rule: #3a3329;
    --coral: #ff6a4d;
    --coral-ink: #ff8a70;
    --mark: rgba(255, 106, 77, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: var(--coral); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Överst. På samlingssidan bara språket, på de andra sidorna också vägen hem. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.top-hub { justify-content: flex-end; padding-bottom: 0; }
.top .home { font: 600 20px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; padding: 10px 0; }
.lang { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 999px; }
.lang:hover { border-color: currentColor; }

/* Oskar: bilden, och namnet och texten till höger om den */
.intro { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding-top: 6px; }
.portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--rule); }
.monogram { display: grid; place-items: center; background: var(--coral); color: #fff8ee; font: 600 34px/1 var(--serif); }
.intro h1 { font: 600 clamp(34px, 10.4vw, 88px)/0.95 var(--serif); letter-spacing: -0.03em; margin: 0; }
.bio { font-size: 15.5px; line-height: 1.4; max-width: 28em; margin: 8px 0 0; }
@media (min-width: 760px) {
  .intro { gap: 32px; padding-top: 24px; }
  .portrait { width: 168px; height: 168px; }
  .bio { font-size: 21px; margin-top: 14px; }
}

/* Målet, i två delar */
.say { font: 400 clamp(30px, 8.2vw, 62px)/1.06 var(--serif); letter-spacing: -0.025em; margin: 0; max-width: 15em; text-wrap: balance; }
.say em { font-style: normal; background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%); }
.goal { padding-top: 40px; }
.others { padding-top: 72px; }
@media (min-width: 760px) { .goal { padding-top: 64px; } .others { padding-top: 80px; } }

/* MassBuilder, över hela bredden, i appens egen stil (Chalk, och Slate i mörkt läge) */
.mb {
  --paper: #eef0ec; --card: #fbfbf8; --line: #d3d8d1; --perf: #c4cac3; --ink: #1c1f22; --ink-muted: #5e646a; --ball: #2448b5;
  --hole: inset 0 2px 5px rgba(28, 31, 34, 0.35), inset 0 0 0 1px #c4cac3;
  margin-top: 28px; display: grid; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; font-family: "Familjen Grotesk", var(--sans);
}
@media (prefers-color-scheme: dark) {
  .mb { --paper: #121517; --card: #1c2023; --line: #2f3539; --perf: #3b4246; --ink: #eceee9; --ink-muted: #a3aaa5; --ball: #7090ff;
        --hole: inset 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 0 0 1px #3b4246; }
}
/* Ordningen i kortet: rubrikraden, filmen, punkterna, knapparna och raden med skärmbilder.
   På datorn står filmen till höger om texten och skärmbilderna går över hela bredden. */
.mb-head { display: flex; align-items: center; gap: 16px; margin: 24px 20px 0; }
.mb-head img { width: 72px; height: 72px; border-radius: 22.37%; flex: none; }
.mb h3 { margin: 0; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.mb-line { margin: 6px 0 0; color: var(--ink-muted); font-size: 17px; line-height: 1.35; }
.mb-points { list-style: none; margin: 22px 20px 0; padding: 0; display: grid; gap: 12px; }
.mb-points li { position: relative; padding-left: 36px; font-size: 17px; line-height: 1.42; }
.mb-points li::before { content: ""; position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--paper); box-shadow: var(--hole); }
.mb-points li:first-child::before { background: var(--ball); box-shadow: none; }
.mb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 20px 0; }
.mb-more { font-weight: 700; font-size: 18px; text-decoration-color: var(--ball); padding: 8px 0; }
.mb-note { margin: 12px 20px 0; color: var(--ink-muted); font-size: 14px; }
.mb-note:last-child { margin-bottom: 24px; }
.mb-shots { list-style: none; display: flex; gap: 10px; margin: 20px 0 0; padding: 2px 20px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: thin; }
.mb-shots li { flex: 0 0 auto; scroll-snap-align: start; }
.mb-shots img { width: 132px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.mb-shot { margin-top: 18px; background: var(--paper); border-top: 1.5px dashed var(--perf); border-bottom: 1.5px dashed var(--perf);
           display: grid; place-items: center; padding: 12px; }
.mb-shot img, .mb-shot video { width: 100%; max-width: 760px; height: auto; }
.mb-shot video { aspect-ratio: 3 / 2; background: #f4f3ee; }
.still { display: none; }
@media (prefers-reduced-motion: reduce) { video.motion { display: none; } .still { display: block; } }
@media (min-width: 860px) {
  .mb { grid-template-columns: 1fr 1.15fr; }
  .mb-head, .mb-points, .mb-actions, .mb-note { grid-column: 1; margin-left: 36px; margin-right: 36px; }
  .mb-head { margin-top: 36px; }
  .mb-note { margin-bottom: 34px; }
  .mb h3 { font-size: 48px; }
  .mb-shot { grid-column: 2; grid-row: 1 / span 4; margin: 0; border-top: 0; border-bottom: 0; border-left: 1.5px dashed var(--perf); padding: 24px; }
  .mb-shots { grid-column: 1 / -1; margin: 0; padding: 24px 36px 30px; scroll-padding: 0 36px; border-top: 1.5px dashed var(--perf); }
  .mb-shots img { width: 150px; }
}

/* App Store-märket, oförändrat, och textlänken som står i dess ställe tills märket finns */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 50px; width: auto; }
.store-text { display: inline-flex; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 10px; background: #000; color: #fff; font-weight: 600; text-decoration: none; border: 1px solid #a6a6a6; }
.soon-pill { font: 500 12px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; padding: 10px 12px; border-radius: 999px; border: 1px solid currentColor; }

/* De andra apparna, två i bredd */
.apps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 339px) { .apps { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .apps { gap: 20px; } }
.app {
  --a-bg: #fff; --a-ink: #191612; --a-muted: #5d5d5d; --a-accent: #191612; --a-on-accent: #fff; --a-shot-bg: transparent;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border-radius: 20px;
  background: var(--a-bg); color: var(--a-ink); overflow: hidden;
}
.app.wide { grid-column: 1 / -1; }
@media (max-width: 759px) { .app:not(.wide) .app-head { flex-direction: column; align-items: flex-start; gap: 8px; } }
.app-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-head img { width: 40px; height: 40px; border-radius: 22.37%; flex: none; }
.app h3 { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.app-kind { margin: 2px 0 0; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-muted); }
.app-shot { margin: 2px -14px 0; background: var(--a-shot-bg); display: grid; place-items: center; }
.app-shot img { width: 100%; }
.app:not(.wide) .app-shot { aspect-ratio: 4 / 5; overflow: hidden; place-items: start center; }
.app:not(.wide) .app-shot img { height: 100%; object-fit: cover; object-position: top; }
.app-job { margin: 0; font-size: 14.5px; line-height: 1.4; }
.app-meta { margin: auto 0 0; font-size: 12.5px; line-height: 1.4; color: var(--a-muted); }
.app-link, .app-soon { align-self: flex-start; white-space: nowrap; font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 9px 13px; border-radius: 999px; background: var(--a-accent); color: var(--a-on-accent); }
.app-soon { background: transparent; color: var(--a-muted); border: 1px solid currentColor; font: 500 11px/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
@media (min-width: 760px) {
  .app { padding: 22px; gap: 14px; border-radius: 24px; }
  .app-head img { width: 56px; height: 56px; }
  .app h3 { font-size: 22px; }
  .app-kind { font-size: 11.5px; }
  .app-shot { margin: 4px -22px 0; }
  .app-job { font-size: 16px; }
  .app-meta { font-size: 14px; }
  .app-link, .app-soon { font-size: 15px; padding: 10px 15px; }
  .app.wide { display: grid; grid-template-columns: 1fr 1.7fr; grid-template-rows: auto auto 1fr auto; column-gap: 28px; }
  .app.wide .app-shot { grid-column: 2; grid-row: 1 / span 4; margin: -22px -22px -22px 0; align-self: stretch; }
  .app.wide .app-shot img { height: 100%; object-fit: cover; }
}

/* Apparnas egna världar */
.app--rvc { --a-bg: #0b1422; --a-ink: #eaf3ff; --a-muted: #9fb3cc; --a-accent: #42c0ff; --a-on-accent: #04121f; --a-shot-bg: #0f1d2e; }
.app--zombie { --a-bg: #0d0b0a; --a-ink: #f0e6da; --a-muted: #b4a796; --a-accent: #e2773a; --a-on-accent: #1a0b02; --a-shot-bg: #000; }
.app--soft { --a-bg: #e4e9f0; --a-ink: #273142; --a-muted: #5a6577; --a-accent: #e4e9f0; --a-on-accent: #c8312d; --a-shot-bg: #e4e9f0; }
.app--soft .app-link { box-shadow: -4px -4px 9px #ffffff, 4px 4px 10px #a3b1c6; }
.app--soft .app-head img { box-shadow: -3px -3px 7px #ffffff, 3px 3px 8px #a3b1c6; }
@media (prefers-color-scheme: dark) {
  .app--soft { --a-bg: #262a31; --a-ink: #e8ecf2; --a-muted: #a3abb8; --a-accent: #262a31; --a-on-accent: #ff6159; --a-shot-bg: #262a31; }
  .app--soft .app-link { box-shadow: -4px -4px 9px #3a414b, 4px 4px 10px #111317; }
  .app--soft .app-head img { box-shadow: -3px -3px 7px #3a414b, 3px 3px 8px #111317; }
}
.app--klippt { --a-bg: #a8352a; --a-ink: #fff6ec; --a-muted: #ffd9c9; --a-accent: #f7c948; --a-on-accent: #3b1408; --a-shot-bg: #a8352a;
  background-image: radial-gradient(rgba(255, 246, 236, 0.13) 1.6px, transparent 1.8px); background-size: 14px 14px; }
.app--rakel { --a-bg: #1c1610; --a-ink: #f4e8d2; --a-muted: #c3ae8c; --a-accent: #d9a64a; --a-on-accent: #1c1205; --a-shot-bg: #1c1610; }
.app--rakel h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; }
@media (min-width: 760px) { .app--rakel h3 { font-size: 25px; } }

.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; max-width: 40em; }

/* Samarbeten */
.collab { padding-top: 88px; }
.collab h2 { font: 500 clamp(32px, 8vw, 52px)/1.05 var(--serif); letter-spacing: -0.025em; margin: 0; }
.collab p { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 14px 0 0; }
.collab-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mail { display: inline-flex; align-items: center; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--fg); font-weight: 600; text-decoration: none; }
.mail:hover { background: var(--fg); color: var(--bg); }
.tiktok { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px; border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.tiktok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

/* Sidfoten */
.foot { margin-top: 88px; border-top: 1px solid var(--rule); padding-top: 18px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 2px 20px; color: var(--fg); margin-bottom: 10px; }
.foot nav a { padding: 8px 0; }
.foot p { margin: 0; max-width: 42em; }

/* Support, integritet och 404: texten från den nuvarande sajten */
.page { max-width: 760px; padding-top: 28px; }
.page .label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.page h1 { font: 600 clamp(38px, 10vw, 66px)/1.02 var(--serif); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.page .lede { font-size: 20px; line-height: 1.45; margin: 18px 0 0; }
.page h2 { font: 600 25px/1.2 var(--serif); letter-spacing: -0.01em; margin: 44px 0 10px; }
.page p { margin: 0 0 14px; max-width: 38em; }
.page ul { margin: 0 0 14px; padding-left: 22px; }
.page li { margin: 4px 0; }
