/* laurendavies.com.au — shared stylesheet
   Every value here comes from the brand pack at 2.1. Nothing is invented locally.
   Type scale: H1 Literata 32/1.15, H2 Literata 24/1.25, H3 Inter 20/1.35,
   body Inter 16/1.65 on 68ch, small 14/1.55, label 14/1.40.
   Size floor: nothing carrying a sentence a reader must act on sits below 14px. */

:root{
  --paper:#FFFFFF; --grey:#F4F4F6; --ink:#42474C; --ink-soft:#5A6066; --hair:#D8DCE4;
  --ld:#8FA1D6; --ld-pale:#D4DAF1; --fw:#7983A4; --deep-periwinkle:#626A88;
  --ss:#BA96C6; --ss-pale:#E5D5EA; --ss-deep:#6B4F78; --ss-tail:#DCC4E4;
  --mint:#C4E2E3; --mint-pale:#E2F1F1; --sage:#94ADAC;
  --serif:'Literata',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --measure:68ch;
  --accent:var(--ld);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#2A2E33; --grey:#343940; --ink:#E7E9EC; --ink-soft:#C3C8CE; --hair:#434952;
  --ld:#8FA1D6; --ld-pale:#47516D; --fw:#7983A4; --deep-periwinkle:#9AA3C0;
  --ss:#BA96C6; --ss-pale:#5E4B64; --ss-deep:#CDB0D6; --ss-tail:#DCC4E4;
  --mint:#2F4446; --mint-pale:#28383A; --sage:#A9C2C1; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --paper:#2A2E33; --grey:#343940; --ink:#E7E9EC; --ink-soft:#C3C8CE; --hair:#434952;
  --ld:#8FA1D6; --ld-pale:#47516D; --fw:#7983A4; --deep-periwinkle:#9AA3C0;
  --ss:#BA96C6; --ss-pale:#5E4B64; --ss-deep:#CDB0D6; --ss-tail:#DCC4E4;
  --mint:#2F4446; --mint-pale:#28383A; --sage:#A9C2C1; color-scheme:dark;
}
/* The Seriously Sorted pages swap the accent and nothing else. */
body.ss{--accent:var(--ss)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);
  font-size:16px;line-height:1.65;margin:0}
img{max-width:100%;height:auto;display:block}

.wrap{max-width:1080px;margin:0 auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px))}
.narrow{max-width:var(--measure)}

h1,h2{font-family:var(--serif);font-weight:600;text-wrap:balance;color:var(--ink)}
h1{font-size:32px;line-height:1.15;margin:0 0 12px}
h2{font-size:24px;line-height:1.25;margin:0 0 12px}
h3{font-family:var(--sans);font-size:20px;line-height:1.35;font-weight:600;
   text-wrap:balance;margin:24px 0 8px;color:var(--ink)}
p{margin:0 0 16px;max-width:var(--measure)}
a{color:var(--ink);text-decoration-color:currentColor;
  text-underline-offset:3px;text-decoration-thickness:2px}
