/* derekgraham.com — reproduces the 2014–16 Squarespace (Avenue-family) look.
   Metrics were measured from the live site's computed styles on 2026-10-29. */

@font-face { font-family: "Jost"; src: url(/fonts/jost.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url(/fonts/crimson-pro.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #fcfcfc;
  --text: #777;
  --ink: #222;
  --link: #111;
  --muted: #999;
  --rule: #e3e3e3;
  --display: "Jost", "Futura PT", Futura, "Helvetica Neue", sans-serif;
  --body: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --gutter: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
button { font: inherit; }

/* ---- frame ---------------------------------------------------------------- */

.canvas { max-width: 1050px; margin: 10px auto; padding: 75px; }
.site-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.logo h1 { margin: 0; font: 400 34px/1.2 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.logo h1 a { color: var(--ink); }
.logo .subtitle { margin-top: 0.7em; font-size: 17px; letter-spacing: 1px; color: #7e7c7c; line-height: 1.2; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 30px; }
.main-nav a { display: block; padding: 5px 0; font: 400 15px/30px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.main-nav a:hover, .main-nav .active a { color: #000; }

.content { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 50px 0; }
.site-footer { margin-top: 50px; }
.site-footer p { margin: 0; }

/* ---- blocks and grid ------------------------------------------------------ */

.block { padding: var(--gutter) 0; }
.content > .block:first-child, .row:first-child > .col > .block:first-child { padding-top: 0; }
.row { display: flex; margin: 0 calc(-1 * var(--gutter)); }
.col { padding: 0 var(--gutter); min-width: 0; }
.span-1 { width: 8.333%; } .span-2 { width: 16.667%; } .span-3 { width: 25%; } .span-4 { width: 33.333%; }
.span-5 { width: 41.667%; } .span-6 { width: 50%; } .span-7 { width: 58.333%; } .span-8 { width: 66.667%; }
.span-9 { width: 75%; } .span-10 { width: 83.333%; } .span-11 { width: 91.667%; } .span-12 { width: 100%; }

.block-text h1, .block-text h2, .block-text h3, .block-text h4 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
.block-text h1 { font-size: 22px; }
.block-text h2 { font-size: 18px; }
.block-text h3 { font-size: 13px; }
.block-text p { margin: 0 0 1em; }
.block-text > :last-child { margin-bottom: 0; }
.block-text a:hover { color: var(--text); }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* image block */
figure.image { margin: 0 auto; }
figure.image .crop { display: block; position: relative; padding-bottom: var(--ratio); overflow: hidden; }
figure.image .crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
figure.image figcaption { margin-top: 0.8em; }

/* gallery block: grid of fitted images */
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap, 20px); }
.gallery-grid .cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; }
.gallery-grid.ratio-standard-vertical .cell { aspect-ratio: 2 / 3; }
.gallery-grid.ratio-standard .cell { aspect-ratio: 3 / 2; }
.gallery-grid .cell img { max-height: 100%; width: auto; object-fit: contain; }
.gallery-grid .cell.fill img { width: 100%; height: 100%; object-fit: cover; }

/* summary carousel */
.carousel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.carousel .heading { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #555; }
.carousel .pager { display: flex; gap: 14px; }
.carousel .pager button, .slideshow .stage button { border: 0; background: none; padding: 0; cursor: pointer; }
.carousel .pager button { width: 14px; height: 14px; }
.carousel .pager button::before { content: ""; display: block; width: 8px; height: 8px; margin: 3px; border: solid #555; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.carousel .pager .next::before { transform: rotate(-135deg); }
.carousel .pager button:disabled::before { border-color: #ccc; }
.carousel .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-row) - 1) * 18px) / var(--per-row)); gap: 18px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .item { scroll-snap-align: start; }
.carousel.cropped .thumb { display: block; aspect-ratio: var(--thumb-ratio); overflow: hidden; }
.carousel.cropped .thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel .thumb img { width: 100%; }
.carousel .title { margin-top: 20px; font: 400 19px/1.3 var(--body); letter-spacing: 1px; text-transform: uppercase; color: #666; }
.carousel .meta { margin-top: 18px; font-size: 13px; color: #aaa; }
.carousel .excerpt { margin-top: 8px; }

/* button block */
.button-wrap { margin: 0; }
.button, .contact-form button { display: inline-block; border: 0; cursor: pointer; background: #272727; color: #fff; padding: 14px 34px;
  font: 400 14px/1.4 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.button:hover, .contact-form button:hover { background: #000; }

/* ---- index pages (Analog, Digital) ---------------------------------------- */

.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 27px; }
.index-item { display: block; text-align: center; color: #555; font-size: 12px; }
.index-item .thumb { display: block; aspect-ratio: 1; overflow: hidden; }
.index-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.index-item .title { display: block; margin-top: 12px; }

/* ---- gallery pages (slideshow with thumbnail strip) ----------------------- */

.slideshow .stage { position: relative; height: 70vh; min-height: 300px; }
.slideshow figure { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.slideshow figure.active { opacity: 1; visibility: visible; }
.slideshow figure img { max-height: 100%; width: auto; object-fit: contain; }
.slideshow .stage .prev, .slideshow .stage .next { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; }
.slideshow .stage .prev { left: 0; cursor: w-resize; }
.slideshow .stage .next { right: 0; cursor: e-resize; }
.slideshow .thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 30px; }
.slideshow .thumbs button { border: 0; padding: 0; background: none; cursor: pointer; opacity: .35; }
.slideshow .thumbs button.active, .slideshow .thumbs button:hover { opacity: 1; }
.slideshow .thumbs img { height: 20px; width: auto; }

/* ---- lightbox ------------------------------------------------------------- */

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 17, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); width: auto; }
.lightbox button { position: absolute; border: 0; background: none; color: #ddd; cursor: pointer; font: 300 40px/1 var(--body); padding: 20px; }
.lightbox button:hover { color: #fff; }
.lightbox .close { top: 0; right: 0; font-size: 34px; }
.lightbox .prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 0; top: 50%; transform: translateY(-50%); }

/* ---- contact form --------------------------------------------------------- */

.contact-form { color: #555; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.contact-form legend { padding: 0; margin-bottom: 2px; font-size: 14px; }
.contact-form fieldset label { font-size: 12px; margin-bottom: 0; }
.contact-form label { display: block; margin-bottom: 20px; }
.contact-form .req { font-size: 11px; color: var(--muted); margin-left: 4px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #a9a9a9; border-radius: 0; background: #fafafa; font: 14px var(--body); color: #333; }
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .submit { text-align: right; margin: 0; }
.contact-form .status { margin: 0 0 16px; padding: 10px 12px; background: #f1f1f1; color: #333; }

/* ---- cover page ----------------------------------------------------------- */

body.cover { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: #999 var(--cover-image) center / cover no-repeat; }
.cover .scrim { position: fixed; inset: 0; background: rgb(60, 57, 55); opacity: .3; }
.cover .card { position: relative; width: 600px; max-width: 100%; background: #fff; padding: 60px 60px 64px; text-align: center; color: var(--muted); }
.cover .kicker { margin: 0; font: 600 16px/1 "Crimson Pro", Georgia, serif; letter-spacing: .2em; text-transform: uppercase; }
/* Jost runs wider than the original Europa; 48px matches its 475px measure. */
.cover h1 { margin: 20px 0; font: 700 48px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cover nav { display: flex; justify-content: center; flex-wrap: wrap; }
.cover nav a { padding: 10px 9px; font: 700 14px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cover nav a:hover { color: #555; }

/* ---- small screens -------------------------------------------------------- */

@media (max-width: 760px) {
  .canvas { padding: 40px 16px; margin: 0 auto; }
  .site-header { flex-direction: column; margin-bottom: 30px; }
  .logo h1 { font-size: 28px; }
  .main-nav ul { justify-content: flex-start; column-gap: 20px; }
  .content { padding: 30px 0; }
  .row { display: block; margin: 0; }
  .col { width: auto; padding: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .index-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .carousel { --per-row: 1.5 !important; }
  .slideshow .stage { height: 60vh; }
  .lightbox img { max-width: 100vw; }
  .contact-form fieldset { grid-template-columns: 1fr; }
  .cover .card { padding: 40px 20px 44px; }
  .cover h1 { font-size: 32px; }
}
