/* Sarah Larsen, home page. Cream and one green, Instrument Serif and Inter, as in the PDF portfolio.
   Every section is sized to be seen whole on a laptop screen. Almost nothing moves. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/Inter-0.woff2') format('woff2'); }

:root {
  --paper: #F1EEE7;
  --green: #5E6346;
  --deep: #4C5138;
  --ink: #24241F;
  --strong: #161613;
  --muted: #66675B;
  --ph: #A2452F;
  --bar: 58px;
  --m: clamp(20px, 5.4vw, 92px);              /* side margin */
  --gut: clamp(16px, 2vw, 32px);              /* between drawings */
  --gap: clamp(64px, 11vh, 120px);            /* between sections */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--paper);
       font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.bar :focus-visible, .band :focus-visible, .foot :focus-visible, .box :focus-visible { outline-color: var(--paper); }
.ph { color: var(--ph); }
.band .ph, .box .ph { color: #FFC9B5; }
.wrap { max-width: 1560px; margin: 0 auto; padding-left: var(--m); padding-right: var(--m); }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green); line-height: 1.4; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 62px); line-height: .98; color: var(--strong); }

.btn { display: inline-block; padding: 15px 22px 14px; border: 1px solid var(--green); color: var(--green);
       font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; line-height: 1;
       transition: background-color .25s, color .25s; }
.btn:hover { background: var(--green); color: var(--paper); }
.btn.solid { background: var(--green); color: var(--paper); }
.btn.solid:hover { background: var(--deep); border-color: var(--deep); }
.more { font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; color: var(--green);
        white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .25s; }
.more:hover { border-bottom-color: currentColor; }

/* ---------- bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 20; background: var(--green); color: var(--paper); }
.bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.bar .name { font-family: var(--serif); font-size: 25px; line-height: 1; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px); }
.bar nav a { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 8px 0 6px;
             border-bottom: 1px solid transparent; transition: border-color .25s; }
.bar nav a:hover, .bar nav a.on { border-bottom-color: currentColor; }

/* ---------- drawings ---------- */
figure { min-width: 0; }
.dw { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--r); background: var(--paper); }
.dw .in { position: absolute; container-type: inline-size; background: var(--paper); }
.dw img { width: 100%; height: 100%; }
.dw .in > img:first-child { mix-blend-mode: darken; }       /* the picture's paper is a shade off the page colour; this removes the box */
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 12px;
             font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ann { position: absolute; font-size: .885cqw; line-height: 1.365; color: var(--ink); transform-origin: 0 0; white-space: pre-line; text-wrap: balance; pointer-events: none; }
.ann strong { font-weight: 600; }
.ann.nowrap { white-space: pre; }
.ann.mask { background: var(--paper); padding: 0 .1cqw; line-height: 1; }
/* a drawing on the green: line work turned to white, paper dropped out */
.dw.blue { background: transparent; }
.dw.blue .in { background: var(--green); }
.dw.blue .in > img:first-child { filter: grayscale(1) brightness(1.14) invert(1); mix-blend-mode: screen; }
/* the fixings of the construction detail */
.fx { position: absolute; height: auto !important; mix-blend-mode: darken; pointer-events: none; }

/* ---------- first screen: the name and one line, set in the empty sky of the elevation ---------- */
.hero { padding-top: calc(var(--bar) + clamp(32px, 6.5vh, 72px)); }
.hero .wrap { position: relative; }
.hero-text { position: absolute; left: var(--m); top: 0; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; color: var(--strong); }
.hero .role { margin-top: 12px; font-size: 16px; line-height: 1.4; color: #2B2B26; }

/* ---------- projects ---------- */
.project { padding-top: var(--gap); }

/* A Living Edge: the exhibition photograph, darkened, with the title and the facts at its foot; then the elevation and three drawings */
.photo-band { position: relative; overflow: hidden; margin-top: var(--gap); min-height: min(620px, 72vh); display: flex; align-items: flex-end;
              background: var(--strong); color: var(--paper); }
.photo-band .shot { position: absolute; inset: 0; }
.photo-band .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.photo-band .shot::after { content: ''; position: absolute; inset: 0; background: rgba(22, 22, 19, .64); }
.photo-band .wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: clamp(40px, 7vh, 64px); }
.photo-band h2 { color: var(--paper); }
.photo-band .sub { margin-top: 12px; }
.photo-band .rec { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; margin: clamp(20px, 3.4vh, 30px) 0 22px; }
.photo-band .more { color: var(--paper); }
.photo-band :focus-visible { outline-color: var(--paper); }
.le-lead { margin-top: clamp(40px, 7vh, 72px); }
.le-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 7vh, 64px); }

/* ---------- green bands ---------- */
.band { position: relative; overflow: hidden; background: var(--green); color: var(--paper); margin-top: var(--gap); padding: clamp(56px, 10vh, 108px) 0; }
.band .label { color: var(--paper); opacity: .85; }
.band .more { color: var(--paper); }
.band .wrap { position: relative; }
.quote { font-family: var(--serif); font-size: clamp(26px, 2.75vw, 40px); line-height: 1.14; max-width: 18em; }
.about .quote { margin-top: 20px; }
.trees { position: absolute; right: -4%; bottom: -4%; width: min(1100px, 78%); opacity: .26; pointer-events: none; }

