/* Field Notes: a personal journal section.
   Colours come from the site theme (dark charcoal / cream / gold by default), so the
   light/dark toggle keeps working. Fonts: Newsreader (editorial serif) + Caveat (hand). */

.fn {
  --ink: var(--global-text-color);
  --muted: var(--global-text-color-light);
  --gold: var(--global-theme-color);
  --paper: var(--global-bg-color);
  --rule: var(--global-divider-color);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}
/* the theme's page title is replaced by the journal header below */
.post > .post-header {
  display: none;
}
.fn a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.fn a:hover {
  color: var(--gold);
}
.fn h1,
.fn h2,
.fn h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fn-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.fn-hand {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--gold);
}

/* ---------- A. opening ---------- */
.fn-head {
  padding: 1.5rem 0 2.2rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: end;
}
.fn-head h1 {
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin: 0.6rem 0 0.9rem;
  font-weight: 400;
}
.fn-head h1 em {
  font-style: normal;
  color: var(--gold);
}
.fn-head .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
}
.fn-head p {
  margin: 0;
  max-width: 32em;
  color: var(--muted);
}
.fn-contents {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fn-contents li {
  border-top: 1px solid var(--rule);
}
.fn-contents a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  padding: 0.55rem 0;
  text-decoration: none;
}
.fn-contents a b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
}
.fn-contents a span {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--muted);
}
.fn-contents a i {
  font-style: normal;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.9rem;
  padding-top: 0.2rem;
}
.fn-contents a:hover b {
  color: var(--gold);
}

/* ---------- section scaffolding ---------- */
.fn-sec {
  padding: 3.2rem 0 1rem;
  scroll-margin-top: 70px;
}
.fn-sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.fn-sec-head .no {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1rem;
}
.fn-sec-head h2 {
  font-size: 2rem;
  margin: 0;
  font-style: italic;
  font-weight: 400;
}
.fn-sec-head .fn-hand {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--muted);
}

/* ---------- photo placeholders: taped prints ---------- */
.fn-print {
  position: relative;
  margin: 0;
}
.fn-print img,
.fn-print .ph {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  background: rgba(127, 110, 85, 0.12);
}
.fn-print .ph {
  border: 1px dashed var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}
.fn-print .ph svg {
  width: 34px;
  height: 34px;
  opacity: 0.6;
  margin: 0 auto 0.3rem;
  display: block;
}
.fn-print .ph .fn-hand {
  color: var(--muted);
  font-size: 1.25rem;
}
.fn-print.taped::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(226, 168, 74, 0.28);
  border-left: 1px dashed rgba(226, 168, 74, 0.45);
  border-right: 1px dashed rgba(226, 168, 74, 0.45);
}
.fn-print figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.45rem;
  line-height: 1.45;
}
.fn-print figcaption b {
  color: var(--ink);
  font-weight: 600;
}
.fn-print img {
  transition: transform 0.6s ease;
}
.fn-print:hover img {
  transform: scale(1.015);
}

/* ---------- B. on the trail ---------- */
.fn-trail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 2rem;
}
.fn-trail .side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.fn-trail h3 {
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 0.4rem 0 0.2rem;
  font-weight: 400;
}
.fn-trail .where {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.fn-facts {
  margin: 0 0 1.2rem;
  border-top: 1px solid var(--rule);
}
.fn-facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0;
  font-size: 0.92rem;
}
.fn-facts dt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}
.fn-facts dd {
  margin: 0;
}

/* ---------- C. through my lens (masonry) ---------- */
.fn-lens {
  columns: 3 220px;
  column-gap: 1.4rem;
}
.fn-lens .fn-print {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 12px 0 1.6rem;
}
.fn-lens .fn-print:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}
.fn-lens .fn-print:nth-child(3n) {
  transform: rotate(-0.5deg);
}

