/* The Berystede: an independent digital audit. Al's Creative Lab.
   Layout: a left-ragged walk through the house. Each room opens on a coloured head with a
   drawing standing off-centre right that crosses the seam into the room. No white ground. */
:root{
  --garden:#1F3A2C;      /* Night garden: yew and lawn after dusk */
  --garden-2:#2B4D3B;    /* Hedge: the gate arch */
  --brick:#A5482F;       /* Berystede brick: the tower in sun */
  --brick-deep:#7E3422;  /* Brick in shade: the gable wall, picture frames */
  --stone:#EFE5D2;       /* Stone dressing: window surrounds, the page ground */
  --stone-2:#E3D6BC;     /* Weathered stone */
  --gilt:#B48A3C;        /* Weathervane gilt: thin lines and the room key only */
  --ink:#16261D;
  --ink-soft:#4A5A50;
  --display:"Libre Caslon Display","Libre Caslon Text",Georgia,serif;
  --serif:"Libre Caslon Text",Georgia,serif;
  --body:"Hanken Grotesk","Helvetica Neue",Helvetica,sans-serif;
  --mono:"DM Mono",ui-monospace,Menlo,monospace;
  --s1:.5rem;--s2:1rem;--s3:1.5rem;--s4:2.5rem;--s5:4rem;--s6:6rem;
  --arch:999px 999px 0 0;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--stone);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.6;overflow-x:hidden}
img,svg{max-width:100%}
h1,h2,h3{font-family:var(--display);font-weight:400;text-wrap:balance;margin:0}
p{margin:0}
a{color:inherit}
a:focus-visible{outline:2px solid var(--gilt);outline-offset:3px;border-radius:2px}
.wrap{max-width:68rem;margin-inline:auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.label{font-family:var(--mono);font-size:.74rem;letter-spacing:.09em;text-transform:uppercase}
.src{font-family:var(--mono);font-size:.76rem;color:var(--ink-soft);overflow-wrap:anywhere;display:block;margin-top:var(--s1)}
.pill{display:inline-block;padding:.78rem 1.6rem;border-radius:999px;background:var(--stone);color:var(--garden);font-weight:600;text-decoration:none;min-height:44px}
.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:16px;background:var(--stone);padding:.5rem 1rem;z-index:20}

/* ---------- 01 the gates and the drive ---------- */
.cover{background:var(--garden);color:var(--stone);position:relative}
.cover .wrap{position:relative;padding-block:2.2rem 9.5rem;min-height:32rem}
.cover .by{color:var(--stone-2);max-width:16rem}
.cover h1{font-size:clamp(2.7rem,10.5vw,6.4rem);line-height:.96;margin-top:2.2rem;max-width:8.5ch;position:relative;z-index:3}
.cover h1 em{font-family:var(--serif);font-style:italic;font-size:.5em;display:block;line-height:1.3;color:var(--stone-2)}
.cover .lede{margin-top:1.3rem;max-width:12.5rem;color:var(--stone-2);position:relative;z-index:3}
.cover .pill{margin-top:1.6rem;position:relative;z-index:3}
.gate-arch{position:absolute;right:max(0px,calc(50% - 31rem));bottom:0;width:min(46vw,23rem);height:86%;background:var(--garden-2);border-radius:var(--arch);z-index:0}
.turret{position:absolute;right:max(0px,calc(50% - 30rem));bottom:-5.2rem;width:min(40vw,21rem);height:auto;z-index:2}
.drive{background:var(--stone);border-radius:50% 50% 0 0 / 3.6rem 3.6rem 0 0;margin-top:-3.6rem;position:relative;z-index:1}
.drive .wrap{padding-block:3.4rem 0}
.method{display:grid;gap:var(--s2)}
.method .label{max-width:calc(100% - 44vw);min-height:5.5rem}
.method p{max-width:34rem}

