/* The blog's look: the home page's colors, type, photo prints and candy. */
:root{--blue:#1F4BC2;--ink:#0D1B36;--paper:#F1F5FC;--soft:#DCE7F8;--line:#BCCBE6;--muted:#33415F;--label:#1A3A8C}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Schibsted Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:#1A44B8}a:hover{color:#0F2C80}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.wrap{max-width:1240px;margin:0 auto;padding-left:clamp(16px,4vw,48px);padding-right:clamp(16px,4vw,48px)}
.narrow{max-width:880px;margin:0 auto;padding-left:clamp(16px,4vw,48px);padding-right:clamp(16px,4vw,48px)}
.eyebrow{margin:0;font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--label)}

.print{position:relative;margin:0;background:#FBF9F2;padding:10px 10px 12px;box-shadow:0 1px 2px rgba(13,27,54,.18),0 14px 28px rgba(13,27,54,.20)}
.print img{display:block;width:100%;height:auto;filter:contrast(.96) saturate(.88) sepia(.08)}
.print::before,.print::after{content:"";position:absolute;width:30px;height:30px;background:#16264A;opacity:.88}
.print::before{left:-6px;top:-6px;clip-path:polygon(0 0,100% 0,0 100%)}
.print::after{right:-6px;bottom:-6px;clip-path:polygon(100% 0,100% 100%,0 100%)}
.print figcaption{padding:10px 4px 0;font-family:'Newsreader',Georgia,serif;font-style:italic;font-size:15px;line-height:1.35;color:var(--muted)}
.candy{filter:drop-shadow(0 18px 22px rgba(6,18,52,.38));animation:bob 6s ease-in-out infinite}
.flat{filter:drop-shadow(0 6px 8px rgba(6,18,52,.30))}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -12px}}
@media (prefers-reduced-motion: reduce){.candy{animation:none}}

