@charset "UTF-8";

/* Swagat, in between: a journal with room to wander.
   Shared doorway geometry lives in doorway.css. */
:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-2: #ece4d4;
  --ink: #2a251d;
  --ink-soft: #4a4235;
  --muted: #6f6859;
  --line: #ddd3c0;
  --line-strong: #c9bb9f;
  --copper: #9c5a38;
  --olive: #5f6b4f;
  --gold: #b58a4e;
  --header-bg: rgb(243 238 228 / 88%);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: min(1180px, calc(100% - 96px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b1915;
  --paper-2: #252219;
  --ink: #ece4d4;
  --ink-soft: #cbc2b0;
  --muted: #a69d88;
  --line: #38332a;
  --line-strong: #514938;
  --copper: #d79a6d;
  --olive: #a5b28d;
  --gold: #d9ac6b;
  --header-bg: rgb(27 25 21 / 88%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
main, .site-footer { position: relative; z-index: 1; }
img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; border-radius: 2px; }
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.skip:focus { left: 16px; }

/* Atmosphere is optional; the photographs supply most of the colour. */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--copper);
}

/* Identical header height on the two sides of the doorway. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(18px)) {
  .site-header { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
.site-header__inner {
  width: var(--page);
  height: 75px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 420;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.wordmark em { font-weight: 350; }
.dot { color: var(--copper); }
.header-actions { display: flex; align-items: center; gap: 30px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-family: var(--sans); font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.site-header nav a:hover { color: var(--copper); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--copper); background: var(--paper-2); }
.theme-toggle svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

/* Shared voice, with an ordinary sentence close to every large heading. */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
}
h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.12;
  font-weight: 360;
  letter-spacing: -.025em;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--copper); border-color: var(--copper); }
.link-arrow span { flex-shrink: 0; }
.link-arrow--large { font-family: var(--body); font-size: clamp(21px, 2.5vw, 27px); }
.doorway__copy .eyebrow { margin-bottom: 20px; }
html[data-page="personal"] .doorway__copy h1 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.03;
  font-weight: 350;
  letter-spacing: -.04em;
}
html[data-page="personal"] .doorway__copy h2 { margin-bottom: 22px; font-size: clamp(34px, 4.3vw, 55px); }
html[data-page="personal"] .doorway__copy h1 em, html[data-page="personal"] .doorway__copy h2 em { color: var(--copper); font-weight: 330; }
.doorway__copy .doorway__intro { font-family: var(--body); font-size: 20px; line-height: 1.7; color: var(--ink-soft); }

.journal-section { width: var(--page); margin-inline: auto; padding-block: clamp(64px, 8vw, 110px); }
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 62px;
}
.section-intro h2 { margin-top: 15px; }
.section-intro > p { font-size: 19px; line-height: 1.65; color: var(--ink-soft); padding-bottom: 2px; }
.photographs { border-top: 1px solid var(--line); }

/* An album rhythm, rather than seven equally weighted cards. */
.photo-album { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 54px); }
.photo-slot { min-width: 0; perspective: 1000px; align-self: start; }
.photo-slot--city { grid-column: 1 / span 5; grid-row: 1; --rot: -.5deg; }
.photo-slot--street { grid-column: 7 / span 6; grid-row: 1; align-self: end; margin-bottom: 24px; --rot: .5deg; }
.photo-slot--leaves { grid-column: 1 / span 4; grid-row: 2; --rot: .4deg; }
.photo-slot--lamp { grid-column: 6 / span 3; grid-row: 2; margin-top: 100px; --rot: -.6deg; }
.photo-slot--cloud { grid-column: 10 / span 3; grid-row: 2; margin-top: 26px; --rot: .5deg; }
.photo-slot--dome { grid-column: 2 / span 5; grid-row: 3; margin-top: 8px; --rot: -.4deg; }
.photo-slot--window { grid-column: 8 / span 4; grid-row: 3; margin-top: 58px; --rot: .5deg; }
.plate {
  position: relative;
  padding: 11px 11px 0;
  background: #faf6ed;
  border: 1px solid #e3dac8;
  border-radius: 2px;
  box-shadow: 0 2px 3px rgb(58 43 24 / .04), 0 15px 30px rgb(58 43 24 / .10);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.plate figcaption {
  padding: 17px 5px 21px;
  font-family: var(--body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
html[data-theme="dark"] .plate {
  background: #302c23;
  border-color: #443d30;
  box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 15px 30px rgb(0 0 0 / .3);
}
.photo-credit { margin-top: 52px; font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Reading and music share a spread, not a résumé section. */
.reading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.reading h2 { margin-top: 14px; }
.book-list { list-style: none; margin-top: 36px; }
.book-list li { display: flex; flex-direction: column; gap: 7px; padding-block: 21px; border-top: 1px solid var(--line); }
.book-list li:last-child { border-bottom: 1px solid var(--line); }
.book-list__title { font-family: var(--display); font-size: clamp(22px, 2.2vw, 29px); font-weight: 350; line-height: 1.25; }
.book-list__author { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); }
.music-note {
  position: relative;
  background: var(--paper-2);
  padding: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.music-note .eyebrow { color: var(--olive); }
.music-note h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 37px); line-height: 1.15; font-weight: 350; letter-spacing: -.02em; margin-top: 24px; }
.music-note__intro { margin-top: 20px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }

/* A small listening detail, kept within the music passage. */
.audio-note { margin-top: 27px; padding-top: 19px; border-top: 1px solid var(--line-strong); }
.audio-note__entry { display: flex; align-items: center; gap: 17px; }
.audio-note__controls { flex-shrink: 0; }
.audio-note audio[hidden], .audio-note__controls[hidden], .audio-note__cue[hidden] { display: none; }
.audio-note__details { min-width: 0; }
.audio-note__caption { font-family: var(--display); font-size: 23px; line-height: 1.3; font-weight: 350; color: var(--ink); }
.audio-note__credit { margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.audio-note__cue { margin-top: 8px; font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--muted); }
.audio-note__toggle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
}
.audio-note__toggle:hover { color: var(--copper); border-color: var(--copper); }
.audio-note__toggle[aria-pressed="true"] { border-color: var(--olive); }
.audio-note__symbol { display: block; opacity: .8; transform-origin: center; }
.audio-note__toggle[data-playing="true"] .audio-note__symbol { animation: music-breathe 3s ease-in-out infinite; }
.audio-note__aside { margin-top: 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.audio-note__status { font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--muted); }
@keyframes music-breathe {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}

.people {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 92px);
  border-top: 1px solid var(--line);
}
.people__heading h2 { margin-top: 17px; max-width: 17ch; }
.people__copy { padding-top: 31px; }
.people__copy p { font-size: 19px; line-height: 1.8; color: var(--ink-soft); }
.people__copy p + p { margin-top: 22px; }

