@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-ext-wght-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-wght-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* Matthew Noel Mason: site styles. White page, dark type, one red accent; layout follows the original site.
   Face: Inter, self-hosted in /fonts (variable, so every weight from one file); the header logo is Inter Bold too. */

:root {
  --bg: #ffffff;
  --surface: #f3f2ef;
  --ink: #1c1c1c;
  --muted: #5f5f5c;
  --accent: #c8321e;
  --accent-ink: #ffffff;

  --font-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-head: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem);

  --margin: clamp(16px, 3vw, 40px);
  --column: 905px;
  --wrap: 1240px; /* header, grid, pages and footer share these two edges */
  --gutter: max(var(--margin), calc((100% - var(--wrap)) / 2));
  --header-height: 92px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
br { clear: both; } /* a line break after a floated picture starts the text below it, as on the original site */
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: var(--margin); top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); font-size: var(--step-small); font-weight: 500; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header + navigation */
.site-header {
  position: sticky; top: 0; z-index: 99;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--bg);
}
.site-logo { padding: 36px 0; }
.site-logo__link { position: relative; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo__link::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); } /* the wordmark is only about 10px tall; this gives a thumb a 44px target without moving anything */
.site-logo__mark { width: 48px; height: 48px; flex: none; }
/* wordmark is an SVG outlined from Inter SemiBold with .05em tracking, trimmed to the letters, so it sits flush on the page edge */
.site-logo img.site-logo__name { display: block; width: clamp(174px, 15.86vw, 225px); height: auto; }
.site-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.site-nav__link {
  position: relative;
  padding: 6px 0;
  font-size: var(--step-small); font-weight: 500; letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.site-nav__link::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.site-nav__link:hover { color: var(--accent); }
.site-nav__link.is-current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }

/* page frame */
.page { padding: 0 var(--gutter); }

/* home grid: two columns, title and year under each still; with an odd number of projects the first runs full width */
.grid {
  list-style: none; margin: clamp(4px, 1vw, 12px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4.5vw, 64px) clamp(16px, 2vw, 24px);
}
.tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.tile:first-child:nth-last-child(odd) .tile__frame { aspect-ratio: 2 / 1; }
.tile__link { display: block; text-decoration: none; }
.tile__frame { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.tile__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate(var(--shift-x, 0), var(--shift-y, 0)) scale(var(--zoom, 1)); transition: transform .8s var(--ease-out); } /* --zoom, --shift-x and --shift-y are optional per-project crop settings */
.tile__link:hover .tile__frame img, .tile__link:focus-visible .tile__frame img { transform: translate(var(--shift-x, 0), var(--shift-y, 0)) scale(calc(var(--zoom, 1) * 1.02)); }
.tile__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--step-small); line-height: 1.4; }
.tile__title { font-weight: 500; transition: color .2s; }
.tile__link:hover .tile__title { color: var(--accent); }
.tile__year { color: var(--muted); font-variant-numeric: tabular-nums; }

/* project and page entries */
/* wide screens: the title sits in a rail on the left edge, the work in the column on the right edge */
.entry { max-width: var(--column); margin: 0 auto; padding-top: clamp(16px, 4vh, 48px); }
.entry__head { margin-bottom: clamp(24px, 3vw, 40px); }
.entry__title { margin: 0; font-size: var(--step-head); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.entry__meta { margin: 10px 0 0; font-size: var(--step-small); color: var(--muted); }
@media (min-width: 1000px) {
  .entry { max-width: none; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, var(--column)); column-gap: 48px; }
  .entry > * { grid-column: 2; }
  .entry > .entry__head { grid-column: 1; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-height) + 24px); margin-bottom: 0; }
  .entry__title { margin-top: -.12em; } /* cap height level with the first line of the column */
}
.entry__body { display: flow-root; line-height: 1.7; }
.entry__body > br:first-child { display: none; } /* the page title already sets the space above the first block */
.entry__body .para { display: block; max-width: 70ch; text-wrap: pretty; }
.entry__body .bullets { margin: 0; padding: 0; list-style: none; }
.entry__body .bullet { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.entry__body .bullet::before { content: "\2022"; content: "\2022" / ""; display: inline-block; width: 1.1em; text-indent: 0; } /* the dot is drawn here, in a box as wide as the hang, so wrapped lines sit exactly under the first line's text; screen readers announce a list, not the word "bullet" */
.entry__body .subhead { display: block; margin: 0; font-size: inherit; line-height: inherit; font-weight: 600; } /* wrapped lines hang under the text, not the dot */
.entry__body a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry__body a:hover { color: var(--accent); }
.entry__body b, .entry__body strong { font-weight: 600; }
.entry__body iframe { display: block; max-width: 100%; border: 0; }
.entry__body iframe.social-frame { width: 540px; max-width: 100%; }
.entry__body iframe.video-frame, .entry__body .video-ph { width: 100%; height: auto; }
.entry__img { float: left; margin: 0 24px 24px 0; cursor: zoom-in; }

.credits { margin: clamp(40px, 5vw, 64px) 0 0; padding: 24px 28px; background: var(--surface); }
.credits__row { display: flex; gap: 24px; padding: 3px 0; }
.credits { font-size: var(--step-small); }
.credits dt { width: 110px; flex: none; color: var(--muted); }
.credits dd { margin: 0; }

.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.pager__link { display: block; max-width: 48%; text-decoration: none; }
.pager__link--next { margin-left: auto; text-align: right; }
.pager__dir { display: block; font-size: var(--step-small); color: var(--muted); }
.pager__name { display: block; margin-top: 4px; font-size: var(--step-lead); font-weight: 500; text-wrap: balance; transition: color .2s; }
.pager__link--prev .pager__dir::before { content: "\2190  "; }
.pager__link--next .pager__dir::after { content: "  \2192"; }
.pager__link:hover .pager__name { color: var(--accent); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(64px, 8vw, 120px); padding: 24px var(--gutter) 32px; }
.site-footer__legal { margin: 0; font-size: var(--step-small); color: var(--muted); }
.site-footer__contact { display: inline-block; margin: -12px 0; padding: 12px 0; font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; } /* padding gives a 44px target without adding height to the footer */
.site-footer__contact:hover { color: var(--accent); }

/* entrances: hidden start only when script runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
}

/* click-to-enlarge viewer (see /js/lightbox.js) */
.viewer { position: fixed; inset: 0; z-index: 9999999; background: #000; }
.viewer__img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; cursor: pointer; }
.viewer.is-fill .viewer__img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.viewer__bar { position: fixed; bottom: 50px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.viewer__btn { width: 44px; height: 44px; padding: 0; border: 0; background: rgba(255, 255, 255, .9); color: #000; cursor: pointer; }
.viewer__btn:hover { background: #fff; }
.viewer__btn svg { display: block; margin: auto; }

/* phones */
@media (max-width: 640px) {
  .site-header { gap: 12px; }
  :root { --header-height: 66px; }
  .site-logo { padding: 28px 0; }
  .site-logo img.site-logo__name { width: 169px; }
  .site-nav { gap: 18px; }
  .grid { gap: 24px 12px; }
  .tile__caption { flex-direction: column; gap: 0; margin-top: 8px; }
  .tile:first-child:nth-last-child(odd) .tile__caption { flex-direction: row; gap: 16px; }
  .entry__img { float: none; display: block; margin: 0 0 16px; }
  .credits { padding: 20px; }
  .credits__row { gap: 16px; }
  .credits dt { width: 84px; }
}