a:hover{text-decoration-color:var(--ink)}
a:focus-visible{outline:3px solid var(--ink);outline-offset:2px;border-radius:2px}
ul{max-width:var(--measure);padding-left:22px;margin:0 0 16px}
li{margin-bottom:7px}
.lede{font-family:var(--serif);font-size:20px;line-height:1.5;max-width:58ch;color:var(--ink)}
.small{font-size:14px;line-height:1.55}
.soft{color:var(--ink-soft)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

section{padding-block:72px}
section.tight{padding-block:52px}
.plain + .plain{border-top:1px solid var(--hair)}
.strip + .plain{border-top:0}
@media (max-width:760px){
  section{padding-block:40px}
  section.tight{padding-block:32px}
  h1{font-size:28px}
  .lede{font-size:18px}
}
.mint{background:var(--mint)}
.mintp{background:var(--mint-pale)}
.pale{background:var(--ld-pale)}
.sspale{background:var(--ss-pale)}

/* One reading column, centred on the page. The section labels that used to sit in the left
   margin repeated the heading beside them, and pushed the text off centre at desktop width,
   so they are gone and every section is introduced by its heading alone. */
.band{display:block}
.body{min-width:0;max-width:var(--measure);margin-left:auto;margin-right:auto}
/* Blocks that need more width than a line of text break out of the column, centred on it,
   and never wider than the screen less its gutters. */
.body>.split,.body>.cards.three,.body>.kinds{width:min(960px,calc(100vw - 32px));
  max-width:none;margin-left:50%;transform:translateX(-50%)}
.eyebrow{font-size:14px;letter-spacing:.11em;text-transform:uppercase;font-weight:600;
  line-height:1.4;color:var(--deep-periwinkle);margin:0 0 10px}

/* Bold label plus one line. The most scannable block on the Seriously Sorted site. */
.labels{max-width:var(--measure);margin:22px 0;padding:0;list-style:none}
.labels li{margin:0 0 18px;padding:0}
.labels b{display:block;font-size:17px;line-height:1.4;margin-bottom:2px}
.labels span{display:block;color:var(--ink-soft)}

/* Cards */
.cards{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:1fr;
  gap:12px;max-width:none}
@media (min-width:720px){.cards{grid-template-columns:1fr 1fr}}
@media (min-width:960px){.cards.three{grid-template-columns:repeat(3,1fr)}}
.cards li{background:var(--paper);border-radius:10px;padding:18px 22px;margin:0;
  font-size:16px;line-height:1.55;min-width:0}
.cards li h3{margin:0 0 6px;font-size:18px}
.cards li p{margin:0;max-width:none}
.cards li p + p{margin-top:10px}
.cards.held li{background:var(--ld-pale)}
.plain .cards li{background:var(--grey)}

/* Thin colour strip between sections, standing in for the coloured bands on the SS site. */
.strip{height:10px}
.strip.m{background:var(--mint)}
.strip.p{background:var(--ld-pale)}
.strip.s{background:var(--mint-pale)}
.strip.x{background:var(--ss-pale)}

/* Break mark */
.brk{display:flex;align-items:center;gap:16px;color:var(--accent);max-width:var(--measure);margin:30px 0}
.brk .ln{flex:1;height:1px;background:var(--hair)}
.brk svg{flex:none;display:block}

/* Centred on the reading column rather than on the section, which is wider. Centred on
   the section the quote sat about 80px right of where the prose centres, which reads as
   a push to the right rather than as centring. */
.quote{text-align:center;margin:36px 0;padding-block:12px;max-width:var(--measure)}
/* A fixed measure rather than 28ch. ch is relative to the element's own font size, so at
   24px serif it came out 389px against a 686px reading column and read as a stray indent. */
.quote blockquote{font-family:var(--serif);font-size:24px;line-height:1.35;margin:0 auto;
  max-width:560px;color:var(--ink)}
.quote figcaption{font-size:14px;line-height:1.55;color:var(--ink-soft);margin-top:12px}
.statement{font-family:var(--serif);font-size:24px;line-height:1.3;max-width:560px;
  margin:0 auto 10px;color:var(--ink)}
.centred{text-align:center}
.centred p{margin-left:auto;margin-right:auto}

/* Definition rows, used for terms and for numbered steps */
.terms,.faq{max-width:var(--measure);margin:24px 0;border-top:1px solid var(--hair)}
.terms>div,.faq>div{padding:16px 0;border-bottom:1px solid var(--hair)}
.terms dt,.faq h3{font-size:16px;font-weight:600;margin:0 0 4px;line-height:1.5}
.faq h3{font-size:18px;margin-top:0}
.terms dd,.faq p{margin:0;color:var(--ink-soft);max-width:none}

/* A marked gap. Mint ground, ink text, so it reads as deliberate rather than broken. */
.slot{background:var(--mint);color:var(--ink);padding:1px 7px;border-radius:4px;font-weight:600}

.note{background:var(--grey);border-left:3px solid var(--accent);border-radius:0 8px 8px 0;
  padding:16px 20px;margin:22px 0;max-width:var(--measure)}
.note>:last-child{margin-bottom:0}
.note h3{margin-top:0;font-size:16px}

.btn{display:inline-block;font-weight:500;font-size:16px;padding:12px 24px;border-radius:7px;
  text-decoration:none;border:1.5px solid var(--ink);color:var(--ink);background:transparent}
.btn.solid{background:var(--ink);color:var(--paper)}
.btn + .btn{margin-left:10px}
@media (max-width:460px){.btn{display:block;text-align:center}.btn + .btn{margin:10px 0 0}}
.cta{margin:24px 0 0}
.cta + .small{margin-top:14px}

/* Diagrams. Drawn portrait so they fit a phone at close to full size and never scroll
   sideways. The drawing is never the only place something is said: every figcaption
   carries the same claim in words. */
.dgm{margin:30px 0;max-width:var(--measure)}
.dgm svg{display:block;width:100%;max-width:430px;height:auto;color:var(--ink)}
.dgm figcaption{font-size:14px;line-height:1.55;color:var(--ink-soft);
  margin-top:12px;max-width:var(--measure)}

/* Photography. Every image carries alt text and nothing is said only in a picture. */
figure{margin:0}
.full img{width:100%;height:auto}
/* A band whose subject sits in part of the frame. The figure sets the band's proportion and
   the image fills it, so the dead area is cropped out rather than published as height.
   --band-pos picks which part stays in frame. Tune per image; it is not a global. */
.full.band-crop{overflow:hidden}
.full.band-crop img{height:auto;aspect-ratio:var(--band-ar,1600/340);object-fit:cover;
  object-position:var(--band-pos,50% 50%)}
@media (max-width:719px){.full.band-crop img{aspect-ratio:var(--band-ar-sm,16/9)}}
.split{display:grid;grid-template-columns:1fr;gap:28px;align-items:center}
@media (min-width:860px){.split{grid-template-columns:1fr 1fr;gap:44px}}
.split>*{min-width:0}
.split img{border-radius:10px}
.cap{font-size:12px;line-height:1.5;color:var(--ink-soft);margin:8px 0 0;max-width:40ch}
/* A photograph still to be taken. Mint ground so it reads as a decision, not a fault. */
.toshoot{background:var(--mint-pale);aspect-ratio:4/5;display:flex;align-items:center;
  justify-content:center;padding:20px;text-align:center;border-radius:10px}
.toshoot p{font-size:14px;line-height:1.55;color:var(--ink);max-width:28ch;margin:0}

/* Kind words. Each testimonial keeps its name, business and date together, because a
   date removed is a date somebody is hoping you will not ask about. */
.kinds{list-style:none;padding:0;margin:26px 0 0;display:grid;grid-template-columns:1fr;
  gap:14px;max-width:none}
@media (min-width:820px){.kinds{grid-template-columns:1fr 1fr}}
.kinds li{background:var(--grey);border-radius:10px;padding:20px 22px;margin:0;min-width:0}
.kinds blockquote{margin:0}
.kinds blockquote p{font-family:var(--sans);font-size:16px;line-height:1.65;margin:0;
  max-width:none;color:var(--ink)}
.cite{margin:14px 0 0;font-size:14px;line-height:1.5;max-width:none;color:var(--ink-soft)}
.cite b{display:block;color:var(--ink);font-size:15px}
.cite span{display:block}

/* Header */
/* The header stays put while the page scrolls, so the menu is reachable from anywhere
   rather than only from the top. It needs an opaque background, because a sticky element
   has page content passing underneath it.
   top is the safe area inset rather than 0, so on a phone with a notch the header sits
   below the status bar instead of under it, and a fixed band paints the strip above. */
header.site{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;
  background:var(--paper);border-bottom:1px solid var(--hair)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);
  background:var(--paper);z-index:51}
