@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f5f1;
  --ink: #292d28;
  --muted: #62675e;
  --line: #dcded5;
  --accent: #355742;
  --hover: #edeee7;
  --radius: 3px;
  color-scheme: light;
  font-family: "Space Grotesk", sans-serif;
  font-synthesis: none;
  scrollbar-color: var(--muted) var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171a1d;
    --ink: #e5ebed;
    --muted: #a7acae;
    --line: #34373a;
    --accent: #c6ccce;
    --hover: #222629;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #171a1d;
  --ink: #e5ebed;
  --muted: #a7acae;
  --line: #34373a;
  --accent: #c6ccce;
  --hover: #222629;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
img { display: block; width: 100%; height: auto; }
.page-width { width: min(100% - 80px, 1000px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 24px; top: 16px; z-index: 2; padding: 12px 18px; color: var(--paper); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* The native photo dialog appears above the sticky header. */
.site-header { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.home-link, .footer-home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 500; }
.home-link { margin-right: auto; min-height: 44px; }
.brand-mark { display: block; flex: none; width: 37px; height: 32px; background: currentColor; -webkit-mask: url("/brand/julian-strauser-mark.png") center / contain no-repeat; mask: url("/brand/julian-strauser-mark.png") center / contain no-repeat; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); text-decoration: underline; }
.theme-toggle { min-height: 44px; padding: 0 0 0 25px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.theme-toggle:hover { color: var(--ink); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 168px; align-items: center; gap: 64px; padding-block: 72px 64px; }
.intro h1 { font-size: clamp(38px, 4.5vw, 56px); letter-spacing: -.04em; line-height: 1.12; }
.intro-description { max-width: 570px; margin-top: 25px; font-size: 19px; line-height: 1.7; }
.intro-description a { color: var(--accent); }
.intro-note { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.intro-verse { max-width: 570px; margin-top: 30px; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); }
.intro-verse blockquote { margin: 0; }
.intro-verse p { font-size: 17px; line-height: 1.7; letter-spacing: -.005em; text-wrap: pretty; }
.intro-verse p::before { content: "“"; }
.intro-verse p::after { content: "”"; }
.intro-verse figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.intro-verse cite { font-style: normal; }
.intro-portrait img { border-radius: var(--radius); }

.section-heading h2 { font-size: 25px; letter-spacing: -.025em; line-height: 1.25; }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; padding: 0; margin: 30px 0 0; }
.interest-list li { border-top: 1px solid var(--line); }
.interest-list a { display: block; padding-block: 22px 25px; text-decoration: none; }
.interest-title { display: flex; align-items: center; gap: 12px; min-height: 27px; }
.interest-title h3 { font-size: 19px; letter-spacing: -.02em; }
.company-mark { width: 12px; height: auto; }
.interest-list p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.interest-destination { display: inline-block; max-width: 100%; margin-top: 10px; color: var(--accent); font-size: 12px; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.interest-list a:hover .interest-destination { text-decoration-color: currentColor; }
.interest-list a:hover h3 { color: var(--accent); }

.photography { padding-block: 64px 80px; }
.photo-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 36px 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.photo-list li { grid-column: span 2; min-width: 0; }
.photo-list li:nth-child(7), .photo-list li:nth-child(8) { grid-column: span 3; }
.photo-list img { border-radius: var(--radius); }
.photo-list figcaption { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px 34px; }
.footer-home { font-size: 12px; gap: 10px; }
.footer-home .brand-mark { width: 29px; height: 25px; }
.footer-email { justify-self: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.back-to-top { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, button { transition: color .16s ease; }
}

@media (max-width: 820px) {
  .intro { gap: 36px; }
  .interest-list { column-gap: 32px; }
  .photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-list li, .photo-list li:nth-child(7), .photo-list li:nth-child(8) { grid-column: auto; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 94px; }
  .page-width { width: calc(100% - 40px); }
  .header-inner { gap: 18px; min-height: 72px; }
  .home-link { gap: 0; }
  .home-link > span:last-child { display: none; }
  .brand-mark { width: 38px; height: 33px; }
  .site-header nav { gap: 22px; }
  .theme-toggle { padding-left: 0; }
  .intro { grid-template-columns: minmax(0, 1fr) 96px; gap: 24px 20px; align-items: start; padding-block: 40px 48px; }
  .intro-copy { display: contents; }
  .intro h1 { grid-column: 1; align-self: center; font-size: clamp(34px, 8vw, 42px); }
  .intro-portrait { grid-column: 2; grid-row: 1; }
  .intro-description { grid-column: 1 / -1; margin: 0; font-size: 17px; }
  .intro-note { grid-column: 1 / -1; margin: -10px 0 0; font-size: 14px; }
  .intro-verse { grid-column: 1 / -1; margin: 0; padding-left: 16px; }
  .intro-verse p { font-size: 15.5px; }
  .intro-verse figcaption { font-size: 12px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 13px; }
  .interest-list { grid-template-columns: 1fr; margin-top: 24px; }
  .interest-list a { padding-block: 20px 23px; }
  .interest-title h3 { font-size: 18px; }
  .photography { padding-block: 48px 56px; }
  .photo-list { grid-template-columns: 1fr; gap: 30px; margin-top: 24px; }
  .photo-list figcaption { margin-top: 9px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 4px 20px; padding-block: 18px 24px; }
  .footer-email { grid-column: 1 / -1; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
  .footer-home { font-size: 11px; }
}

/* Full-size photos use the existing originals; the watermark stays on the image. */
.photo-link { display: block; border-radius: var(--radius); cursor: zoom-in; }
html:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 72px 20px 32px;
  border: 0;
  background: #111315;
  color: #e5ebed;
}
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: #111315; }
.photo-viewer-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #e5ebed;
  cursor: pointer;
}
.photo-viewer-close:hover { background: #292d30; }
.photo-viewer :focus-visible { outline-color: #e5ebed; }
.photo-viewer-figure { position: relative; max-width: 100%; }
.photo-viewer-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 104px);
  max-height: calc(100dvh - 104px);
  object-fit: contain;
}
.photo-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgb(17 19 21 / 65%);
  color: #e5ebed;
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1.4;
  pointer-events: none;
}
.photo-viewer-status { max-width: 36ch; font-size: 14px; line-height: 1.6; text-align: center; }