/* ---------- the audit in one minute ---------- */
.summary .wrap{padding-block:var(--s5) var(--s4);display:grid;gap:var(--s4)}
.sum-head h2{font-size:clamp(2.2rem,7.4vw,4rem);line-height:1;margin-top:var(--s1)}
.sum-cols{display:grid;gap:var(--s4)}
.good,.opens{list-style:none;margin:var(--s2) 0 0;padding:0;display:grid}
.good li{padding-block:var(--s2);border-top:1px solid var(--stone-2);max-width:34rem}
.good li b{font-family:var(--serif);font-weight:400;font-size:1.14rem;color:var(--garden)}
.opens{counter-reset:o}
.opens li{border-top:1px solid var(--stone-2)}
.opens a{display:grid;grid-template-columns:2.2rem minmax(0,1fr);column-gap:.4rem;padding-block:var(--s2);text-decoration:none;max-width:36rem}
.opens a::before{counter-increment:o;content:counter(o);font-family:var(--display);font-size:1.9rem;line-height:1;color:var(--brick);grid-row:span 2}
.opens b{font-family:var(--serif);font-weight:400;font-size:1.2rem;text-decoration:underline;text-decoration-color:var(--gilt);text-underline-offset:.2em}
.opens span{grid-column:2}
.plan{margin:var(--s2) 0 0;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;list-style:none;max-width:52rem}
.plan a{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--ink);border-radius:999px;padding:.3rem .95rem;font-size:.92rem;text-decoration:none}
.plan b{font-family:var(--mono);font-weight:500;margin-right:.5rem;color:var(--brick-deep)}

/* ---------- a room ---------- */
.room-head{background:var(--brick);color:var(--stone);position:relative;margin-top:var(--s4);border-radius:0 7rem 0 0}
.room.garden .room-head{background:var(--garden);border-radius:7rem 0 0 0}
.room-head .wrap{position:relative;padding-block:var(--s4) 7.5rem;min-height:25rem}
.key{display:inline-flex;align-items:center;gap:.6rem;border:1px solid var(--stone);border-radius:999px;padding:.3rem .9rem .3rem .45rem}
.key i{width:1.5rem;height:1.5rem;border-radius:50%;border:1px solid var(--stone);display:block;position:relative}
.key i::after{content:"";position:absolute;inset:.42rem;border-radius:50%;background:var(--gilt)}
.room-head h2,.todo h2{font-size:clamp(2.5rem,9.2vw,5.2rem);line-height:.98;margin-top:var(--s3);max-width:9ch;position:relative;z-index:3}
.room-head h2 em,.todo h2 em{font-family:var(--serif);font-style:italic;font-size:.4em;display:block;line-height:1.4;color:var(--stone-2);max-width:none}
.room-head h2{max-width:min(9ch,calc(100% - 36vw))}
.art{position:absolute;right:max(8px,calc(50% - 29rem));bottom:-4.5rem;width:min(36vw,17rem);height:auto;z-index:2}
.threshold{background:var(--stone);border-radius:50% 50% 0 0 / 2.6rem 2.6rem 0 0;margin-top:-2.6rem;position:relative;z-index:1}
.threshold .wrap{padding-block:3.2rem var(--s2)}
.works{display:grid;gap:var(--s2)}
.works .label{max-width:calc(100% - 42vw);min-height:4.5rem}
.works p:not(.label){font-family:var(--serif);font-size:1.16rem;line-height:1.55;color:var(--garden);max-width:32rem}

.finding .wrap{padding-block:var(--s5) 0;display:grid;gap:var(--s4)}
.finding h3{font-size:clamp(2rem,6.4vw,3.2rem);line-height:1.04}
.finding .say{display:grid;gap:var(--s2);max-width:34rem;min-width:0}
.finding .say p.do{border-top:1px solid var(--gilt);padding-top:var(--s2);font-weight:500}
.finding .say p.do b{font-family:var(--mono);font-weight:500;font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;display:block;color:var(--brick-deep);margin-bottom:.2rem}
blockquote{margin:0;font-family:var(--serif);font-style:italic;font-size:1.14rem;line-height:1.5;padding-left:1.2rem;border-left:1px solid var(--gilt)}
blockquote .src{font-style:normal}

/* framed evidence: their page, hung on the wall */
.frame{margin:0;background:var(--brick-deep);padding:.7rem;border-radius:3px;transform:rotate(-.7deg);min-width:0;max-width:40rem;justify-self:start;position:relative}
.frame.r{transform:rotate(.6deg)}
.frame::before{content:"";position:absolute;left:50%;top:-1.1rem;width:1px;height:1.1rem;background:var(--ink-soft)}
.frame .mat{background:var(--stone);padding:.55rem}
.frame img{display:block;width:100%;height:auto}
.frame figcaption{color:var(--stone);padding:.7rem .2rem .15rem;font-size:.92rem;line-height:1.45}
.frame figcaption .src{color:var(--stone-2)}
.pair{display:grid;gap:var(--s4);min-width:0}

/* notice board: dated or listed things */
.board{list-style:none;margin:0;padding:0;display:grid;gap:0;max-width:40rem}
.board li{display:grid;grid-template-columns:minmax(0,1fr);gap:.2rem;padding-block:var(--s2);border-top:1px solid var(--stone-2)}
.board li:last-child{border-bottom:1px solid var(--stone-2)}
.board .what{font-weight:600}
.board .when{font-family:var(--serif);font-style:italic}