/* ---------- Grounded Learning: the words in a green box beside the section, then the three plans in a row ---------- */
.gl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.gl-lead { width: min(100%, calc(52vh * var(--r))); }
.box { background: var(--green); color: var(--paper); padding: clamp(24px, 2.6vw, 40px); }
.box h2 { color: var(--paper); font-size: clamp(34px, 3.4vw, 50px); margin-bottom: 20px; }
.box p + p { margin-top: .7em; }
.box .more { display: block; width: fit-content; margin-top: 22px; color: var(--paper); }
.gl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 6vh, 60px); }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: start; }
.a-text { grid-column: 1 / span 7; }
.about .quote { font-size: clamp(26px, 2.8vw, 42px); text-indent: -.42em; }      /* the opening quotation mark hangs in the margin */
.about h2 { color: var(--paper); }
.about .facts { margin-top: clamp(32px, 5vh, 48px); max-width: 36em; }
/* the photo is sized from the screen width, so it shrinks steadily from desktop down to phone: about 310 px wide on a 1440 px screen */
.portrait { grid-column: 8 / span 5; justify-self: center; align-self: center; width: clamp(150px, 21.5vw, 330px); position: relative; min-width: 0; }   /* centred in the space beside the text, top to bottom and side to side */
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }   /* always upright, whatever the screen */
.facts div { padding: 14px 0 16px; border-top: 1px solid rgba(241, 238, 231, .45); }
.facts div:last-child { border-bottom: 1px solid rgba(241, 238, 231, .45); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.facts dd span { display: block; }

/* ---------- Facade Works: the part section large, the details at one size around it ---------- */
.bu { padding-bottom: var(--gap); }
.bu .wrap::before { content: ''; display: block; height: 1px; background: rgba(36, 36, 31, .3); margin-bottom: clamp(40px, 7vh, 72px); }   /* a rule: two cream sections meet here */
.bu-head p { margin-top: 16px; max-width: 30em; color: #2B2B26; }
.bu-head .more { display: block; width: fit-content; margin-top: 14px; }
.bu-a { display: grid; grid-template-columns: minmax(0, 2.26fr) minmax(0, 1fr); column-gap: clamp(32px, 4.4vw, 64px); align-items: start;
        margin-top: clamp(32px, 5vh, 52px); }
.bu-side { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px); }
.bu-b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4.4vw, 64px); margin-top: clamp(40px, 7vh, 72px); }

/* ---------- foot ---------- */
.foot { position: relative; overflow: hidden; background: var(--green); color: var(--paper); }
.foot .wrap { position: relative; padding-top: clamp(64px, 12vh, 130px); padding-bottom: 26px; }
.foot h2 { font-size: clamp(54px, 6.3vw, 96px); line-height: .95; color: var(--paper); }
.foot .lines { margin-top: clamp(20px, 3.4vh, 34px); font-size: 17px; line-height: 1.75; }
.foot .lines a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.foot .lines a:hover { border-bottom-color: currentColor; }
.foot .end { margin-top: clamp(56px, 11vh, 120px); display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
             font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 238, 231, .85); }
.foot .end a { text-decoration: none; padding: 14px 0; }
.rules { position: absolute; top: 0; bottom: 0; right: var(--m); width: clamp(60px, 13.5vw, 190px); pointer-events: none; }
.rules i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(241, 238, 231, .42); }

/* ---------- motion: a plain fade as a section arrives, and the fixings of the one detail. Nothing else. ---------- */
.js .rv { opacity: 0; transition: opacity .8s ease; }
.js .rv.in { opacity: 1; }
.js .fx { transform: translate(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqw)); }
.js .rv.in .fx { transform: none; transition: transform 2.2s cubic-bezier(.3, .6, .2, 1) calc(.7s + var(--k) * .12s); }
.still .rv { opacity: 1 !important; transition: none !important; }
.still .fx { transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .hero-text { position: static; margin-bottom: 28px; }
  .gl-top { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .gl-lead { width: 100%; }
  .trees { width: 120%; right: -30%; opacity: .2; }
}
@media (max-width: 700px) {
  /* phone: the photo sits beside the quote, and the facts run full width underneath (Sarah's option A, 25 Nov) */
  .about .wrap { grid-template-columns: minmax(0, 1fr) 36vw; column-gap: 20px; }
  .a-text { display: contents; }
  .about .label, .about .facts { grid-column: 1 / -1; }
  .about .label { grid-row: 1; }
  .about .quote { grid-column: 1; grid-row: 2; font-size: 24px; }
  .portrait { grid-column: 2; grid-row: 2; width: 100%; margin-top: 26px; justify-self: stretch; align-self: start; }
  .about .facts { grid-row: 3; }
  :root { --bar: 52px; --gap: 64px; }
  .bar .name { font-size: 21px; }
  .bar nav { gap: 15px; }
  .bar nav a:last-child { display: none; }      /* no room on a phone; the foot carries the portfolio link */
  .le-row { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .gl-plans { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .bu-a { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .bu-b { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .ann { font-size: max(.885cqw, 4.2px); }
  .foot .lines { font-size: 16px; }
  .rules { opacity: .55; }
}
