/* Moody and Me — one stylesheet, hand-editable. No frameworks, no build step.
   House style taken from the social templates: night ground, orange rule, serif display. */
:root{
  --teal:#12A6A0; --teal-deep:#0E8C86; --orange:#FF5A1F;
  --night:#20232E; --night-deep:#181B24; --cream:#F3F1EA;
  --bg:var(--night); --fg:var(--cream); --muted:#9EA3AE; --line:#333846;
  --measure:34rem; --wide:56rem;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wrap{width:100%;max-width:var(--measure);margin:0 auto;padding:0 1.5rem}
.wrap.wide{max-width:var(--wide)}

/* ---- header ---- */
header{border-bottom:1px solid var(--line);position:relative;z-index:2;background:var(--night)}
.bar{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;
  padding:1.5rem 0 1.25rem;flex-wrap:wrap}
.brand{font:700 1.375rem/1 var(--serif);letter-spacing:-.01em;color:var(--fg);text-decoration:none}
.brand .amp{color:var(--teal)}
nav{display:flex;gap:1.375rem}
nav a{color:var(--muted);text-decoration:none;font-size:.9375rem;padding-bottom:2px;
  border-bottom:1px solid transparent}
nav a:hover{color:var(--fg);border-bottom-color:var(--orange)}
nav a[aria-current="page"]{color:var(--fg);border-bottom-color:var(--orange)}

/* ---- THE SPLIT — the device, from the social templates ---- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:var(--orange);
  width:100%;overflow:hidden;height:min(76vh,680px)}
.split > .panel{position:relative;background:var(--night-deep);overflow:hidden;height:100%}
.panel img,.panel video{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 28%;display:block}
.panel .tag{position:absolute;left:0;right:0;bottom:0;padding:.6rem 1rem;
  background:rgba(24,27,36,.82);backdrop-filter:blur(6px);
  font:600 .75rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;
  color:var(--cream)}
.panel .tag em{font-style:normal;color:var(--orange)}
@media (max-width:700px){
  .split{height:auto;grid-template-columns:1fr;gap:3px}
  .split > .panel{height:56vw;min-height:220px}
}

/* a split used as a link pair, further down the page */
.split.choice{height:min(46vh,380px)}
.panel.pick{display:block;text-decoration:none;color:var(--cream)}
.panel.pick .cover{position:absolute;inset:0;background:var(--night-deep)}
.panel.pick img{opacity:.5;transition:opacity .35s ease,transform .5s ease}
.panel.pick:hover img{opacity:.72;transform:scale(1.03)}
.panel.pick .lab{position:absolute;inset:auto 0 0 0;padding:1.5rem;
  background:linear-gradient(to top,rgba(24,27,36,.94),rgba(24,27,36,0))}
.panel.pick .lab b{display:block;font:700 1.375rem/1.2 var(--serif);margin-bottom:.35rem}
.panel.pick .lab span{color:var(--muted);font-size:.9375rem}
.panel.pick:hover .lab b{color:var(--orange)}

/* ---- type ---- */
main{padding:0 0 4rem}
main > .wrap{padding-top:3rem}
main > .wrap.wide{padding-top:3rem}
section{padding:3.5rem 0}
h1{font:700 clamp(2.25rem,6vw,3.5rem)/1.05 var(--serif);letter-spacing:-.02em;margin:0 0 1rem}
h2{font:700 1.5rem/1.25 var(--serif);margin:2.5rem 0 1rem}
section > .wrap > h2:first-child,main > .wrap > h1 + .standfirst + h2{margin-top:0}
h3{font:700 1.0625rem/1.35 var(--sans);margin:2rem 0 .5rem}
.standfirst{color:var(--muted);font-size:1.1875rem;margin:0 0 2.5rem}
p,li{margin:0 0 1.1rem}
ol,ul{padding-left:1.35rem}
li{margin-bottom:.7rem}
strong{font-weight:600;color:#fff}
a{color:var(--teal)}
a:hover{color:var(--orange)}
hr{border:0;border-top:1px solid var(--line);margin:3rem 0}
blockquote{margin:1.5rem 0;padding-left:1.1rem;border-left:3px solid var(--teal)}
.note{color:var(--muted);font-size:.9375rem}

/* the orange rule box — straight off the quote-callout template */
.callout{border:2px solid var(--orange);padding:2rem 1.75rem;margin:0 0 2rem;
  font:400 1.375rem/1.45 var(--serif)}
.callout p:last-child{margin:0}

.eyebrow{font:600 .75rem/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;
  color:var(--orange);margin:0 0 1rem}
.cta{margin:1.5rem 0 0}
.cta a{font-weight:600;text-decoration:none;border-bottom:2px solid var(--orange);padding-bottom:2px}

/* placeholder blocks — delete these rules when the copy is written */
.todo{border:1px dashed var(--orange);padding:1rem 1.15rem;border-radius:4px;
  color:var(--muted);font-size:.9375rem;margin:0 0 1.5rem}
.todo b{color:var(--orange);font-weight:600}

/* ---- wide pages: the tools record ---- */
.backlink{font-size:.9375rem;margin:0 0 1.5rem}
.hint{display:none;color:var(--muted);font-size:.8125rem;margin:0 0 .5rem}
@media (max-width:760px){ .hint{display:block} }
.wide table{width:100%;border-collapse:collapse;margin:0 0 2rem;font-size:.9375rem;
  display:block;overflow-x:auto}
.wide table thead th{text-align:left;font:600 .8125rem/1.3 var(--sans);
  letter-spacing:.04em;text-transform:uppercase;color:var(--orange);
  border-bottom:2px solid var(--line);padding:.5rem .75rem .5rem 0;vertical-align:bottom}
.wide table td{border-bottom:1px solid var(--line);padding:.7rem .75rem .7rem 0;
  vertical-align:top;line-height:1.55}
.wide table.fields td:first-child{width:12rem;min-width:9rem}
.wide table.grid td{min-width:8rem}
.wide table.grid td:first-child{min-width:7rem}
.wide table tr:last-child td{border-bottom:0}
.wide code{font:.875em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  background:rgba(18,166,160,.14);padding:.1em .35em;border-radius:3px}
.wide h2{margin-top:3.25rem}
.wide h3{font:700 1.125rem/1.3 var(--serif);margin:2.5rem 0 .75rem;
  padding-top:.5rem;border-top:1px solid var(--line)}
.wide p{max-width:44rem}

/* ---- footer ---- */
footer{border-top:1px solid var(--line);padding:2rem 0 3.5rem;color:var(--muted);font-size:.875rem}
.foot{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.foot a{color:var(--muted)}
.foot a:hover{color:var(--orange)}
.links{display:flex;gap:1.125rem;flex-wrap:wrap}
.mark{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--muted)}
.mark:hover{color:var(--orange)}
.mark svg{display:block;width:22px;height:22px;flex:none}

@media (prefers-reduced-motion:reduce){
  video{display:none}
  .panel.motion{background-image:var(--poster);background-size:cover;background-position:center}
  *{transition:none!important;animation:none!important}
}

/* a single full-width panel — the split's device without the divide */
.split.solo{grid-template-columns:1fr;height:auto}
.split.solo > .panel{width:100%;height:min(56.25vw,72vh)}
.split.solo .panel img,.split.solo .panel video{object-position:center top}
.signoff{margin-top:2.5rem;color:var(--muted);line-height:1.9}
.signoff span{display:block;color:var(--fg);font:400 1.0625rem/1.6 var(--serif)}
.signoff b{color:var(--orange);letter-spacing:.15em;font-size:.875rem}