/* ---------- D. midnight thoughts ---------- */
.fn-thoughts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.fn-thoughts li {
  border-bottom: 1px solid var(--rule);
}
.fn-thoughts a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.4rem 0;
  text-decoration: none;
  align-items: baseline;
}
.fn-thoughts .d {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.fn-thoughts h3 {
  font-size: 1.65rem;
  margin: 0 0 0.3rem;
  font-weight: 400;
  line-height: 1.15;
}
.fn-thoughts p {
  margin: 0;
  color: var(--muted);
}
.fn-thoughts .tags {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.fn-thoughts .tags span + span::before {
  content: " · ";
  color: var(--gold);
}
.fn-thoughts .go {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--gold);
  white-space: nowrap;
}
.fn-thoughts a:hover h3 {
  color: var(--gold);
}

/* ---------- E. down the rabbit hole ---------- */
.fn-burrow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 1.2rem;
  padding-top: 1.2rem;
}
.fn-burrow::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 1.65rem;
  border-top: 2px dashed var(--muted);
  opacity: 0.55;
}
.fn-burrow .stop {
  position: relative;
  padding-top: 1.5rem;
}
.fn-burrow .stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.fn-burrow .stop:last-child::before {
  background: var(--gold);
}
.fn-burrow b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  display: block;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.fn-burrow p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.fn-burrow a {
  font-size: 0.82rem;
}
.fn-burrow-foot {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- F. things worth remembering ---------- */
.fn-keep {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
}
.fn-keep blockquote {
  margin: 0 0 1.6rem;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--gold);
}
.fn-keep blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.fn-keep blockquote cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}
.fn-keep h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 0.6rem;
}
.fn-keep ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}
.fn-keep li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.fn-keep li i {
  color: var(--muted);
  font-style: normal;
}
.fn-keep .q li {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
  border: 0;
}

/* ---------- entry pages ---------- */
.fn-entry {
  max-width: 44rem;
  margin: 0 auto;
}
.fn-entry-head {
  padding: 1.5rem 0 1.8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.2rem;
}
.fn-entry-head .back {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}
.fn-entry-head h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  margin: 1.1rem 0 0.8rem;
  font-weight: 400;
}
.fn-entry-head .stand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--muted);
  margin: 0;
}
.fn-entry .part {
  margin: 2.6rem 0;
}
.fn-entry .part-label {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.fn-entry .part-label .no {
  font-family: var(--serif);
  color: var(--gold);
}
.fn-entry .part-label h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 500;
}
.fn-entry .src {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05rem 0.45rem;
  white-space: nowrap;
}
.fn-entry p {
  margin: 0 0 1.05rem;
}
.fn-entry .big-q {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.35;
  margin: 0.4rem 0 1.2rem;
  padding: 0;
}
.fn-entry .margin {
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--gold);
  transform: none;
  margin: -0.2rem 0 1.2rem;
}
.fn-entry blockquote.lit {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--gold);
}
.fn-entry blockquote.lit p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 0 0 0.35rem;
}
.fn-entry blockquote.lit cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}
.fn-entry .dialogue p {
  margin: 0 0 0.2rem;
}
.fn-entry .dialogue .who {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}
.fn-chain {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 0.4rem 0 1.4rem;
}
.fn-chain span {
  white-space: nowrap;
}
.fn-chain i {
  font-style: normal;
  color: var(--gold);
  padding: 0 0.35rem;
}
.fn-papers {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.fn-papers li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}
.fn-papers li .why {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.fn-papers li .step {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}
.fn-entry .signoff {
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 2rem;
}
.fn-entry-foot {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* gentle fade-in as sections scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .fn-sec {
    animation: fn-in 0.8s ease both;
  }
  @keyframes fn-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

@media (max-width: 760px) {
  .fn-head,
  .fn-trail,
  .fn-keep {
    grid-template-columns: 1fr;
  }
  .fn-head {
    gap: 1.5rem;
  }
  .fn-thoughts a {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .fn-burrow {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 1.6rem;
  }
  .fn-burrow::before {
    left: 5px;
    right: auto;
    top: 0.4rem;
    bottom: 0.4rem;
    border-top: 0;
    border-left: 2px dashed var(--muted);
  }
  .fn-burrow .stop {
    padding-top: 0;
  }
  .fn-burrow .stop::before {
    left: -1.6rem;
    top: 0.3rem;
  }
  .fn-papers li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .fn-sec-head .fn-hand {
    display: none;
  }
  .fn-lens {
    columns: 2;
    column-gap: 0.8rem;
  }
  .fn-lens .fn-print .ph svg {
    width: 26px;
    height: 26px;
  }
}

/* ---------- header additions ---------- */
.fn-head .lead2 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 0 0 0.9rem;
}
.fn-head .fn-thread {
  margin-top: 1rem;
  transform: none;
  font-size: 1.3rem;
}
.fn .status {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  margin-right: 0.5rem;
}
.fn-thoughts .tags .status + span::before {
  content: "";
}

/* ---------- the bigger questions: a night-sky band ---------- */
body {
  overflow-x: hidden;
}
.fn-cosmos {
  --ink: #ece6d6;
  --muted: #9ba5bb;
  --rule: rgba(236, 230, 214, 0.14);
  --gold: #e2b45f;
  --paper: #0f1626;
  position: relative;
  width: 100vw;
  margin: 3.5rem 0 1rem calc(50% - 50vw);
  padding: 4.2rem 0 3.6rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 78% 0%, rgba(70, 92, 150, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(120, 90, 60, 0.18), transparent 50%),
    #0f1626;
  overflow: hidden;
  isolation: isolate;
}
.fn-cosmos::before,
.fn-cosmos::after {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 60px 150px, rgba(255, 240, 210, 0.9), transparent),
    radial-gradient(1px 1px at 180px 190px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 280px 120px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 300px 220px;
  opacity: 0.75;
  animation: fn-drift 140s linear infinite;
}
.fn-cosmos::after {
  background-size: 470px 380px;
  opacity: 0.45;
  animation-duration: 220s;
}
@keyframes fn-drift {
  to {
    transform: translate(-300px, 60px);
  }
}
.fn-cosmos-inner {
  position: relative;
  width: min(900px, 100% - 30px);
  margin: 0 auto;
}
.fn-cosmos .orbits {
  position: absolute;
  right: -170px;
  top: -110px;
  width: 520px;
  height: 520px;
  z-index: -1;
  opacity: 0.4;
  animation: fn-spin 240s linear infinite;
}
.fn-cosmos .orbits circle {
  stroke: rgba(226, 180, 95, 0.55);
  stroke-width: 1;
}
.fn-cosmos .orbits .planet {
  fill: #e2b45f;
  stroke: none;
}
.fn-cosmos .orbits .p2 {
  fill: #c9d3ef;
}
@keyframes fn-spin {
  to {
    transform: rotate(360deg);
  }
}
.fn-cosmos .fn-sec-head h2 {
  font-size: 2.3rem;
}
.fn-cosmos .principle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 30em;
}
.fn-cosmos .principle span {
  display: block;
}
.fn-cosmos .principle span:last-child {
  color: var(--gold);
}
.fn-cosmos .fn-thoughts .d {
  line-height: 1.5;
}
.fn-cosmos .carrying {
  margin: 2.6rem 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.fn-cosmos .threads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.6rem;
}
.fn-cosmos .thread b {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.fn-cosmos .thread b i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.95rem;
}
.fn-cosmos .thread ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
}
.fn-cosmos .thread li {
  position: relative;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c9cfdc;
  padding: 0.28rem 0;
}
.fn-cosmos .thread li::before {
  content: "✦";
  position: absolute;
  left: -1.2rem;
  top: 0.32rem;
  font-size: 0.6rem;
  color: var(--gold);
  opacity: 0.8;
}