header.site .wrap{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;padding-block:18px}

/* An in-page link lands below the header rather than behind it. --hdr is the header's own
   height, so the two cannot drift apart. */
:root{--hdr:67px}
html{scroll-padding-top:calc(var(--hdr) + 16px)}
@media (max-width:899px){:root{--hdr:80px}}

@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* The menu button carries the word Menu as well as the bars, so it is never an icon alone,
   and it only exists below 900px where six items genuinely crowd the row. */
/* The bars take ink rather than the accent: they sit beside the lockup, which is where
   the brand colour belongs, and ink clears the 3:1 a meaningful shape needs on its own. */
.menu{display:none;margin-left:auto;align-items:center;gap:9px;font:inherit;font-size:15px;
  font-weight:500;color:var(--ink);background:transparent;border:1px solid var(--ink-soft);
  border-radius:7px;padding:8px 14px;cursor:pointer}
.menu:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.menu .bars{display:grid;gap:3.5px;width:16px}
.menu .bars i{display:block;height:2px;background:currentColor;border-radius:1px}
@media (max-width:899px){
  .menu{display:flex}
  nav.site{display:none;flex-basis:100%;margin-left:0;order:3}
  header.site[data-open] nav.site{display:block;
    max-height:calc(100dvh - var(--hdr) - env(safe-area-inset-top,0px) - 24px);
    overflow-y:auto;overscroll-behavior:contain}
  nav.site ul{flex-direction:column;gap:0;font-size:16px;
    border-top:1px solid var(--hair);padding-top:6px;margin-top:4px}
  nav.site li{margin:0}
  nav.site a{display:block;padding:11px 2px}
}
.lock{display:inline-block;white-space:nowrap;text-decoration:none}
.lock svg{display:inline-block;margin-right:6.3px}
.lock .wm{font-family:var(--sans);font-weight:600;font-size:21px;letter-spacing:-.01em;
  line-height:1;color:var(--ink)}
.lock .reg{font-size:.5em;vertical-align:super;font-weight:400;display:inline-block;
  width:0;overflow:visible}
