/* Johan McDermott: the page is drawn like a plan. Quiet ink on cool paper, with one loud object: the depth-coloured floor plan. */
:root {
  --paper: #FFFFFF;
  --ink: #14171A;
  --mute: #565C62;
  --rule: #E4E6E5;
  --wall: #14171A;
  --accent: #B8322A;
  --d0: #F09589; --d1: #E89D69; --d2: #CFAD57; --d3: #7BC58B; --d4: #62BCEE; --d5: #8AB1F9; --d6: #8AB1F9;
  --display: "Times New Roman", Times, "Liberation Serif", serif;
  --text: "Times New Roman", Times, "Liberation Serif", serif;
  --gutter: clamp(24px, 6vw, 88px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #101315; --ink: #E9EBEA; --mute: #9BA2A8; --rule: #2A2F33; --wall: #4A5157; --accent: #E4574D; --d0: #CF756A; --d1: #C87E49; --d2: #AF8D32; --d3: #5AA66C; --d4: #3D9DCE; --d5: #6B91D9; --d6: #6B91D9; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 18px; line-height: 1.68;
  padding-inline: var(--gutter); padding-block: 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

/* header */
header.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-block: 40px 0; font-family: var(--display); font-size: 16px; }
.brand { margin: 0; font-weight: 500; text-decoration: none; }
nav.main { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--mute); padding-block: 10px; margin-block: -10px; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* home: the name and menu stay out of sight until the page is scrolled, so the plan is the only thing on arrival */
html.js body.home-page header.site { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 5; padding: 18px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); opacity: 0; transform: translateY(-100%); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
html.js body.home-page.scrolled header.site, html.js body.home-page header.site:focus-within { opacity: 1; transform: none; pointer-events: auto; }
main { max-width: 1240px; margin-inline: auto; padding-block: clamp(56px, 9vw, 120px) clamp(96px, 13vw, 192px); }
main.home { padding-top: 152px; }
h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; max-width: 22ch; }
h2 { font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 1.3em; max-width: 62ch; }
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--mute); max-width: 44ch; margin-top: 44px; }
.back { display: inline-block; margin-bottom: 64px; font-family: var(--display); font-size: 15px; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--ink); }
.inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--mute); }
.inline:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* plan */
.plan-wrap { margin-top: 0; padding-inline: clamp(24px, 12vw, 300px); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan { display: block; width: 100%; height: auto; }
.plan .wall { fill: var(--wall); }
.plan .door { fill: var(--paper); }
.plan .room { transition: fill .45s cubic-bezier(.22, .61, .36, 1); }
.plan .room[data-d="0"] { fill: var(--d0); } .plan .room[data-d="1"] { fill: var(--d1); } .plan .room[data-d="2"] { fill: var(--d2); }
.plan .room[data-d="3"] { fill: var(--d3); } .plan .room[data-d="4"] { fill: var(--d4); } .plan .room[data-d="5"] { fill: var(--d5); } .plan .room[data-d="6"] { fill: var(--d6); }
.plan a { cursor: pointer; }
.plan.secret text { opacity: 0; transition: opacity .3s ease; }
.plan.secret text.show { opacity: 1; }
.plan text.whisper { font-weight: 400; }
.plan a, .plan a:focus, .plan a:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; }
.plan a:focus-visible .room { stroke: var(--ink); stroke-width: 3; }
.plan text { font-family: var(--display); font-size: 17px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.plan.intro .room { animation: wash .8s ease-out backwards; animation-delay: calc(var(--d, 0) * 140ms); }
@keyframes wash { from { fill: var(--paper); } }
.plan-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 20px; font-family: var(--display); font-size: 15px; color: var(--mute); }
.plan-note p { margin: 0; max-width: 56ch; }
.plan-note strong { font-weight: 500; color: var(--ink); }
.key { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.key li { display: grid; gap: 2px; justify-items: center; font-size: 13px; }
.key i { display: block; width: 26px; height: 12px; }
.key span { margin-left: 8px; }

/* project list */
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 72px clamp(40px, 7vw, 120px); margin-top: clamp(120px, 17vw, 240px); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 4px 20px; padding-block: 20px; text-decoration: none; align-items: baseline; }
.plist .name { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.plist .kind, .plist .year { color: var(--mute); font-size: 1rem; }
.plist a:hover .name, .plist a.on .name, .plist a:focus-visible .name { color: var(--accent); }
.plist a:hover .name, .plist a.on .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* project pages */
.figure { margin: 0; }
.meta { margin-top: 20px; font-family: var(--display); font-size: 15px; color: var(--mute); }
.gallery { display: grid; gap: clamp(72px, 10vw, 144px); margin-top: clamp(56px, 8vw, 104px); }
.plate { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.plate.text .cap { grid-column: 2; }
.cap { max-width: 44ch; color: var(--mute); }
.cap p { margin: 0 0 1em; }
.cap p:last-child { margin-bottom: 0; }
.plinks { margin-top: clamp(64px, 9vw, 120px); }
.figure svg { width: 100%; height: auto; display: block; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 48px; margin: clamp(64px, 9vw, 120px) 0 0; max-width: 900px; }
.facts dt { font-family: var(--display); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--mute); }
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(40px, 7vw, 120px); margin-top: clamp(80px, 11vw, 160px); }
.section .body > :last-child { margin-bottom: 0; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 36px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px; }
.steps li::before { content: "Step " counter(step); font-family: var(--display); font-weight: 500; font-size: 15px; padding-top: .2em; }
.steps p { margin: 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: clamp(104px, 14vw, 192px); font-family: var(--display); }
.pager a { text-decoration: none; display: grid; gap: 2px; }
.pager small { color: var(--mute); font-size: 14px; }
.pager .t { font-weight: 500; font-size: 1.1rem; }
.pager a:hover .t { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
.credit { margin-top: 72px; font-family: var(--display); font-size: 14px; color: var(--mute); }

/* drawings */
.st { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.th { stroke: var(--ink); stroke-width: 2.4; fill: none; }
.hl { stroke: var(--mute); stroke-width: .8; fill: none; }
.ac { fill: var(--accent); }
.acs { stroke: var(--accent); stroke-width: 1.8; fill: none; }
.dash { stroke-dasharray: 5 4; }
.nd { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.lbl { font-family: var(--display); font-size: 8.5px; fill: var(--mute); }

/* about, contact */
.rows { margin-top: clamp(72px, 10vw, 144px); display: grid; gap: 64px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(40px, 7vw, 120px); }
.row p { margin: 0 0 .5em; }
.mail { font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 3.4vw, 2.4rem); letter-spacing: -.01em; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--mute); }
.mail:hover { color: var(--accent); text-decoration-color: var(--accent); }

footer.site { border-top: 1px solid var(--rule); padding-block: 56px 72px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; color: var(--mute); font-size: 16px; max-width: 1240px; margin-inline: auto; }
footer.site address { font-style: normal; }
footer.site strong { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 15px; }
footer.site a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .plan text { font-size: 15px; stroke-width: 4px; }
  .cols, .section, .row, .plate { grid-template-columns: minmax(0, 1fr); }
  .plate.text .cap { grid-column: 1; }
  .plist a { grid-template-columns: minmax(0, 1fr) auto; }
  .plist .kind { grid-column: 1; grid-row: 2; }
  .plist .year { grid-column: 2; grid-row: 1; }
  .steps li { grid-template-columns: 4rem minmax(0, 1fr); }
  main.home { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) { html.js body.home-page header.site { transition: none; } .plan .room, .plan.secret text { transition: none; } .plan.intro .room { animation: none; } }

.plan a:not([href]) { cursor: default; }
.note { max-width: 62ch; }
.note h1 { margin-bottom: clamp(48px, 8vw, 96px); }
.note p { margin: 0 0 1.4em; }
.note img { display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 72px); }
.figure img { display: block; width: 100%; height: auto; }
html.js .plan:not(.ready) { visibility: hidden; }
html.js body.home-page footer.site { opacity: 0; animation: show-footer 0s 4s forwards; }
html.js body.home-page.settled footer.site { opacity: 1; animation: none; transition: opacity .6s ease; }
@keyframes show-footer { to { opacity: 1; } }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.plan-link { font-family: var(--display); font-size: 15px; color: var(--mute); text-decoration: none; padding: 12px 0; }
.plan-link, .sound { white-space: nowrap; }
.plan-link .short { display: none; }
@media (max-width: 520px) { .plan-link .long { display: none; } .plan-link .short { display: inline; } }
.plan-link:hover, .plan-link:focus-visible { color: var(--ink); }
.sound { display: block; margin: 0 0 0 auto; font-family: var(--display); font-size: 15px; color: var(--mute); background: none; border: 0; padding: 12px 0; min-width: 44px; cursor: pointer; }
.sound[hidden] { display: none; }
.sound:hover, .sound:focus-visible { color: var(--ink); }
.sound[aria-pressed="true"] { color: var(--ink); }
.sound.waiting { color: var(--mute); }
.sound.waiting::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: sound-wait 2.4s ease-in-out infinite; }
@keyframes sound-wait { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sound.waiting::after { animation: none; } }
html.js body.home-page .sound, html.js body.home-page .plan-link { opacity: 0; transition: opacity .6s ease; animation: show-footer 0s 4s forwards; }
html.js body.home-page.settled .sound, html.js body.home-page.settled .plan-link { opacity: 1; animation: none; }