/* entry pages in the bigger-questions series */
.fn-entry-cosmos .fn-entry-head {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3rem calc(50vw - min(22rem, 50vw - 15px)) 2.6rem;
  border: 0;
  color: #ece6d6;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(70, 92, 150, 0.4), transparent 60%),
    #0f1626;
  overflow: hidden;
  isolation: isolate;
}
.fn-entry-cosmos .fn-entry-head::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 60px 150px, rgba(255, 240, 210, 0.9), transparent),
    radial-gradient(1px 1px at 230px 40px, rgba(255, 255, 255, 0.8), transparent);
  background-size: 300px 220px;
  opacity: 0.7;
  animation: fn-drift 160s linear infinite;
}
.fn-entry-cosmos .fn-entry-head h1 {
  color: #f1ead8;
}
.fn-entry-cosmos .fn-entry-head .back,
.fn-entry-cosmos .fn-entry-head .fn-kicker,
.fn-entry-cosmos .fn-entry-head .stand {
  color: #aeb6c9;
}
.fn-status {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.fn-entry-cosmos .fn-status {
  color: #aeb6c9;
}
.fn-entry ul.wonder {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.4rem;
  border-top: 1px solid var(--rule);
}
.fn-entry ul.wonder li {
  font-family: var(--serif);
  font-size: 1.2rem;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.fn-entry ul.wonder li::before {
  content: "✦";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  font-size: 0.7rem;
  color: var(--gold);
}

@media (max-width: 760px) {
  .fn-cosmos .threads {
    grid-template-columns: 1fr;
  }
  .fn-cosmos .orbits {
    width: 340px;
    height: 340px;
    right: -150px;
    top: -60px;
  }
  .fn-entry-cosmos .fn-entry-head {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fn-cosmos::before,
  .fn-cosmos::after,
  .fn-cosmos .orbits,
  .fn-entry-cosmos .fn-entry-head::before {
    animation: none;
  }
}

/* =====================================================================
   DARKROOM THEME
   Field Notes has its own identity, separate from the rest of the site:
   a photographer's darkroom. True black, film grain, a red safelight
   glow, contact-sheet frames with sprocket holes and amber edge
   numbers, and typewriter-style metadata. Applies whatever the site's
   light/dark toggle says.
   ===================================================================== */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --global-bg-color: #0a0a0a;
  --global-text-color: #ece5d8;
  --global-text-color-light: #8d867b;
  --global-theme-color: #ff6a4d;
  --global-divider-color: rgba(236, 229, 216, 0.12);
  --global-footer-bg-color: #0a0a0a;
  --global-footer-text-color: #6f6a62;
  --global-footer-link-color: #ece5d8;
}
html,
body {
  background: #0a0a0a !important;
  color: #ece5d8;
}
/* red safelight glow from the top corner */
body {
  background-image:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(255, 70, 40, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 120, 40, 0.05), transparent 70%) !important;
  background-attachment: fixed !important;
}
/* film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#navbar,
.navbar,
footer,
footer.fixed-bottom {
  background-color: rgba(10, 10, 10, 0.92) !important;
  border-color: rgba(236, 229, 216, 0.08) !important;
}
#navbar .nav-link,
#navbar .navbar-brand {
  color: #b9b2a6 !important;
}
#navbar .nav-item.active .nav-link,
#navbar .nav-link:hover {
  color: #ff6a4d !important;
}
footer,
footer a {
  color: #6f6a62 !important;
}

.fn {
  --ink: #ece5d8;
  --muted: #8d867b;
  --gold: #ff6a4d; /* safelight */
  --amber: #f2a43a; /* film edge print */
  --paper: #0a0a0a;
  --rule: rgba(236, 229, 216, 0.11);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.fn ::selection {
  background: #ff6a4d;
  color: #0a0a0a;
}

/* metadata in a typewriter voice */
.fn-kicker,
.fn-thoughts .d,
.fn-facts dt,
.fn .src,
.fn .status,
.fn-papers li .step,
.fn-keep h4,
.fn-cosmos .carrying,
.fn-print figcaption {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.fn-kicker,
.fn-keep h4,
.fn-cosmos .carrying,
.fn-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.fn-thoughts .d {
  letter-spacing: 0.08em;
  color: var(--amber);
}

/* the masthead: bigger, with a safelight dot that breathes */
.fn-head h1 {
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  letter-spacing: -0.03em;
}
.fn-head h1 {
  white-space: nowrap;
}
.fn-head h1 em {
  color: var(--gold);
  animation: fn-safelight 4s ease-in-out infinite;
}
@keyframes fn-safelight {
  50% {
    opacity: 0.45;
    text-shadow: 0 0 18px rgba(255, 106, 77, 0.6);
  }
}
.fn-head .lead {
  color: var(--ink);
}
.fn-contents a i {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 0.78rem;
}
.fn-sec-head .no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  border: 1px solid rgba(242, 164, 58, 0.5);
  padding: 0 0.4rem;
  border-radius: 2px;
}
.fn-sec-head h2 {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* photo placeholders: unexposed paper */
.fn-print .ph {
  background: #121212;
  border: 1px dashed rgba(236, 229, 216, 0.22);
}
.fn-print.taped::before {
  background: rgba(255, 106, 77, 0.22);
  border-color: rgba(255, 106, 77, 0.35);
}

/* contact sheet: each photo sits on a strip of film */
.fn-lens .fn-print.film {
  background: #151413;
  padding: 18px 12px 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(236, 229, 216, 0.05);
}
.fn-lens .fn-print.film::before,
.fn-lens .fn-print.film::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #050505 0 8px, transparent 8px 15px);
  border-radius: 1px;
}
.fn-lens .fn-print.film::before {
  top: 6px;
}
.fn-lens .fn-print.film::after {
  display: none;
}
.fn-lens .fn-print.film .frame-no {
  position: absolute;
  top: 2px;
  right: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: #151413;
  padding: 0 4px;
  line-height: 14px;
}
.fn-lens .fn-print.film img {
  filter: saturate(0.92) contrast(1.03);
}
.fn-lens .fn-print.film:hover img {
  filter: none;
}
.fn-lens .fn-print figcaption {
  font-size: 0.72rem;
  padding-top: 0.6rem;
}
.fn-lens .fn-print figcaption b {
  color: var(--amber);
  font-weight: 500;
}

/* thoughts list: a ruled index card on black */
.fn-thoughts a:hover {
  background: linear-gradient(90deg, rgba(255, 106, 77, 0.06), transparent 70%);
}
.fn-thoughts .go,
.fn-hand,
.fn-entry .margin,
.fn-entry .signoff {
  color: var(--gold);
}

/* rabbit hole: red string on a pin board */
.fn-burrow::before {
  border-top: 1.5px solid rgba(255, 106, 77, 0.55);
  opacity: 1;
}
.fn-burrow .stop::before {
  background: #0a0a0a;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 106, 77, 0.45);
}
.fn-burrow .stop:last-child::before {
  background: var(--gold);
}

/* the night-sky band sits on black instead of navy */
.fn-cosmos {
  --gold: #f2a43a;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(60, 80, 140, 0.28), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(255, 90, 50, 0.08), transparent 50%),
    #05070c;
  border-top: 1px solid rgba(236, 229, 216, 0.06);
  border-bottom: 1px solid rgba(236, 229, 216, 0.06);
}
.fn-entry-cosmos .fn-entry-head {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(60, 80, 140, 0.32), transparent 60%),
    #05070c;
}