.btn{align-self:flex-start;display:inline-flex;align-items:center;min-height:54px;padding:0 32px;border-radius:999px;background:var(--blue);color:#fff;text-decoration:none;font-size:17px;font-weight:700}
.btn:hover{color:#fff;background:#173A9C}
.btn-quiet{border:1.5px solid var(--line);background:#fff;color:var(--ink)}
.btn-quiet:hover{background:#fff;color:var(--ink);border-color:var(--blue)}

/* Header */
.hero{position:relative;overflow:hidden;background:var(--blue);color:#F1F5FC}
.nav{position:relative;z-index:3;padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:15px;letter-spacing:.02em}
.nav a{display:inline-flex;align-items:center;min-height:44px;color:#F1F5FC;text-decoration:none;font-weight:600}
.nav-name{font-weight:800 !important;font-size:22px;letter-spacing:-.01em}
.nav-links{display:flex;gap:8px;flex-wrap:wrap}
.nav-links a{padding:0 16px}
.nav-current{text-decoration:underline !important;text-decoration-thickness:2px !important;text-underline-offset:6px}
.nav-links .nav-pill{padding:0 18px;border-radius:999px;background:#F1F5FC;color:var(--ink);font-weight:700}
.nav-links .nav-pill:hover{color:var(--ink)}
.hero-row{position:relative;padding-top:56px;padding-bottom:72px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px 48px}
.hero-title{margin:0;font-size:clamp(76px,12vw,168px);line-height:.84;font-weight:900;letter-spacing:-.045em;color:#DCE7FF}
.hero-title span{color:#8DB2FF}
.hero-candy{position:relative;width:clamp(150px,18vw,220px);aspect-ratio:22/18}
.hero-candy .candy{position:absolute;left:0;top:0;width:62%;height:auto;rotate:18deg}
.hero-candy .candy-small{left:auto;top:auto;right:0;bottom:0;width:28%;rotate:0deg;animation-duration:5.2s;animation-delay:-2s}
@media (max-width:640px){.hero-candy{display:none}}

/* All posts */
.list{padding-top:clamp(48px,6vw,72px);padding-bottom:96px;display:flex;flex-direction:column;gap:clamp(48px,6vw,72px)}
.empty{margin:0;font-family:'Newsreader',Georgia,serif;font-size:24px;color:var(--muted)}
.feature{display:flex;flex-wrap:wrap;align-items:center;gap:40px 64px}
.feature-media{flex:1 1 420px;max-width:620px;display:block;text-decoration:none}
.feature-text{flex:1 1 360px;display:flex;flex-direction:column;gap:18px}
.feature-plain .feature-text{max-width:760px}
.feature-title{margin:0;font-size:clamp(36px,4.2vw,52px);line-height:1.02;font-weight:900;letter-spacing:-.03em}
.feature-title a,.card-title a{color:var(--ink);text-decoration:none}
.feature-title a:hover,.card-title a:hover{color:var(--blue);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.feature-excerpt{margin:0;font-family:'Newsreader',Georgia,serif;font-size:21px;line-height:1.6;color:var(--muted)}
.rule{display:flex;align-items:center;gap:20px}
.rule span{flex:1;height:2px;background:var(--line)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:56px 40px;align-items:start}
.card{position:relative;display:flex;flex-direction:column;gap:14px}
.card-media{display:block;margin-bottom:10px;text-decoration:none}
.card-title{margin:0;font-size:28px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.card-text{margin:0;font-family:'Newsreader',Georgia,serif;font-size:18px;line-height:1.55;color:var(--muted)}
.card-plain{padding:32px 28px;border-radius:14px;background:var(--soft)}
.card-candy{position:absolute;right:18px;top:-22px;width:56px;height:auto;rotate:14deg}
.video-thumb{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 14px 28px rgba(13,27,54,.20)}
.video-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.play{position:relative;display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:999px;background:#F1F5FC;box-shadow:0 6px 18px rgba(6,18,52,.35)}
.play svg{width:26px;height:26px;fill:var(--blue)}
.tag{position:absolute;left:12px;top:12px;padding:5px 10px;border-radius:999px;background:#F1F5FC;color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.pager{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.pager .btn{align-self:auto}

/* One post */
.hero-post .post-head{position:relative;padding-top:clamp(40px,6vw,64px);padding-bottom:clamp(56px,7vw,80px);display:flex;flex-direction:column;gap:22px}
.back{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#DCE7FF;text-decoration:none;font-size:15px;font-weight:600}
.back:hover{color:#fff}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hero-post .eyebrow{color:#DCE7FF;font-size:14px}
.post-title{margin:0;font-size:clamp(44px,6.5vw,84px);line-height:.95;font-weight:900;letter-spacing:-.04em;color:#fff;max-width:16ch;overflow-wrap:break-word}
.post-candy{position:absolute;right:clamp(-40px,-2vw,0px);bottom:30px;width:clamp(70px,10vw,130px);height:auto;rotate:-20deg}
.post{padding-top:clamp(48px,6vw,72px);padding-bottom:40px}
/* Post text flows as ordinary paragraphs so it can wrap around photos set to
   Left or Right. */
.post-body{display:flow-root;font-family:'Newsreader',Georgia,serif;font-size:25px;line-height:1.55}
.post-body>*{margin:0}
.post-body>*+*{margin-top:28px}
.post-body p{margin:0}
.post-body .text>*+*{margin-top:28px}
.post-body .text>*+h2{margin-top:44px}
.post-body h2{margin:0;font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:32px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.post-body a{text-underline-offset:3px}

/* Photos. Sizes and positions are picked in the editor. Each size also has a
   height limit (--r is the photo's width ÷ height), so a tall phone photo
   never fills the screen. */
.post-body .print{display:block}
.post-body .print.align-center,.post-body .video,.post-body .photo-row{clear:both;margin:44px auto}
.post-body .print.align-center.size-small{width:min(45%,calc(380px * var(--r,1)))}
.post-body .print.align-center.size-medium{width:min(70%,calc(560px * var(--r,1)))}
/* Left / right: beside the text, which wraps around it. */
/* clear:both: a wrapped photo always starts below any wrapped photo before it, so two never sit side by side */
.post-body .print.align-left{float:left;clear:both;margin:10px 40px 24px 0}
.post-body .print.align-right{float:right;clear:both;margin:10px 0 24px 40px}
.post-body .print.align-left.size-small,.post-body .print.align-right.size-small{width:min(38%,calc(320px * var(--r,1)))}
.post-body .print.align-left.size-medium,.post-body .print.align-right.size-medium{width:min(50%,calc(460px * var(--r,1)))}
/* Large: wider than the text, centered on the page. */
.post-body .print.size-large{clear:both;margin:52px 0 52px 50%;translate:-50% 0;width:min(calc(100vw - 48px),1080px,calc(780px * var(--r,1)))}
/* Photos placed back to back: one row, same height, wider than the text. */
.post-body .photo-row{display:flex;align-items:flex-start;gap:28px;margin:52px 0 52px 50%;translate:-50% 0;width:min(calc(100vw - 48px),1080px)}
/* flex-basis = the print border (10px each side), so the photos themselves come out exactly the same height */
.post-body .photo-row .print{flex:var(--r,1) 1 20px;min-width:0;margin:0}

/* Videos. */
.post-body .video{display:flex;flex-direction:column;gap:12px}
.post-body .video.size-small{width:50%}
.post-body .video.size-medium{width:75%}
.post-body .video.size-large{margin:52px 0 52px 50%;translate:-50% 0;width:min(calc(100vw - 48px),1080px)}

/* Phones: no room to wrap text, so every photo and video is centered. */
@media (max-width:640px){
  .post-body .print.align-left,.post-body .print.align-right{float:none;margin:36px auto}
  .post-body .print.size-small{width:min(75%,calc(380px * var(--r,1))) !important}
  .post-body .print.size-medium{width:min(100%,calc(560px * var(--r,1))) !important}
  .post-body .print.size-large{margin:36px auto;translate:none;width:min(100%,calc(560px * var(--r,1)))}
  .post-body .photo-row{gap:14px;margin:36px 0;translate:none;width:100%}
  .post-body .video{margin:36px auto}
  .post-body .video.size-small{width:75%}
  .post-body .video.size-medium,.post-body .video.size-large{width:100%;margin:36px auto;translate:none}
}
.post-body .video figcaption{font-style:italic;font-size:15px;line-height:1.35;color:var(--muted)}
.yt,.yt-frame{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--ink);box-shadow:0 14px 28px rgba(13,27,54,.20)}
.yt img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.yt .play{width:88px;height:88px;transition:transform .15s}
.yt .play svg{width:34px;height:34px}
.yt:hover .play{transform:scale(1.06)}
.yt-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.author{margin-top:72px;padding:32px;border-radius:14px;background:var(--soft);display:flex;flex-wrap:wrap;align-items:center;gap:24px 32px;overflow:hidden}
.author img{width:120px;height:auto;margin-bottom:-32px;align-self:flex-end}
.author div{flex:1 1 260px;display:flex;flex-direction:column;gap:10px}
.author-name{margin:0;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.02em}
.author-line{margin:0;font-family:'Newsreader',Georgia,serif;font-size:18px;line-height:1.5;color:var(--muted)}
.author .btn{align-self:center}
.neighbours{margin-top:48px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.neighbours a{display:flex;flex-direction:column;gap:6px;padding:22px 24px;border-radius:14px;border:1.5px solid var(--line);background:#fff;color:var(--ink);text-decoration:none;font-size:20px;line-height:1.2;font-weight:800}
.neighbours a:hover{border-color:var(--blue)}
.neighbours .right{text-align:right}
.preview-bar{position:sticky;top:0;z-index:10;padding:12px 16px;background:#FFD66B;color:var(--ink);text-align:center;font-size:15px;font-weight:700}

.foot{margin-top:56px;background:var(--ink);color:#A9C2F0}
.foot-row{padding-top:28px;padding-bottom:28px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:14px}
.list+.foot{margin-top:0}