nav.site{margin-left:auto}
nav.site ul{display:flex;flex-wrap:wrap;gap:6px 20px;list-style:none;padding:0;margin:0;
  max-width:none;font-size:14px;line-height:1.55}
nav.site li{margin:0}
nav.site [aria-current="page"]{text-decoration-color:var(--ink)}

/* Footer */
footer.site{background:var(--grey)}
footer.site .cols{display:grid;grid-template-columns:1fr;gap:26px;padding-block:30px 24px}
@media (min-width:720px){footer.site .cols{grid-template-columns:1.6fr 1fr 1fr}}
footer.site .lock{margin:-1px 0 10px;display:block}
footer.site h2{margin:0 0 8px;font-family:var(--sans);font-size:14px;letter-spacing:.11em;
  text-transform:uppercase;color:var(--deep-periwinkle);font-weight:600;line-height:1.4}
footer.site ul{list-style:none;padding:0;margin:0;font-size:14px;line-height:1.55}
footer.site li{margin-bottom:5px}
.fdesc{font-size:14px;line-height:1.55;color:var(--ink-soft);margin:0 0 16px;max-width:34ch}
.base{border-top:1px solid var(--hair)}
/* Centred at every width. It read as centred on a phone and left aligned on a desktop,
   which was the column direction changing rather than a decision. */
.base .wrap{padding-block:14px;font-size:14px;line-height:1.55;color:var(--ink-soft);
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;
  text-align:center;gap:6px 18px}
.base p{margin:0;max-width:none}
.base .pol{display:flex;flex-wrap:wrap;gap:6px 18px}
@media (max-width:719px){
  .base .wrap{flex-direction:column;align-items:center;text-align:center;gap:9px}
  .base .pol{justify-content:center}
}
.ack{background:var(--mint)}
/* Mint belongs to Lauren Davies. The Seriously Sorted pages take plum pale. */
body.ss .ack{background:var(--ss-pale)}
.ack .wrap{padding-block:22px;text-align:center}
.ack p{font-size:14px;line-height:1.55;color:var(--ink);max-width:72ch;margin:0 auto}
.own{font-size:16px;line-height:1.65}