/* quotes and status chips */
.fn .status {
  border-color: var(--gold);
  color: var(--gold);
}
.fn-keep blockquote,
.fn-entry blockquote.lit {
  border-left-color: var(--gold);
}
.fn a {
  text-decoration-color: rgba(255, 106, 77, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .fn-head h1 em {
    animation: none;
  }
}

/* Kedarkantha: cover + a contact-sheet roll underneath */
.fn-trail .fn-print figcaption {
  font-family: var(--hand);
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--muted);
}
.fn-roll-label {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.fn-roll {
  columns: 4 180px;
}
.fn-roll .fn-print figcaption {
  font-size: 0.7rem;
}
.fn-trail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 760px) {
  .fn-trail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .fn-roll {
    columns: 2;
    column-gap: 0.8rem;
  }
}

/* questions I'm carrying: tabs, closed until tapped */
.fn-cosmos .carrying .fn-hand {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1rem;
  margin-left: 0.6rem;
}
.q-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.q-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.q-tab i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
}
.q-tab:hover {
  border-color: var(--gold);
}
.q-tab[aria-selected="true"] {
  background: rgba(242, 164, 58, 0.12);
  border-color: var(--gold);
}
.q-panel {
  margin-top: 1.1rem;
  animation: fn-in 0.4s ease both;
}
.q-panel ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
}
.q-panel li {
  position: relative;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: #d9dbe4;
  padding: 0.35rem 0;
}
.q-panel li::before {
  content: "✦";
  position: absolute;
  left: -1.3rem;
  top: 0.55rem;
  font-size: 0.65rem;
  color: var(--gold);
}