/* the next doorway: an arch that stands on the next room's head */
.next{position:relative;z-index:3;margin-top:var(--s5);margin-bottom:calc(-1 * var(--s4) - 1px)}
.next .wrap{display:flex;justify-content:flex-start}
.room.garden .next .wrap{justify-content:flex-end}
.next a{display:grid;align-content:end;justify-items:center;text-align:center;gap:.25rem;width:min(64vw,15rem);min-height:10.5rem;padding:2.6rem 1rem 1.3rem;background:var(--stone);color:var(--ink);border-radius:var(--arch);text-decoration:none;border:1px solid var(--gilt);border-bottom:0}
.next a b{font-family:var(--display);font-weight:400;font-size:1.55rem;line-height:1.05}
.next a .label{color:var(--ink-soft)}

/* ---------- 12 checkout ---------- */
.todo{background:var(--garden);color:var(--stone);margin-top:var(--s4);border-radius:7rem 0 0 0;position:relative}
.todo .wrap{position:relative;padding-block:var(--s4) 9rem;display:grid;gap:var(--s3)}
.todo h2{margin-top:0}
.todo .key{justify-self:start}
.todo .lead{font-family:var(--serif);font-size:1.18rem;line-height:1.55;max-width:34rem}
.todo h3{font-size:2rem;line-height:1.05}
.todo .note{color:var(--stone-2);margin-top:.4rem;max-width:26rem}
.steps{margin:var(--s2) 0 0;padding:0;list-style:none;counter-reset:s;display:grid;max-width:30rem}
.steps li{counter-increment:s;border-top:1px solid var(--garden-2)}
.steps a{display:grid;grid-template-columns:1.8rem minmax(0,1fr);padding-block:.85rem;text-decoration:none;min-height:44px}
.steps a::before{content:counter(s);font-family:var(--mono);font-size:.8rem;color:var(--gilt);padding-top:.25rem}
.steps a:hover{text-decoration:underline;text-decoration-color:var(--gilt)}
.todo .art{bottom:-3rem;width:min(30vw,13rem)}
.talk{background:var(--stone);border-radius:50% 50% 0 0 / 2.6rem 2.6rem 0 0;margin-top:-2.6rem;position:relative;z-index:1}
.talk .wrap{padding-block:var(--s5) var(--s4)}
.talk-card{display:grid;gap:var(--s2);max-width:34rem}
.talk-card h3{font-size:clamp(2.6rem,9vw,4.4rem);line-height:1}
.talk-card .contact{font-family:var(--serif);font-size:1.2rem;border-top:1px solid var(--gilt);padding-top:var(--s2);overflow-wrap:anywhere}
.talk-card .contact a{text-decoration-color:var(--gilt);text-underline-offset:.2em}

.foot .wrap{padding-block:var(--s3) var(--s5);display:grid;gap:var(--s2);color:var(--ink-soft);font-size:.9rem}
.foot p{max-width:44rem}

@media (min-width:52rem){
  .cover .wrap{padding-block:3rem 11rem;min-height:38rem}
  .cover .lede{font-size:1.14rem;max-width:25rem}
  .method .label,.works .label{max-width:none;min-height:0}
  .sum-cols{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--s5)}
  .room-head .wrap{padding-block:var(--s5) 9rem;min-height:28rem}
  .room-head h2{max-width:11ch}
  .works{max-width:34rem}
  .finding .wrap{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--s5);align-items:start;padding-block:var(--s6) 0}
  .finding.flip .say{order:2}
  .finding.solo .wrap{grid-template-columns:minmax(0,1fr)}
  .finding.solo .say{margin-left:18%}
  .finding.solo.flip .say{margin-left:0;order:0}
  .finding .frame{margin-top:var(--s3)}
  .finding.flip .frame{justify-self:end}
  .todo .wrap{padding-block:var(--s5) 10rem}
}

/* ---------- print: the same audit on A4 ---------- */
@media print{
  @page{size:A4;margin:14mm}
  body{font-size:10.5pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .skip,.pill,.next{display:none}
  .room-head,.todo{break-before:page;margin-top:0}
  .finding,.frame,.board li,.talk-card{break-inside:avoid}
  .frame,.frame.r{transform:none;max-width:120mm}
  .finding .wrap{padding-block:10mm 0}
  a{text-decoration:none}
}
