/* Rob Shook sites: the whole look lives in this one file (shared by both sites).
   Colors, fonts and spacing are set once at the top. */
:root {
  --bg: #ffffff;        /* page background: white */
  --fg: #161616;        /* main text */
  --muted: #6c6a64;     /* menu and small text */
  --line: #d9d5ca;      /* thin lines */
  --track: #eeeeee;     /* scroll bar track under the photos */
  --thumb: #2b2b2b;     /* scroll bar handle */
  --red: #8c1228;       /* v2 [graphic] button: deep crimson text and outline */
  --sel: #e4e4de;       /* pale tint behind the chosen button */
  --sel-red: #f1d6db;   /* pale rose behind the chosen v2 button */
  --ph1: #5b4a3a; --ph2: #2f3a44; --ph3: #4a3c46; --ph4: #3f4a3a; --ph5: #4d4033; --ph6: #2c3d46; --ph7: #463a36; --ph8: #38393f;
  color-scheme: light;
}
html, body { height: 100%; }
@supports (height: 100dvh) { body { height: 100dvh; } }
body { text-transform: lowercase; margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Top bar: name on the left, menu on the right */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 52px; flex: none; box-sizing: border-box; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.name { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: 17px; letter-spacing: .02em; font-weight: 500; }
.menu { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: lowercase; }
.gallery.is-grid[data-stable] .tile { order: var(--slot, 0); }
.gallery.is-grid[data-keep] .tile[hidden] { display: block !important; visibility: hidden; }
.arrow { position: fixed; z-index: 20; width: 56px; height: 96px; padding: 0 0 8px; border: 0; background: none; color: #fff; font: 200 78px/1 "Inter", system-ui, sans-serif; text-shadow: 0 1px 14px rgba(0,0,0,.55); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .18s; }
.arrow.vis { opacity: 1; pointer-events: auto; }
.arrow:hover, .arrow:focus-visible { text-shadow: 0 1px 14px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6); outline: none; }
@media (hover: none) { .arrow { opacity: 1; pointer-events: auto; } }
.arrow.prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.arrow.next { right: max(8px, env(safe-area-inset-right, 0px)); }
.menu .dd { position: relative; }
.menu .dd-list { display: none; position: absolute; right: 0; top: 100%; padding-top: 10px; z-index: 30; flex-direction: column; gap: 0; white-space: nowrap; }
.menu .dd-list a { display: block; background: var(--bg); padding: 7px 14px; border: 1px solid #e4e4de; border-top: 0; }
.menu .dd-list a:first-child { border-top: 1px solid #e4e4de; }
.menu .dd:hover .dd-list, .menu .dd:focus-within .dd-list { display: flex; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current] { color: var(--fg); outline: none; text-decoration: underline; text-underline-offset: 6px; }

/* Front page: one sideways strip of whole photos, thick scroll bar directly under */
.strip { flex: 1 1 auto; min-height: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: auto; scrollbar-color: var(--thumb) var(--track); }
.strip::-webkit-scrollbar { height: 30px; }
.strip::-webkit-scrollbar-track { background: var(--track); }
.strip::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 12px; border: 4px solid var(--track); }
.tile { flex: none; width: 92vw; height: 100%; position: relative; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--bg); }
.tile:not(.has-img) { background: linear-gradient(var(--c), var(--c)) top / 100% calc(100% - 56px) no-repeat, var(--bg); }
.tile.has-img { width: auto; }
.tile:not(.has-img) .cap { margin-top: auto; }
.tile .ph-img { height: calc(100% - 56px); width: auto; max-width: none; display: block; }
.tile:focus-visible { outline: 3px solid var(--fg); outline-offset: -6px; }
.cap { height: 56px; box-sizing: border-box; padding: 0 22px; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex: none; }
.cap h2 { margin: 0; font: 500 clamp(18px, 2.2vw, 26px)/1.1 "Space Grotesk", "Inter", system-ui, sans-serif; text-wrap: balance; }
.cap.hv { gap: 0; }
.cap.hv .zone { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 18px; cursor: help; }
.cap.hv h2 { flex: 0 1 auto; min-width: 0; font-size: clamp(15px, 1.6vw, 22px); }
.vctl { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 6px; font: 500 13px/1 "Inter", system-ui, sans-serif; letter-spacing: .04em; pointer-events: none; }
.vctl b { font-weight: 500; padding: 6px 9px; border: 2px solid transparent; border-radius: 3px; background: rgba(255,255,255,.72); color: #222; }
.vctl:not(.v2) .a1, .vctl.v2 .a2 { border-color: #e7a3ad; background: #fbe4e7; color: #8c1228; }
.cap span { font-size: 12px; letter-spacing: .1em; text-transform: lowercase; color: var(--muted); white-space: nowrap; }
.ph { position: absolute; top: 14px; left: 22px; z-index: 1; font-size: 11px; letter-spacing: .1em; text-transform: lowercase; color: rgba(255,255,255,.8); }

/* Bottom bar */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex: none; height: 44px; box-sizing: border-box; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.foot a:hover { color: var(--fg); }

/* Text pages: About, Contact, lists, story pages */
.page { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 40px; }
.page > div { max-width: 720px; margin: 0 auto; }
.page h1 { font: 500 clamp(28px, 4vw, 40px)/1.1 "Space Grotesk", "Inter", system-ui, sans-serif; margin: 0 0 18px; text-wrap: balance; }
.page h2 { font: 500 18px/1.2 "Space Grotesk", "Inter", system-ui, sans-serif; margin: 30px 0 10px; }
.page p { margin: 0 0 14px; max-width: 62ch; font-size: 16px; line-height: 1.55; }
.page ul { margin: 0 0 14px; padding-left: 20px; max-width: 62ch; }
.page li { margin-bottom: 6px; }
.todo { border: 1px dashed var(--muted); color: var(--muted); padding: 10px 12px; margin: 0 0 14px; max-width: 62ch; font-size: 14px; }
.list { list-style: none; padding: 0; margin: 0 0 14px; }
.list li { border-bottom: 1px solid var(--line); margin: 0; }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; }
.list a:hover, .list a:focus-visible { text-decoration: underline; text-underline-offset: 4px; outline: none; }
.list span { color: var(--muted); font-size: 13px; }
.contact-line { font-size: 20px; font-family: "Space Grotesk", "Inter", system-ui, sans-serif; margin: 0 0 6px; overflow-wrap: anywhere; }
form { display: grid; gap: 12px; max-width: 460px; margin-top: 8px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 9px 10px; border-radius: 2px; }
button { font: inherit; padding: 10px 16px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; justify-self: start; }
.story-img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--bg); margin: 0 0 18px; display: block; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: lowercase; }