/* hairy coo sign-off */
.fn-coo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 3rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--rule);
  max-width: 40rem;
}
.fn-coo img {
  width: 44px;
  height: 44px;
  flex: none;
  transition: transform 0.3s;
}
.fn-coo:hover img {
  transform: rotate(-8deg) scale(1.08);
}
.fn-coo p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.fn-coo b {
  color: var(--ink);
  font-weight: 500;
}

/* through my lens: a sideways-scrolling contact sheet, two rows at a time */
.lens-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.6rem 0 0.8rem;
}
.lens-nav .fn-hand {
  margin-right: auto;
  font-size: 1.15rem;
  color: var(--muted);
}
.lens-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.lens-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.fn-lens.lens-strip {
  columns: auto;
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.9rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 164, 58, 0.5) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.lens-strip .fn-print.film {
  width: min-content;
  margin: 0;
  transform: none !important;
  scroll-snap-align: start;
}
.lens-strip .fn-print.film img {
  height: 300px;
  width: auto;
  max-width: none;
}
.lens-strip .fn-print figcaption {
  min-width: 170px;
}
@media (max-width: 760px) {
  .fn-lens.lens-strip {
    columns: auto;
  }
  .lens-strip .fn-print.film img {
    height: 210px;
  }
  .lens-strip .fn-print figcaption {
    min-width: 130px;
  }
}
/* uniform frames so the two rows line up */
.fn-lens.lens-strip {
  grid-auto-columns: 210px;
}
.lens-strip .fn-print.film {
  width: 210px;
}
.lens-strip .fn-print.film img {
  width: 100%;
  height: 250px;
  aspect-ratio: auto;
  object-fit: cover;
}
.lens-strip .fn-print figcaption {
  min-width: 0;
}
@media (max-width: 760px) {
  .fn-lens.lens-strip {
    grid-auto-columns: 160px;
  }
  .lens-strip .fn-print.film {
    width: 160px;
  }
  .lens-strip .fn-print.film img {
    height: 190px;
  }
}

