/* ================================================================
   THE HALLWAY: Sherlock's house (front page, Casebook, Archive, 404).
   Bottle green, brass and tweed; the deerstalker on its hook at 221B.
   Loaded by Base.astro when skin = 'hallway' (the default). Every rule is
   scoped to body.hallway so the old broadsheet theme in global.css is untouched.
   Case posts (Ice, Price of Fame, Metlø) have their own worlds: see /worlds/*.css.
   ================================================================ */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;600;700;800&display=swap");

body.hallway{
  --night:#0e1a13;--deep:#13251b;--card:rgba(255,255,255,.04);--brass:#c9a24b;--brass-hi:#e3c27a;
  --glow:#efe7d6;--mist:#bdb6a2;--line:rgba(201,162,75,.3);
  --caps:Cinzel,"Iowan Old Style",serif;--serif:"Cormorant Garamond","Iowan Old Style",Palatino,Georgia,serif;
  color:var(--glow);font-family:var(--serif);font-size:18px;
  background:radial-gradient(120% 60% at 50% -10%,#24432f 0%,#132a1f 40%,#0e1a13 75%) fixed;
}
html:has(body.hallway){background:#0e1a13}
body.hallway a{color:var(--brass-hi)}

/* masthead: the hallway photograph */
.hallway .masthead{position:relative;min-height:330px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;
  padding:30px 16px 22px;border:0;text-align:center;
  background:linear-gradient(rgba(8,14,10,0),rgba(8,14,10,.72) 85%),url(images/hall-hat.jpg) 70% 35%/cover}
.hallway .masthead .crest{display:block;width:46px;height:46px;margin:0 auto 10px;filter:drop-shadow(0 2px 8px rgba(0,0,0,.7))}
.hallway .masthead h1{font:700 clamp(26px,6vw,46px)/1.05 var(--caps);letter-spacing:.12em;font-variant:normal;margin:0;text-shadow:0 2px 14px rgba(0,0,0,.9)}
.hallway .masthead h1 a{color:#fff}
.hallway .masthead .tagline{color:#e6dcc6;font:italic 17px var(--serif);margin:8px auto 16px;max-width:520px;text-shadow:0 1px 8px rgba(0,0,0,.9)}
.hallway .masthead a.portal-link{margin:0;background:var(--brass);color:#10241a;font:700 12px Inter,sans-serif;letter-spacing:.18em;padding:11px 20px;border-radius:30px;box-shadow:0 4px 14px rgba(0,0,0,.5)}
.hallway .masthead a.portal-link:hover{background:var(--brass-hi);color:#10241a}

/* nav: brown tweed */
.hallway .site-nav{position:sticky;top:0;z-index:5;border:0;border-top:1px solid #08110c;border-bottom:1px solid #08110c;
  background:linear-gradient(rgba(36,24,16,.86),rgba(36,24,16,.86)),url(images/tweed-brown.jpg) center/240px}
.hallway .site-nav ul{gap:.25rem clamp(12px,4vw,40px);padding:12px 10px;flex-wrap:nowrap;white-space:nowrap}
.hallway .site-nav a{color:var(--mist);font:600 11px Inter,sans-serif;letter-spacing:.2em}
.hallway .site-nav a:hover,.hallway .site-nav a[aria-current="page"]{color:var(--brass-hi)}

.hallway main{padding-top:2rem;padding-bottom:2.5rem}
.hallway h2.section-title{font:600 clamp(18px,4vw,24px) var(--caps);letter-spacing:.14em;font-variant:normal;color:#fff;border:0;margin:6px 0 14px}
.hallway h2.section-title .more{font:600 11px Inter,sans-serif;letter-spacing:.15em;color:var(--brass-hi)}
.hallway .spoiler-note{color:var(--mist);font-style:italic;font-size:16px;text-align:center;max-width:560px;margin:0 auto 18px}
.hallway .spoiler-note a{color:var(--brass-hi)}

/* the lead story */
.hallway .lead{display:block;position:relative;border-radius:16px;overflow:hidden;border:1px solid rgba(201,162,75,.4);box-shadow:0 18px 40px rgba(0,0,0,.5);text-decoration:none;margin:0 0 16px}
.hallway .lead img{display:block;width:100%;height:clamp(380px,60vw,480px);object-fit:cover;object-position:center 45%}
.hallway .lead .over{position:absolute;inset:auto 0 0 0;padding:70px 20px 20px;background:linear-gradient(transparent,rgba(14,26,19,.95) 55%)}
.hallway .lead h3{margin:4px 0 6px;font:700 clamp(24px,5.5vw,38px)/1.1 var(--caps);letter-spacing:.06em;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.hallway .lead p{margin:0 0 6px;color:var(--glow);max-width:620px;font-size:17px;line-height:1.45}
.hallway .kick,.hallway .card .kicker{font:700 10.5px Inter,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--brass-hi)}
.hallway .date{font-style:italic;font-size:14px;color:var(--mist)}
.hallway .read{display:inline-block;margin-top:8px;font:700 11px Inter,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--brass-hi)}

/* cards: picture beside the words on phones, picture on top on wider screens */
.hallway .card-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;justify-content:stretch}
.hallway .card{position:relative;flex-direction:row;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;align-items:stretch}
.hallway .card:hover{box-shadow:0 8px 22px rgba(0,0,0,.4)}
.hallway .card > a:first-child,.hallway .card.locked .shut{flex:none;width:112px;display:block;position:relative;overflow:hidden}
.hallway .card img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center;border:0}
.hallway .card .card-body{padding:14px 16px;gap:6px}
.hallway .card .kicker{margin:0}
.hallway .card h3{margin:0;font:600 19px/1.15 var(--caps);letter-spacing:.04em}
.hallway .card h3 a{color:#fff}
.hallway .card .excerpt{margin:0;font-size:15px;line-height:1.4;color:var(--mist)}
.hallway .card .meta{margin:4px 0 0;font-size:14px;color:var(--mist)}
@media(min-width:760px){
  .hallway .card{flex-direction:column}
  .hallway .card > a:first-child,.hallway .card.locked .shut{width:100%;height:160px}
  .hallway .card .card-body{padding:16px 18px 18px}
}

/* the sealed case */
.hallway .card.locked .shut img{filter:blur(5px) saturate(.8) brightness(.7);transform:scale(1.08)}
.hallway .card.locked .lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#10241a;background:var(--brass);box-shadow:0 4px 12px rgba(0,0,0,.5)}
.hallway .card.locked h3{font-style:italic;color:#fff}

/* Detective HQ callout */
.hallway .portal-callout{margin:34px 0;padding:22px;border-radius:16px;text-align:center;flex-direction:column;
  background:linear-gradient(135deg,rgba(110,27,27,.45),rgba(14,26,19,.9));border:1px solid var(--line);box-shadow:inset 0 0 40px rgba(201,162,75,.1)}
.hallway .portal-callout .text h3{font:600 20px var(--caps);letter-spacing:.12em;font-variant:normal;color:#fff}
.hallway .portal-callout .text p{color:var(--mist);font-size:16px}
.hallway .btn{background:var(--brass);color:#10241a;border-radius:30px;font-family:Inter,sans-serif;letter-spacing:.15em}
.hallway .btn:hover{background:var(--brass-hi);color:#10241a}

/* archive posts and the 404 page */
.hallway .article-header .kicker{color:var(--brass-hi)}
.hallway .article-header h1{color:#fff;font-family:var(--caps);font-variant:normal;letter-spacing:.06em}
.hallway .article-header .meta,.hallway .article-body figcaption{color:var(--mist)}
.hallway .article-image{border-radius:12px;border:1px solid var(--line)}
.hallway .article-body{color:var(--glow);font-size:19px}
.hallway .article-body h1,.hallway .prose h2,.hallway .prose h3{color:#fff}
.hallway .article-body img{border-radius:10px}

/* footer */
.hallway .site-footer{border-top:1px solid var(--line);color:#8a9888;background:none}
.hallway .subscribe h3{font:600 18px var(--caps);letter-spacing:.14em;color:#fff;font-variant:normal}
.hallway .subscribe p,.hallway .consent-note,.hallway .legal-note{color:#9aa696}
.hallway .subscribe form{gap:0;max-width:420px;margin:0 auto;border:1px solid var(--line);border-radius:30px;overflow:hidden;background:rgba(255,255,255,.05)}
.hallway .subscribe input[type='email']{background:transparent;color:#fff;border:0;border-radius:0;padding:12px 16px;font:15px var(--serif)}
.hallway .subscribe input[type='email']::placeholder{color:#9aa696}
.hallway .subscribe button{border-radius:0;background:var(--brass);color:#10241a}