/* the machine behind the deepest tile */
/* the lights go out: hovering the secret box blacks out the page, and only that box stays lit, in white */
html.js body.home-page::before { content: ""; position: fixed; inset: 0; z-index: 40; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
html.js body.home-page.abyss::before { opacity: 1; }
.plan-wrap { position: relative; z-index: 0; transition: z-index 0s .6s; }
body.abyss .plan-wrap { z-index: 41; transition-delay: 0s; }
body.abyss .plan .room { fill: #000; }
body.abyss .plan a.deep .room { fill: #fff; }
body.abyss .plan text, html.js body.home-page.abyss .sound, html.js body.home-page.abyss .plan-link { opacity: 0; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { html.js body.home-page::before { transition: none; } }
.machine { position: fixed; inset: 0; z-index: 50; background: #0b0c11; opacity: 0; transition: opacity .9s ease; }
.machine.on { opacity: 1; }
.machine canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.m-leave, .m-sound { position: absolute; z-index: 1; font-family: var(--display); font-size: 15px; color: rgba(226, 224, 236, .45); background: #0b0c11; border: 0; padding: 8px 12px; cursor: pointer; text-decoration: none; }
.m-leave { top: 8px; left: 8px; }
.m-sound { bottom: 8px; right: 8px; }
.m-leave:hover, .m-leave:focus-visible, .m-sound:hover, .m-sound:focus-visible, .m-sound[aria-pressed="true"] { color: rgba(226, 224, 236, .85); }
.m-sound.waiting { color: rgba(226, 224, 236, .45); }
.m-sound.waiting::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: sound-wait 2.4s ease-in-out infinite; }
html.machine-open, html.machine-open body { overflow: hidden; }
body.machine-page { overflow: hidden; background: #0b0c11; }
@media (prefers-reduced-motion: reduce) { .machine { transition: none; } .m-sound.waiting::after { animation: none; } }

/* on touch screens, small links get a finger-sized tappable area without moving anything on the page */
@media (pointer: coarse) {
  a.brand, footer.site a, .inline, .mail { padding-block: 12px; margin-block: -12px; }
  nav.main a { padding-block: 14px; margin-block: -14px; }
  .back { padding-block: 10px; margin-block: -10px 54px; }
  .skip:focus { padding: 12px 14px; }
}

/* the work list: filters, and the tags under a project */
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: clamp(40px, 6vw, 64px) 0 24px; font-family: var(--display); font-size: 15px; }
.filters a { color: var(--mute); text-decoration: none; padding-block: 6px; }
.filters a:hover, .filters a[aria-current="true"] { color: var(--ink); }
.filters a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.worklist { margin-top: 8px; }
.worklist li[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; font-family: var(--display); font-size: 15px; }
.tags a { color: var(--mute); text-decoration: none; }
.tags a:hover { color: var(--ink); }
@media (pointer: coarse) { .filters a, .tags a { padding-block: 12px; margin-block: -6px; } }

/* a service page: headed sections of text under the introduction */
.service { max-width: 62ch; margin-top: clamp(48px, 7vw, 88px); }
.service h2 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin: 48px 0 12px; }
.service h2:first-child { margin-top: 0; }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 1rem; margin: 28px 0 6px; }
.service h3 + p { margin-top: 0; }
.note h2 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin: 48px 0 12px; }
.note-cta { margin-top: clamp(48px, 7vw, 72px); color: var(--mute); }
.note-cta + .book { margin-top: 20px; }
footer.site .foot-svc { margin: 0; }
.worklist-h { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin: 72px 0 0; }

/* booking on the photography page: three plain links in the site's own type */
.book { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: clamp(32px, 5vw, 48px) 0 0; font-family: var(--display); font-size: 1.05rem; }
.book a { color: var(--mute); text-decoration: none; }
.book a:hover, .book a:focus-visible { color: var(--ink); }
.book .book-main { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.book .book-main:hover { color: var(--accent); }
.service + .book { margin-top: 40px; }
.book-alt { margin: 18px 0 0; color: var(--mute); font-size: .95rem; }
.book-alt .copy { font: inherit; color: var(--mute); background: none; border: 0; padding: 0; margin-left: 18px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.book-alt .copy:hover { color: var(--ink); }
@media (pointer: coarse) { .book a, .plan-link { padding-block: 12px; margin-block: -12px; } }

/* touch screens never get the black-out, even if a hover state sticks after a tap */
@media (hover: none) { html.js body.home-page::before { display: none; } }