/* ---------- photo backgrounds for the text-heavy sections ---------- */
.fn-night {
  position: relative;
  width: 100vw;
  margin: 3rem 0 0 calc(50% - 50vw);
  padding: 5rem 0 4rem;
  background:
    linear-gradient(180deg, #0a0a0a 0%, rgba(5, 8, 16, 0.55) 18%, rgba(5, 8, 16, 0.6) 80%, #0a0a0a 100%),
    var(--bg) center 30% / cover no-repeat;
}
.fn-night-inner {
  width: min(900px, 100% - 30px);
  margin: 0 auto;
}
.fn-night .fn-thoughts,
.fn-night .fn-thoughts li {
  border-color: rgba(236, 229, 216, 0.18);
}
.fn-night .fn-thoughts p {
  color: #c3bcb0;
}
.fn-canyon {
  background:
    linear-gradient(180deg, #0a0a0a 0%, rgba(8, 6, 10, 0.62) 16%, rgba(8, 6, 10, 0.72) 70%, #0a0a0a 100%),
    var(--bg) center 60% / cover no-repeat !important;
}
.fn-canyon::before,
.fn-canyon::after {
  opacity: 0.25;
}
.fn-canyon .principle {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.fn-entry-cosmos .fn-entry-head {
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.5), rgba(8, 6, 10, 0.85)),
    var(--canyon) center 60% / cover no-repeat;
}
.fn-entry-night .fn-entry-head {
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.35), rgba(5, 8, 16, 0.85)),
    var(--stars) center 30% / cover no-repeat;
}

/* ---------- interludes: a slow, endless roll of photos between sections ---------- */
.fn-interlude {
  width: 100vw;
  margin: 2.5rem 0 1rem calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fn-interlude .track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: fn-roll 140s linear infinite;
}
.fn-interlude:hover .track {
  animation-play-state: paused;
}
.fn-interlude figure {
  margin: 0;
  flex: none;
  background: #151413;
  padding: 8px 8px 8px;
  border-radius: 2px;
}
.fn-interlude img {
  display: block;
  height: 220px;
  width: auto;
  filter: saturate(0.9);
  transition: filter 0.3s;
}
.fn-interlude figure:hover img {
  filter: none;
}
.fn-interlude .label {
  width: min(900px, 100% - 30px);
  margin: 0.7rem auto 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
@keyframes fn-roll {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 760px) {
  .fn-interlude img {
    height: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fn-interlude {
    overflow-x: auto;
  }
  .fn-interlude .track {
    animation: none;
  }
}

/* through my lens: endless roll, story under each frame */
.lens-roll {
  margin-top: 0.5rem;
}
.lens-roll .track {
  align-items: flex-start;
  gap: 14px;
  animation-duration: 220s;
}
.lens-roll .fn-print.film {
  position: relative;
  display: grid;
  grid-template-columns: min-content;
  background: #151413;
  padding: 18px 10px 12px;
  border-radius: 2px;
}
.lens-roll .fn-print.film::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #050505 0 8px, transparent 8px 15px);
}
.lens-roll .fn-print.film img {
  height: 280px;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
}
.lens-roll figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 0.6rem;
  min-width: 150px;
}
.lens-roll figcaption b {
  color: var(--amber);
  font-weight: 500;
}
@media (max-width: 760px) {
  .lens-roll .fn-print.film img {
    height: 200px;
  }
}
.fn-night {
  background-position: center, center 14%;
}
.fn-entry-night .fn-entry-head {
  background-position: center, center 14%;
}