.hello { text-align: center; padding-block: clamp(72px, 8vw, 116px); border-top: 1px solid var(--line); }
.hello h2 { margin-block: 19px 23px; font-size: clamp(35px, 4.5vw, 57px); }
.hello > p:not(.eyebrow) { font-size: 20px; line-height: 1.7; color: var(--ink-soft); }
.hello .link-arrow { margin-top: 25px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  width: var(--page);
  min-height: 100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer__name { font-family: var(--display); font-size: 21px; font-weight: 350; }
.site-footer__note, .site-footer a { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; }
.site-footer a:hover { color: var(--copper); }
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.will-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  :root { --page: calc(100% - 64px); }
  .section-intro { gap: 24px; }
  .photo-slot--lamp { margin-top: 62px; }
  .reading { gap: 38px; }
  .people { gap: 42px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 44px); }
  .site-header { height: 96px; }
  .site-header__inner {
    height: 95px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: 49px 46px;
    gap: 0 12px;
  }
  .wordmark { grid-column: 1; grid-row: 1; font-size: 22px; }
  .header-actions { display: contents; }
  .theme-toggle { grid-column: 2; grid-row: 1; width: 40px; height: 40px; justify-self: end; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 27px; font-size: 14px; }
  .section-intro { display: block; margin-bottom: 38px; }
  .section-intro > p { margin-top: 21px; }
  .section-intro > p br { display: none; }
  .photo-album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 25px; }
  .photo-slot { grid-column: auto; grid-row: auto; margin: 0; }
  .photo-slot--street { align-self: center; }
  .photo-slot--lamp { margin-top: 58px; }
  .photo-slot--dome { margin-top: 44px; }
  .photo-slot--window { grid-column: 1 / -1; width: 58%; justify-self: center; margin-top: 4px; }
  .plate { padding: 8px 8px 0; }
  .plate figcaption { padding: 13px 3px 16px; font-size: 15px; }
  .reading { grid-template-columns: 1fr; gap: 46px; }
  .music-note { max-width: 480px; }
  .people { grid-template-columns: 1fr; gap: 22px; }
  .people__heading h2 { max-width: 22ch; }
  .people__copy { padding-top: 0; }
  .site-footer__note { display: none; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 40px); }
  html { scroll-padding-top: 118px; }
  .doorway__copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
  html[data-page="personal"] .doorway__copy h1 { font-size: clamp(45px, 12vw, 57px); margin-bottom: 20px; }
  html[data-page="personal"] .doorway__copy h2 { font-size: clamp(36px, 10vw, 45px); margin-bottom: 18px; }
  .doorway__copy .doorway__intro { font-size: 18px; line-height: 1.65; }
  .journal-section { padding-block: 58px; }
  .section-intro h2 { font-size: 36px; }
  .section-intro > p { font-size: 18px; }
  .photo-album { display: flex; flex-direction: column; gap: 36px; }
  .photo-slot { width: 100%; max-width: 420px; margin: 0; align-self: center; }
  .photo-slot--leaves, .photo-slot--cloud, .photo-slot--window { width: 86%; }
  .plate { padding: 10px 10px 0; }
  .plate figcaption { padding: 16px 5px 20px; font-size: 16px; }
  .photo-credit { margin-top: 38px; font-size: 11px; }
  .reading h2 { font-size: 36px; }
  .book-list { margin-top: 28px; }
  .book-list li { padding-block: 20px; }
  .book-list__title { font-size: 25px; }
  .people__heading h2 { font-size: 35px; }
  .people__copy p { font-size: 18px; }
  .hello h2 { font-size: 36px; }
  .hello > p:not(.eyebrow) { font-size: 18px; }
  .desktop-break { display: none; }
  .site-footer__inner { min-height: 120px; flex-wrap: wrap; gap: 6px 20px; padding-block: 20px; }
  .site-footer__name { width: 100%; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
  .plate { transform: none !important; }
  .link-arrow, .theme-toggle { transition: none; }
  .audio-note__toggle[data-playing="true"] .audio-note__symbol { animation: none; transform: none; opacity: 1; }
}