/* The mock-up banner. This exists only in the prototype and comes off before launch. */
.mockbar{background:#39415A;color:#FFFFFF}
.mockbar .wrap{padding-block:9px;font-size:14px;line-height:1.5;
  display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline}
.mockbar a{color:#fff;text-decoration-color:#fff}
.mockbar b{font-weight:600}

/* Policy pages.
   A policy is read as a formatted document rather than as a web page: numbered clauses,
   scanned and referenced rather than read straight through. So it drops the marginal label,
   which on these pages only repeated the heading beside it, and it runs wider than the
   reading measure the rest of the site uses. 900px is about 110 characters, which is the
   width a printed policy runs at and wider than the 68ch everywhere else. The wrap still
   holds it off the window edge. */
.policy .band{grid-template-columns:minmax(0,1fr)}

.policy h2{font-size:20px;margin-top:38px}
.policy h3{font-size:17px;margin-top:26px}
.policy .updated{margin-top:40px;padding-top:16px;border-top:1px solid var(--hair);
  font-size:14px;color:var(--ink-soft)}
@media (min-width:1000px){
  .policy .band{grid-template-columns:minmax(0,1fr)}
  .policy .band>.body{grid-column:1}
}
/* Said once in the policy row rather than on each of the three links, which would repeat
   the same five words three times to anyone reading the footer aloud. */
.polnote{color:var(--ink-soft);font-size:14px}
/* The connect page. Built for a phone, because it is only ever reached from the link in an
   Instagram profile. It keeps a comfortable margin at every width rather than stretching,
   so opening it on a laptop gives the phone layout centred rather than a broken one. */
.connect{padding-block:48px 64px}
.cwrap{max-width:420px;margin:0 auto;
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px));text-align:center}
.cname{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.2;margin:0}
.chandle{font-size:15px;color:var(--ink-soft);margin:6px 0 30px}
.clinks{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.clinks a{display:block;padding:15px 18px;border:1px solid var(--ink);border-radius:10px;
  text-decoration:none;color:var(--ink);font-weight:600;font-size:16px;line-height:1.4}
.clinks a:hover{background:var(--grey)}
.clinks a:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.cnote{font-size:14px;line-height:1.55;color:var(--ink-soft);margin:28px 0 0}
.body.narrow{max-width:620px}
.embed{border:1.5px dashed var(--ink-soft);border-radius:10px;padding:22px;margin:26px 0;
  background:var(--grey)}
/* One diagram, two layouts. The labels come from one place in diagrams.py so the two
   cannot drift; only the arrangement changes. display:none keeps the hidden one out of
   the accessibility tree, so a screen reader is given one diagram rather than two. */
.dgm svg.dgm-lg{display:none}
@media (min-width:880px){
  /* The landscape layout needs the width, so the figure breaks out of the reading column
     to the section it sits in. The portrait one stays on the measure. */
  .dgm:has(svg.dgm-lg){max-width:none}
  .dgm svg.dgm-sm{display:none}
  .dgm svg.dgm-lg{display:block;max-width:780px}
}
/* The slim footer on a link-in-bio page. One column, so the brand, the line about it and
   the button sit together and the copyright follows directly. */
footer.site .cols.one{grid-template-columns:1fr}
@media (min-width:720px){footer.site .cols.one{grid-template-columns:minmax(0,460px)}}

/* Figures on the Work with me page, built to REF | Figures and tiles. Drawn at 326 units
   wide, which is the reading column on a 358 pixel phone, so the type renders at its true
   14px there and nothing scrolls sideways. Ink for every line and word; Lauren's part sits
   on the Lauren Davies pale with an ink border; no accent anywhere in a drawing. Stroke
   unit 1px: hairline 1, outline 2, the one line the figure is about 3. */
.fig5 svg{max-width:400px}
.fig5 .figtitle{font-size:14px;font-weight:600;line-height:1.4;margin:0 0 12px;color:var(--ink)}
.after-cards{margin-top:20px}
.cards.topics .eg{margin-top:10px;padding-top:10px;border-top:1px solid var(--hair);
  font-size:14px;line-height:1.55;color:var(--ink-soft)}
.toshoot.land{aspect-ratio:3/2}
/* Ink Soft is for paper and the shared grey only. On a tinted ground it measures 4.6, so
   secondary words in a tinted band take ink, as the brand pack requires. */
.mint .labels span,.mintp .labels span,.pale .labels span,.sspale .labels span,
.mint .soft,.mintp .soft,.pale .soft,.sspale .soft{color:var(--ink)}

/* Full quotes run to several paragraphs, so they are body text in Inter, which the pack
   requires below heading size. */
.kinds blockquote p + p{margin-top:12px}

/* Kind words, two at a time with the rosette disc between each pair. The quotes sit on the
   Seriously Sorted pale, so every word on them is ink: Ink Soft is for paper and grey only. */
.kinds{display:block;margin:26px 0 0}
.kpair{list-style:none;padding:0;margin:0;max-width:none;display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:820px){.kpair{grid-template-columns:1fr 1fr;gap:24px}}
.kpair li{background:var(--ss-pale);border-radius:12px;padding:28px 28px 24px;margin:0;min-width:0}
.kpair .cite,.kpair .cite span{color:var(--ink)}
.kpair .cite{border-top:1px solid var(--ink);padding-top:12px;margin-top:18px;opacity:1}
.kbrk{display:flex;align-items:center;gap:16px;margin:40px 0;color:var(--ss)}
.kbrk .ln{flex:1;height:1px;background:var(--hair)}
.kbrk svg{flex:none;display:block}

.after-cta{margin-top:22px}

/* The Seriously Sorted connect page opens on its lockup rather than a name, set larger
   than the header one: the mark stays 1.421em of the wordmark, as the pack requires. */
.clock{margin:0;font-size:26px;line-height:1}
.clock .lock .wm{font-size:26px}
.clock .lock svg{margin-right:7.8px}
/* Connect pages: the first link is the one the page exists for, so it is filled. A break
   mark separates the way out to the other brand, rather than a colour. */
.clinks .primary a{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.clinks .primary a:hover{background:var(--ink);text-decoration:underline}
.clinks a span{display:block;font-weight:400;font-size:15px;margin-top:2px}
.connect .kbrk{margin:26px 0}
.kbrk.ld{color:var(--ld)}

.note h2{margin-top:0;font-size:20px}

/* Seriously Sorted labels take that brand's deep plum, the pack's label colour for it. */
body.ss footer.site h2,body.ss .eyebrow{color:var(--ss-deep)}
/* Contents list at the top of a policy. */
.pcontents{background:var(--grey);border-radius:8px;padding:16px 20px;margin:20px 0 28px}
.pcontents h2{font-family:var(--sans);font-size:16px;margin:0 0 8px}
.pcontents ol{margin:0;padding:0;list-style:none}
.pcontents li{margin:4px 0}
.cnow{font-size:15px;line-height:1.5;margin:10px auto 24px;max-width:32ch}
.before-embed{margin-bottom:16px}