/* Gallery story page (two versions): title and version switch on top, the sideways strip below */
.gallery { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.gal-head { flex: none; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.gal-head h1 { margin: 0; font: 500 clamp(24px, 3.2vw, 34px)/1.1 "Space Grotesk", "Inter", system-ui, sans-serif; text-wrap: balance; }
.gal-note { margin: 8px 0 0; font-size: 13px; }
.gal-strip .tile.has-img.diptych { aspect-ratio: var(--ar); height: 100%; display: flex; flex-direction: column; }
.gal-strip .tile.has-img.diptych .ph-img { width: 100%; height: auto; max-height: none; }
.tile.has-img { position: relative; }
.gallery:not(.is-grid) .tile.has-img { cursor: pointer; }
.tile .capt { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 36px 18px 16px; color: #fff; font-size: 15px; line-height: 1.4; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none; }
.gallery.is-grid .tile .capt { display: none; }
.tile.swap { position: relative; }
.tile.swap .alt { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .12s; object-fit: contain; }
.tile.swap.show .alt { opacity: 1; }
.tile .q { position: absolute; top: 10px; right: 10px; z-index: 2; width: auto; height: auto; padding: 8px 12px; border-radius: 3px; border: 1.5px solid #fff; background: rgba(0,0,0,.6); color: #fff; font: 500 13px/1.1 "Inter", system-ui, sans-serif; letter-spacing: .02em; cursor: help; }
.gallery.is-grid .gal-strip .tile.has-img.diptych { aspect-ratio: auto; display: flex; flex-direction: column; }
.gallery.is-grid .gal-strip .tile.has-img.diptych .ph-img { flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: contain; object-position: center; }
.gallery.is-grid .tile .q { padding: 4px 6px; top: 6px; right: 6px; font-size: 10px; }
.gal-head .sub strong { font-weight: 700; color: var(--fg); }
.gal-head .sub { margin: 4px 0 0; max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.versions, .views { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.versions button, .views button { background: none; color: var(--muted); border: 0; border-radius: 0; padding: 4px 0; font-size: 13px; letter-spacing: .08em; text-transform: lowercase; cursor: pointer; }
.versions button:hover, .views button:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; }
.versions button[aria-pressed="true"], .views button[aria-pressed="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; }
.versions button[aria-pressed="true"]::before, .views button[aria-pressed="true"]::before { content: "\2713\00a0 "; }
.versions .graphic, .versions .graphic:hover { color: var(--red); }
.versions button:focus-visible, .views button:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
.gal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.gallery.is-grid .strip { display: grid; gap: 10px; align-content: stretch; overflow: hidden; padding: 10px max(10px, env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px)); scroll-snap-type: none; }
.gallery.is-grid .tile, .gallery.is-grid .tile.has-img { width: auto !important; max-width: none; min-width: 0; min-height: 0; height: 100%; cursor: pointer; }
.gallery.is-grid .gal-strip .tile.has-img .ph-img { width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain; object-position: center; }
.gallery.is-grid .tile:hover .ph-img, .gallery.is-grid .tile:focus-visible .ph-img { outline: 2px solid var(--fg); outline-offset: -2px; }
.warn { flex-basis: 100%; border: 1px solid var(--fg); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.warn p { margin: 0; flex: 1 1 260px; font-size: 15px; }
.warn button { padding: 8px 14px; font-size: 13px; }
.warn button.quiet { background: var(--bg); color: var(--fg); }
.gal-strip .tile { cursor: default; }
.gal-strip .tile:not(.has-img) { width: 62vw; }
.gal-strip .tile.has-img .ph-img { height: 100%; }

/* Phones */
@media (max-width: 600px) {
  .tile { width: 86vw; scroll-snap-align: center; }
  .strip { gap: 4px; }
  .bar { height: auto; min-height: 52px; padding-block: 8px; flex-wrap: wrap; gap: 4px 16px; }
  .menu { gap: 6px 14px; justify-content: flex-start; }
  .menu a { font-size: 12px; }
  .menu .dd-list { left: 0; right: auto; }
  .foot { height: auto; min-height: 44px; padding-block: 8px; flex-wrap: wrap; gap: 4px 16px; }
  .strip::-webkit-scrollbar { height: 24px; }
  .tile.has-img { width: auto; max-width: 92vw; justify-content: center; }
  .tile .ph-img { height: auto; width: auto; max-width: 92vw; max-height: calc(100% - 56px); }
  .gallery:not(.is-grid) .gal-strip .tile.has-img .ph-img { height: auto; max-height: 100%; }
  .tile:not(.has-img) { justify-content: center; background: var(--bg); }
  .tile:not(.has-img) .cap { margin-top: 0; }
  .cap { padding: 0 14px; }
  .cap span { display: none; }
  .gal-strip .tile:not(.has-img) { width: 80vw; }
  .gal-head { padding-top: 8px; }
  .ph { color: var(--muted); }
}
@media (prefers-reduced-motion: no-preference) { .strip { scroll-behavior: smooth; } }
.ph-only { display: none; }
@media (max-width: 600px) {
  .ph-only { display: inline-block; }
  .fp-views { flex: none; display: flex; gap: 8px 22px; padding: 2px 14px 8px; }
  .fp-views button { background: none; color: var(--muted); border: 0; padding: 4px 0; font-size: 13px; letter-spacing: .08em; text-transform: lowercase; cursor: pointer; }
  .fp-views button[aria-pressed="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; }
  .fp-views button[aria-pressed="true"]::before { content: "\2713\00a0 "; }
  main.strip.is-scroll { display: block; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; }
  main.strip.is-scroll .tile { width: 100%; max-width: 100%; height: auto; margin: 0 0 20px; display: block; }
  main.strip.is-scroll .tile .ph-img { width: 100%; max-width: 100%; height: auto; max-height: none; }
  main.strip.is-scroll .tile:not(.has-img) { height: 36vh; display: flex; }
  main.strip.is-scroll .cap { height: auto; padding: 8px 14px 0; }
  main.strip.is-grid-fp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 8px 14px 20px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; align-content: start; }
  main.strip.is-grid-fp .tile { width: auto; max-width: none; height: auto; display: block; }
  main.strip.is-grid-fp .tile .ph-img { width: 100%; max-width: 100%; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: contain; background: #f4f4f1; }
  main.strip.is-grid-fp .tile:not(.has-img) { height: auto; aspect-ratio: 1 / 1; display: flex; }
  main.strip.is-grid-fp .cap { height: auto; padding: 4px 0 0; }
  main.strip.is-grid-fp .cap h2 { font-size: 13px; }
  main.strip.is-grid-fp .vctl, main.strip.is-grid-fp .zone .vctl { display: none; }
  .gallery.is-scroll { display: block; overflow-y: auto; }
  .gallery.is-scroll .gal-head, .gallery.is-scroll .gal-head > div { display: contents; }
  .gallery.is-scroll h1, .gallery.is-scroll .sub { padding: 0 14px; }
  .gallery.is-scroll .gal-controls { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .gallery.is-scroll .strip { display: block; overflow: visible; height: auto; scroll-snap-type: none; padding: 0; }
  .gallery.is-scroll .tile, .gallery.is-scroll .tile.has-img { width: 100% !important; max-width: 100%; height: auto; margin: 0 0 6px; display: block; }
  .gallery.is-scroll .tile[hidden] { display: none; }
  .gallery.is-scroll .gal-strip .tile.has-img .ph-img { width: 100%; max-width: 100%; height: auto; max-height: none; }
  .gallery.is-scroll .gal-strip .tile.has-img.diptych { aspect-ratio: auto; height: auto; display: block; }
  .gallery.is-scroll .tile .capt { font-size: 13px; padding: 24px 12px 10px; }
}
