@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #100b17;
  --ink: #fff3fb;
  --muted: #dbc6e2;
  --line: #5c4469;
  --pink: #ff9bc9;
  --violet: #d4b2ff;
  --photo-border: #ac7ca9;
  --photo-corner: 64px;
  --photo-radius: 13px var(--photo-corner) 13px 13px;
  --type: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--type);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 76% 33%, #46264e, transparent 57%); }
button { color: inherit; font: inherit; cursor: pointer; }
body.home-page {
  background:
    radial-gradient(ellipse 115% 75% at 93% 54%, #3e2549 0%, #28182f 47%, transparent 100%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
main[tabindex="-1"]:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .6rem; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1270px, calc(100% - 88px)); margin: auto; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.top time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu { position: relative; z-index: 2; }
.menu summary { display: grid; place-items: center; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; }
.menu summary path {
  transform-origin: center;
  transition: transform 220ms ease, opacity 160ms ease;
}
.menu[open] summary path:first-child { transform: rotate(45deg) translateY(6px); }
.menu[open] summary path:nth-child(2) { opacity: 0; }
.menu[open] summary path:last-child { transform: rotate(-45deg) translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .menu summary path { transition: none; }
}
.menu nav { position: absolute; top: calc(100% + 8px); left: 0; width: min(265px, 86vw); display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #302039; box-shadow: 0 12px 30px #0007; }
.menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; }
.menu nav a:hover { background: #493151; }
.menu nav [aria-current="page"] { color: var(--pink); }
@supports selector(details::details-content) {
  .menu::details-content {
    opacity: 0;
    content-visibility: hidden;
    transition: opacity 220ms ease, content-visibility 220ms allow-discrete;
  }
  .menu[open]::details-content { opacity: 1; content-visibility: visible; }

  @media (min-width: 761px) {
    .menu nav { transform: translateY(-7px); transition: transform 220ms ease; }
    .menu[open] nav { transform: translateY(0); }
  }

  @media (max-width: 760px) {
    .menu::details-content {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 220ms ease, opacity 220ms ease, content-visibility 220ms allow-discrete;
    }
    .menu[open]::details-content { grid-template-rows: 1fr; }
    .menu-panel { min-height: 0; overflow: clip; }
  }

  @media (prefers-reduced-motion: reduce) {
    .menu::details-content, .menu nav { transition: none; }
  }
}
.cover {
  display: grid;
  grid-template: auto auto / minmax(0, .9fr) minmax(0, 1.65fr);
  grid-template-areas: "title photo" "profile photo";
  column-gap: clamp(28px, 4vw, 70px);
  padding-block: clamp(22px, 2.8vw, 40px);
}
h1 { grid-area: title; align-self: end; margin: 0; font: 700 clamp(46px, 6vw, 88px)/1 var(--type); letter-spacing: -.055em; }
h1 em { display: block; white-space: nowrap; color: var(--pink); font-style: normal; font-weight: inherit; }
h1 em span { color: inherit; }
@supports (background-clip: text) {
  h1 em { background: linear-gradient(105deg, #ff87c6, #e96ab5 53%, #ac7aff); background-clip: text; color: transparent; width: fit-content; max-width: 100%; }
}
.profile { grid-area: profile; align-self: start; margin-top: clamp(18px, 2.5vw, 32px); padding-left: 14px; border-left: 2px solid var(--pink); }
.profile p { margin: 0; }
.name { font-size: clamp(21px, 2.6vw, 38px); font-weight: 650; line-height: 1.05; }
.details { color: var(--muted); font-size: .9rem; padding-top: 7px; }
figure { grid-area: photo; margin: 0; }
.photo { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--photo-border); border-radius: var(--photo-radius); background: #2d1b32; overflow: hidden; box-shadow: 0 28px 70px #0a061570; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; object-position: center 36%; }
.expand { position: absolute; right: 13px; bottom: 13px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #fff8; border-radius: 50%; background: #190e23d9; font-size: 0; }
.expand::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 17px;
  height: 17px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 6h4v4M18 6l-5 5M10 18H6v-4m0 4 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.photo:hover .expand { background: var(--pink); color: var(--bg); }
footer { padding-block: 13px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
dialog { --viewer-ratio: 0.6666667; --viewer-height: min(71dvh, calc(100dvh - 180px), 780px); width: min(960px, calc(100% - 24px), calc(var(--viewer-height) * var(--viewer-ratio) + 26px)); max-height: calc(100% - 24px); padding: 12px; border: 1px solid var(--photo-border); border-radius: var(--photo-radius); background: var(--bg); }
dialog::backdrop { background: #08060bea; }
dialog form { display: flex; justify-content: end; margin: 0 15px 8px 0; }
dialog button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #271a32; }
dialog img { display: block; width: 100%; height: auto; aspect-ratio: var(--viewer-ratio); object-fit: contain; border-radius: var(--photo-radius); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .top { padding-block: 10px; }
  .cover { grid-template: auto auto auto / minmax(0, 1fr); grid-template-areas: "title" "profile" "photo"; gap: 10px; padding-block: 16px 20px; }
  h1 { font-size: clamp(32px, 7.4vw, 56px); }
  h1 em { display: inline; }
  :root { --photo-corner: 42px; }
  .photo img { aspect-ratio: 1 / 1.13; }
  .profile { margin: 0; }
}
@media (max-width: 760px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .top > .menu, .top > time { grid-area: 1 / 1; }
  .top time { justify-self: end; padding-top: 13px; }
  .menu nav { position: static; margin-top: 8px; max-width: 100%; }
}

/* Preserve the full composition of the original vertical portrait. */
figure { justify-self: end; width: min(100%, 54svh, 520px); }
.photo img { aspect-ratio: auto; height: auto; }
@media (max-width: 760px) {
  .cover figure { width: 100%; }
  .cover .photo { border-radius: 14px 34px 13px 13px; box-shadow: none; }
  .cover .photo img {
    height: min(120vw, 53svh, 470px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }
  .cover .profile { padding-left: 10px; }
  .cover .details { padding-top: 3px; }
  .cover .expand, .cover .series-count { right: 9px; bottom: 9px; }
}

[hidden] { display: none !important; }
.listing-heading { padding-block: clamp(34px, 5vw, 66px) 25px; }
.listing-heading h1 { font-size: clamp(42px, 6.6vw, 92px); }
.listing-heading h1 em { display: inline; white-space: normal; }
.archive-select {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  grid-template-areas: "field count";
  align-items: center;
  gap: 6px 14px;
  margin-top: 22px;
}
.select-field { grid-area: field; }
.select-field { position: relative; }
.select-field::after { content: ""; position: absolute; width: 7px; height: 7px; right: 16px; top: calc(50% - 5px); border: solid var(--pink); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.archive-select select { appearance: none; display: block; width: 100%; }
.archive-select select, .menu summary { min-height: 46px; max-width: 100%; border: 1px solid #795b88; border-radius: 10px; color: var(--ink); background: #302039; font: inherit; font-size: .9rem; cursor: pointer; }
.archive-select select { padding: 8px 38px 8px 13px; }
.menu summary { width: 46px; padding: 0; }
.archive-select select:hover, .menu summary:hover, .menu[open] summary { border-color: var(--pink); }
.archive-select select:focus-visible, .menu summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
#arkiv-antal { grid-area: count; justify-self: end; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.portrait-section { border-top: 1px solid var(--line); padding-block: 22px 36px; }
.portrait-section h2 { margin: 0 0 18px; font: 650 clamp(23px, 3.3vw, 36px)/1.15 var(--type); letter-spacing: -.035em; }
.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.portrait-card { min-width: 0; }
.portrait-card .photo { border-radius: 9px 24px 9px 9px; box-shadow: none; }
.portrait-card img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.series-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 16px; background: #190e23ed; color: var(--ink); font-size: .71rem; }
.series-count span { color: var(--pink); }
.photo:hover .series-count { background: var(--pink); color: var(--bg); }
.photo:hover .series-count span { color: inherit; }
.portrait-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.portrait-meta h3 { margin: 0; font-size: 1rem; }
.portrait-meta p, .portrait-meta time, .portrait-date { margin: 0; color: var(--muted); font-size: .76rem; }
.monthly-heading { grid-area: title; align-self: end; }
.monthly-heading p { margin: 0 0 12px; color: var(--violet); font-weight: 650; }
.monthly-heading h1 { font-size: clamp(38px, 5.3vw, 76px); }
.yearly-cover .monthly-heading h1 > span:first-child { display: block; }
.yearly-cover .yearly-title-bottom { display: flex; align-items: baseline; gap: .22em; white-space: nowrap; }
.yearly-cover .yearly-title-bottom em { display: block; }
.yearly-cover .yearly-title-bottom time { color: var(--violet); font-size: .32em; font-weight: 650; letter-spacing: .015em; line-height: 1; }
.monthly-cover figure { align-self: center; }
.monthly-photo .series-count { right: 14px; bottom: 14px; font-size: .85rem; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px clamp(12px, 3vw, 22px) 0 8px; margin-bottom: 12px; }
.viewer-head h2 { margin: 0; color: var(--pink); font: 700 clamp(18px, 3.5vw, 21px)/1.25 var(--type); outline: none; }
@supports (background-clip: text) {
  .viewer-head h2 {
    width: fit-content;
    max-width: 100%;
    background: linear-gradient(105deg, #f9b3d7, #c5a2f7);
    background-clip: text;
    color: transparent;
  }
}
.viewer-profile { margin: 4px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.viewer-date { display: block; margin-top: 3px; color: #b8a6bf; font-size: .69rem; }
.viewer-head form { margin: 0; }
.viewer-head button, .viewer-controls button { display: grid; place-items: center; background: transparent; border-color: transparent; }
.viewer-head button:hover, .viewer-controls button:hover { background: #302039; border-color: var(--line); }
.viewer-head button span { position: relative; width: 15px; height: 15px; }
.viewer-head button span::before, .viewer-head button span::after { content: ""; position: absolute; top: 7px; left: 0; width: 15px; height: 1.5px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.viewer-head button span::after { transform: rotate(-45deg); }
.viewer-controls button { color: var(--muted); font-size: 1rem; }
.viewer-controls [role="status"] { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .85rem; }
@media (max-width: 1000px) {
  .portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .archive-select { grid-template-columns: minmax(0, 1fr) auto; }
  .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 10px; }
  .listing-heading h1 { font-size: clamp(31px, 7.6vw, 48px); }
  .monthly-heading h1 { font-size: clamp(30px, 7vw, 47px); }
}

@media (max-width: 760px) {
  .monthly-heading p { margin-bottom: 5px; font-size: .82rem; }
  .yearly-cover .yearly-title-bottom { gap: .24em; }
  .yearly-cover .yearly-title-bottom time { font-size: .34em; }
  .yearly-cover { gap: 8px; padding-block: 13px 18px; }
  .yearly-cover .monthly-heading h1 { font-size: clamp(34px, 8.8vw, 45px); }
  .yearly-cover .profile { margin-top: 2px; }
}

@media (max-width: 620px) {
  .listing-heading { padding-block: 26px 18px; }
  .archive-select { grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 16px; }
  .archive-select select { min-height: 42px; padding: 7px 32px 7px 12px; font-size: .8rem; }
  .select-field::after { right: 13px; width: 6px; height: 6px; }
  #arkiv-antal { justify-self: start; font-size: .74rem; }
  .portrait-meta { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 4px; }
  .portrait-meta time, .portrait-meta .portrait-date { display: block; width: 100%; }
}

.production-copyright { text-align: center; font-size: .67rem; color: #b8a6bf; }
.production-ad { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #271a32; }
.production-ad small, .production-ad strong { display: block; }
.production-ad small { color: var(--muted); }
.menu nav button { min-height: 44px; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; }
.menu nav button:hover { background: #493151; }
.viewer-stage { position: relative; }
.viewer-error { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 12px; color: var(--muted); text-align: center; background: var(--bg); }
