@font-face {
  font-family: 'Proza Libre';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/proza-libre-latin-400-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: 'Proza Libre';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/proza-libre-latin-ext-400-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: 'Proza Libre';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/proza-libre-latin-400-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;
}

@font-face {
  font-family: 'Proza Libre';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/proza-libre-latin-ext-400-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: 'Proza Libre';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/proza-libre-latin-700-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: 'Proza Libre';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/proza-libre-latin-ext-700-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;
}

:root {

  color-scheme: only light;

  --washi: #e3dbca;
  --ink: #222222;
  --rust: #9a2104;
  --rust-hover: #a5361f;
  --olive: #545c2f;
  --hairline: rgba(28, 26, 23, 0.12);
  --hairline-strong: rgba(28, 26, 23, 0.2);

  --accent-soft: rgba(154, 33, 4, 0.12);

  --lift-card: 0 14px 28px -18px rgba(28, 26, 23, 0.4);
  --lift-panel: 0 6px 24px rgba(28, 26, 23, 0.18);

  --hill-1: #222222;
  --hill-2: #62605a;
  --hill-3: #8c887e;

  --home-social: #e2dbcb;

  --orb: var(--rust);
  --orb-hover: var(--rust-hover);

  --device-px: 1px;
  --font: "Proza Libre", Georgia, serif;
  --measure: 1190px;
  --pad-x: clamp(20px, 5vw, 56px);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --washi: #222222;
  --ink: #d7cab0;
  --rust: #86914b;
  --rust-hover: #9ba957;
  --olive: #adb876;
  --hairline: rgba(215, 202, 176, 0.16);
  --hairline-strong: rgba(215, 202, 176, 0.28);

  --accent-soft: rgba(134, 145, 75, 0.18);

  --lift-card: 0 14px 28px -18px rgba(215, 202, 176, 0.75);
  --lift-panel: 0 6px 24px rgba(215, 202, 176, 0.13);

  --hill-1: #545c2f;
  --hill-2: #44492b;
  --hill-3: #393c28;

  --home-social: #e2dbcb;

  --orb: #e2dbcb;

  --orb-hover: var(--olive);
}

:root {

  --hills-frame: 10.4;
  --hills-mid: 5.2;

  --h1-summit: 0.76;
  --h1-ground: 0.1676;
  --h1-sky: 83.24%;
  --h1-peak: 4.575;
  --h1-heel: 0.1773;
  --h1-approach: 0.06;
  --h1-toe: 7.8274;
  --h1-last: 0.3919;

  --h2-summit: 0.7;
  --h2-ground: 0.19;
  --h2-sky: 81%;
  --h2-peak: 6.45;
  --h2-heel: 4.5361;
  --h2-approach: 0.14;
  --h2-toe: 8.6054;
  --h2-last: 0.9833;

  --h3-summit: 1;
  --h3-ground: 0.14;
  --h3-sky: 86%;
  --h3-peak: 5.2;
  --h3-heel: 2.4973;
  --h3-approach: 0.16;
  --h3-toe: 9.0194;
  --h3-last: 1.58;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: var(--pad-x);
  z-index: 100;
  padding: 8px 16px;
  background: var(--washi);
  color: var(--rust);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus-visible { transform: none; }

html, body {
  margin: 0;
  padding: 0;
}

html { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--washi);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  body { animation: page-fade 0.15s ease both; }
  @keyframes page-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

a { color: inherit; }

.home-body { overflow: hidden; }

.home {

  --links-h: calc(100vh * 0.30632);
  --link-font: calc(var(--links-h) / 4.74);
  --ul-w: calc(var(--link-font) * 0.222);

  --gallery-w: calc(var(--link-font) * 3.34);
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  user-select: none;

  overflow-x: clip;
}

.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  --band-h: max(var(--band-base), var(--band-icons));
  height: var(--band-h);

  --t-ratio: 1.21787;
  --t-w: calc(var(--t-h) * var(--t-ratio));

  --s-d: calc(var(--t-w) * var(--s-size));

  --hills-x: center;
  z-index: 0;
  pointer-events: none;
}

.hills > .hill {
  --h: 100%;
  --x: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h);
  -webkit-mask-size: auto 100%, 100% 100%;
  mask-size: auto 100%, 100% 100%;
  -webkit-mask-position: var(--x) bottom, left bottom;
  mask-position: var(--x) bottom, left bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hill-1 {
  background: var(--hill-1);
  -webkit-mask-image: url("../img/hill-1.svg"),
                      linear-gradient(to bottom, transparent 0 var(--h1-sky),
                                                 #000 var(--h1-sky));
  mask-image: url("../img/hill-1.svg"),
              linear-gradient(to bottom, transparent 0 var(--h1-sky),
                                         #000 var(--h1-sky));
}

.hill-2 {
  background: var(--hill-2);
  -webkit-mask-image: url("../img/hill-2.svg"),
                      linear-gradient(to bottom, transparent 0 var(--h2-sky),
                                                 #000 var(--h2-sky));
  mask-image: url("../img/hill-2.svg"),
              linear-gradient(to bottom, transparent 0 var(--h2-sky),
                                         #000 var(--h2-sky));
}

.hill-3 {
  background: var(--hill-3);
  -webkit-mask-image: url("../img/hill-3.svg"),
                      linear-gradient(to bottom, transparent 0 var(--h3-sky),
                                                 #000 var(--h3-sky));
  mask-image: url("../img/hill-3.svg"),
              linear-gradient(to bottom, transparent 0 var(--h3-sky),
                                         #000 var(--h3-sky));
}

:root {

  --band-base: 50vh;
  --row-top: calc(100vh * 0.04052 + clamp(32px, 100vh * 0.038, 34px) + 8px);
  --reach: max(0px, calc(50vw - var(--band-base)
                                * (var(--hills-mid) - var(--h1-peak))
                              - 100vh * 0.8914));
  --band-icons: max(
    calc(var(--reach) / (var(--h1-peak) - var(--h1-heel))),
    calc((var(--row-top) + var(--reach) * var(--h1-approach))
         / (var(--h1-ground)
            + var(--h1-approach) * (var(--h1-peak) - var(--h1-heel)))));
}

@supports (height: 1dvh) {
  .home { --links-h: calc(100dvh * 0.30632); }

  :root {
    --band-base: 50dvh;
    --row-top: calc(100dvh * 0.04052 + clamp(32px, 100dvh * 0.038, 34px) + 8px);
    --reach: max(0px, calc(50vw - var(--band-base)
                                  * (var(--hills-mid) - var(--h1-peak))
                                - 100dvh * 0.8914));
  }
}

.orb {
  position: absolute;
  left: var(--s-x);
  bottom: var(--s-b);
  width: var(--s-d);
  height: var(--s-d);
  border-radius: 50%;
  background: var(--orb);

  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.orb[data-theme-toggle] {
  pointer-events: auto;
}

.orb[data-theme-toggle]:not(:disabled) { cursor: pointer; }

.orb[data-theme-toggle]:hover,
.orb[data-theme-toggle]:focus-visible {
  background: var(--orb-hover);
}

.orb[data-theme-toggle]:focus-visible {

  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

:root[data-theme="dark"] .orb {
  background: transparent;
  box-shadow: inset calc(var(--s-d) * var(--s-crescent) * -0.7071)
                    calc(var(--s-d) * var(--s-crescent) * -0.7071)
                    0 0 var(--orb);
}

:root[data-theme="dark"] .orb[data-theme-toggle]:hover,
:root[data-theme="dark"] .orb[data-theme-toggle]:focus-visible {
  background: transparent;
  box-shadow: inset calc(var(--s-d) * var(--s-crescent) * -0.7071)
                    calc(var(--s-d) * var(--s-crescent) * -0.7071)
                    0 0 var(--orb-hover);
}

.torii {
  position: absolute;
  left: var(--t-x);
  bottom: var(--t-b);
  width: var(--t-w);
  height: var(--t-h);
  background: var(--hill-1);
  -webkit-mask-image: url("../img/torii.svg");
  mask-image: url("../img/torii.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hills {
  --t-menu: calc(100vh * 0.8914 + var(--gallery-w));
  --t-cap: calc(100vh * 0.04052 + var(--links-h) * 0.66667);
  --t-share: 1.36;
  --t-ridge: 0.348;
  --t-sink: 0.08;
  --t-start: calc(var(--t-menu) + 100vh * 0.04052);
  --s-size: 0.6;
  --s-crescent: 0.18;
  --s-over: 0.35;
  --s-rise: 0.30;
  --s-x: min(calc(var(--t-x) + var(--t-w)
                  - (0.5 + var(--s-over)) * var(--s-d)),
             calc(100vw - 100vh * 0.04052 - var(--s-d)));
  --s-b: min(calc(var(--t-b) + var(--t-h)
                  + (var(--s-rise) - 0.5) * var(--s-d)),
             calc(100vh - 100vh * 0.04052 - var(--s-d)));
  --t-b: calc(var(--band-h) * (var(--t-ridge) - var(--t-share) * var(--t-sink)));
  --t-h: min(calc(var(--band-h) * var(--t-share)),
             calc(max(0px, 100vw - var(--t-start)) / var(--t-ratio)),
             calc(100vh - var(--t-cap) - var(--t-b)));
  --t-x: max(var(--t-start), calc((var(--t-start) + 100vw - var(--t-w)) / 2));
}

@supports (height: 1dvh) {
  .hills {
    --t-menu: calc(100dvh * 0.8914 + var(--gallery-w));
    --t-start: calc(var(--t-menu) + 100dvh * 0.04052);
    --s-x: min(calc(var(--t-x) + var(--t-w)
                    - (0.5 + var(--s-over)) * var(--s-d)),
               calc(100vw - 100dvh * 0.04052 - var(--s-d)));
    --s-b: min(calc(var(--t-b) + var(--t-h)
                    + (var(--s-rise) - 0.5) * var(--s-d)),
               calc(100dvh - 100dvh * 0.04052 - var(--s-d)));
    --t-cap: calc(100dvh * 0.04052 + var(--links-h) * 0.66667);
    --t-h: min(calc(var(--band-h) * var(--t-share)),
               calc(max(0px, 100vw - var(--t-start)) / var(--t-ratio)),
               calc(100dvh - var(--t-cap) - var(--t-b)));
  }
}

.hero-frame {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: calc(100vh * 0.04052);
  padding: calc(100dvh * 0.04052);
  background: transparent;
  z-index: 1;
}

.hero-frame picture { display: contents; }

.home-hero {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

.home-nav { pointer-events: none; }

.home-nav a,
.home-nav button { pointer-events: auto; }

.home-nav {
  position: absolute;
  top: calc(100vh * 0.04052);
  top: calc(100dvh * 0.04052);
  bottom: calc(100vh * 0.04052);
  bottom: calc(100dvh * 0.04052);
  left: calc(100vh * 0.8914);
  left: calc(100dvh * 0.8914);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 2.25vh, 28px);
}

.home-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  height: var(--links-h);
  justify-content: space-between;
  gap: 0;
}

.home-links > a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: var(--link-font);
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 0.19em 0;
  transition: color 0.2s ease;
}

.home-links > a:hover,
.home-links > a:focus-visible { color: var(--rust-hover); }

.home-links .stroke { position: relative; }

.home-links .stroke::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--ul-w) / -2 + 0.1em);
  height: var(--ul-w);
  background: var(--rust);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.home-links > a:nth-child(1) .stroke::after {
  -webkit-mask-image: url("../img/brush-underline-1.svg");
  mask-image: url("../img/brush-underline-1.svg");
}

.home-links > a:nth-child(2) .stroke::after {
  -webkit-mask-image: url("../img/brush-underline-2.svg");
  mask-image: url("../img/brush-underline-2.svg");
}

.home-links > a:nth-child(3) .stroke::after {
  -webkit-mask-image: url("../img/brush-underline-3.svg");
  mask-image: url("../img/brush-underline-3.svg");
}

.home-social {
  display: flex;
  align-items: center;
  gap: 4vh;
  margin-top: auto;
}

.home-social a,
.home-social .cookie-settings {
  color: var(--home-social);
  display: inline-flex;
  transition: color 0.2s ease;
}

.home-social a:hover,
.home-social a:focus-visible { color: var(--olive); }

.home-social svg {
  width: clamp(22px, 3.8vh, 34px);
  height: clamp(22px, 3.8vh, 34px);
}

@media (max-width: 767px) {
  .home-body { overflow: auto; }

  .home {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;

    --stroke: calc(100vw * 0.04545);
    --sixth: calc(100vw / 6);
    --links-h: clamp(144px, 38vw, 154px);
    --link-h: calc(var(--links-h) / 3);

    --ul-w: calc(var(--device-px) * 7);
    --band-gap: clamp(84px, 24vw, 104px);
    --foot: 84px;
    --room: max(100vh - 100vw * 1.1219 - var(--links-h),
                var(--band-gap) + var(--foot));
  }

  .hills {
    --hills-h: var(--room);
    height: var(--hills-h);

    --s-x: min(calc(var(--t-x) + var(--t-w)
                    - (0.5 + var(--s-over)) * var(--s-d)),
               calc(100vw - 2 * var(--stroke) - var(--gallery-w) - var(--s-d)));
    --s-b: min(calc(var(--t-b) + var(--t-h)
                    + (var(--s-rise) - 0.5) * var(--s-d)),
               calc(var(--hills-h) + var(--links-h) - var(--s-d)
                    - var(--stroke)));
    --t-x: var(--stroke);
    --t-b: var(--foot);
    --t-share: 1.04;
    --t-h: min(max(calc(var(--hills-h) * var(--t-share)), calc(100vw * 0.351)),
               calc(var(--hills-h) - var(--t-b) + var(--links-h) * 0.6667),
               calc((100vw - 3 * var(--stroke) - var(--gallery-w))
                    / var(--t-ratio)));
  }

  .hills > .hill-3 {
    --h: calc(var(--hills-h) + var(--link-h) / 2);
    --x: calc(var(--sixth) - var(--h) * var(--h3-peak));
  }

  .hills > .hill-2 {
    --h: calc((var(--hills-h) - var(--stroke)) / var(--h2-summit));
    --x: calc(100vw - var(--sixth) - var(--h) * var(--h2-peak));
  }

  .hills > .hill-1 {
    --h: calc(var(--foot) / var(--h1-ground));
    --x: calc(100vw - var(--h) * var(--h1-toe));
  }

  .hero-frame {
    position: static;
    height: auto;
    width: 100%;
    padding: calc(100vw * 0.04545);
  }

  .home-hero {
    width: 100%;
    height: auto;
  }

  .home-nav {
    position: relative;
    z-index: 1;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    align-items: center;
    text-align: center;

    gap: 0;

    padding: 0 calc(100vw * 0.04545) 36px;

    flex-grow: 1;
  }

  .home-links {
    align-self: stretch;
    width: auto;
    height: var(--links-h);
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    gap: 0;
    margin-bottom: var(--band-gap);
  }

  .home-social {
    margin-top: auto;
    padding-top: 0;
    gap: clamp(15px, 6vw, 26px);
  }

  .home-social svg { width: 26px; height: 26px; }
}

@media (min-width: 439px) and (max-width: 767px) {
  .home {
    --foot: 66px;
  }
}

@supports (height: 1dvh) {
  @media (max-width: 767px) {
    .home {
      --room: max(100dvh - 100vw * 1.1219 - var(--links-h),
                  var(--band-gap) + var(--foot));
    }
  }
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
}

.theme-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--rust);
  display: inline-flex;
  transition: color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible { color: var(--olive); }

.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.back-link {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible { color: var(--rust-hover); }

.page-main {
  flex: 1;
  padding: 16px var(--pad-x) 60px;
  width: 100%;
}

#main { caret-color: transparent; }
#main input,
#main textarea { caret-color: var(--ink); }

.page-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  color: var(--rust);
  margin: 8px 0 32px;
  line-height: 1.1;

  text-transform: lowercase;
}

.site-footer {
  width: 100%;
  padding: 20px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 22px;
  border-top: 1px solid var(--hairline);
}

.footer-nav {
  display: flex;
  gap: 10px;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--rust);
  text-decoration: none;
  padding: 6px;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--olive); }

@media (max-width: 520px) {
  .site-footer { gap: 0 8px; }
  .site-footer a,
  .cookie-settings { padding: 4px; }
  .footer-nav { flex-basis: 100%; justify-content: center; }
  .footer-nav a { padding: 6px 8px; }
}

.site-footer a {
  color: var(--rust);
  display: inline-flex;
  padding: 6px;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--olive); }

.prose,
.post {
  max-width: var(--measure);
  margin: 0 auto;
}

.prose h1,
.post-title {
  font-size: clamp(32px, 5.5vw, 50px);
  font-weight: 400;
  color: var(--rust);
  line-height: 1.15;
  margin: 0 0 28px;
}

.prose h1 { font-size: clamp(36px, 6vw, 56px); margin: 8px 0 28px; text-transform: lowercase; }

.prose h2,
.post h2 {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 400;
  color: var(--rust);
  margin: 40px 0 18px;
}

.prose p,
.post p {
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 22px;
}

.prose a,
.post a { color: var(--rust); transition: color 0.2s ease; }

.prose a:hover,
.post a:hover { color: var(--rust-hover); }

.post blockquote {
  margin: 0 0 22px;
  padding: 0;
  border: none;
}

.post blockquote p {
  font-style: italic;
  color: var(--olive);
}

.post-date {
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.post-figure {
  margin: 32px 0;
}

.post-figure figcaption {
  font-size: 14px;
  color: var(--olive);
  margin-top: 10px;
  line-height: 1.5;
}

.prose sup,
.post sup {
  line-height: 0;
  font-size: 0.72em;
  vertical-align: super;
}

.footnote-ref {
  text-decoration: none;
  padding: 0 2px;
}

.footnotes {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.6;
  color: var(--olive);
}

.footnotes ol {
  margin: 0;
  padding-left: 20px;
}

.footnotes li {
  margin: 0 0 8px;
}

.footnote-backref {
  text-decoration: none;
  margin-left: 4px;
}

.video-embed {
  aspect-ratio: 16 / 9;
  margin: 32px 0;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.comments { margin-top: 48px; }

.comment-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.comment {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.comment:first-child { border-top: 0; padding-top: 0; }

.comment.is-reply {
  margin-left: 22px;
  padding-left: 18px;
  border-top: 0;
  border-left: 2px solid var(--hairline-strong);
}

.comment-head {
  margin: 0 0 6px;
  font-size: 14px;
}

.comment-author { color: var(--rust); }

.comment-date {
  color: var(--olive);
  font-size: 13px;
  margin-left: 8px;
}

.comment-text {
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-reply {
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 6px 0 0;
  color: var(--rust);
  cursor: pointer;
}

.comment-reply:hover,
.comment-reply:focus-visible { color: var(--olive); }

.comment-note {
  font-size: 15px;
  color: var(--olive);
  margin: 0 0 24px;
}

.comment-note.is-error { color: var(--rust); }
.comment-note:empty { margin: 0; }

.comment-form {
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.comment-replying {
  font-size: 14px;
  color: var(--olive);
  margin: 0 0 14px;
}

.comment-cancel-reply {
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  color: var(--rust);
  cursor: pointer;
  text-decoration: underline;
}

.comment-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.comment-row .comment-field { flex: 1 1 220px; }

.comment-field {
  display: block;
  margin-bottom: 16px;
}

.comment-field > span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.comment-field > span em {
  font-style: normal;
  color: var(--olive);
  font-size: 13px;
}

.comment-field small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--olive);
}

.comment-field input,
.comment-field textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  color: var(--ink);
  background: var(--washi);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

.comment-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.comment-field input:hover,
.comment-field textarea:hover,
.comment-field input:focus-visible,
.comment-field textarea:focus-visible { border-color: var(--rust); outline: none; }

.comment-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.comment-submit {
  font: inherit;
  font-size: 15px;
  padding: 9px 22px;
  border-radius: 4px;
  cursor: pointer;
  background: var(--rust);
  color: var(--washi);
  border: 1px solid var(--rust);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.comment-submit:hover,
.comment-submit:focus-visible { background: var(--rust-hover); border-color: var(--rust-hover); }

.comment-submit[disabled] { opacity: 0.6; cursor: default; }

.comment-hint {
  font-size: 13px;
  color: var(--olive);
}

.comments-title {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 400;
  color: var(--rust);
  margin: 0 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.cdn-frame {
  position: relative;
  width: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    var(--olive) 0px, var(--olive) 2px,
    var(--washi) 2px, var(--washi) 18px
  );
  overflow: hidden;
}

.cdn-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdn-frame.missing img { display: none; }

.cdn-frame[style*="--tone"]:not(.missing) {
  background: var(--tone);
}

.js-img .cdn-frame img { opacity: 0; }
.js-img .cdn-frame.is-loaded img { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .cdn-frame img { transition: opacity 0.35s ease; }
}

.cdn-frame.missing::after {
  content: attr(data-file);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--washi);
  padding: 3px 8px;
  border: 1px solid var(--hairline-strong);
  white-space: nowrap;
}

.blog-index {
  max-width: var(--measure);
  margin: 0 auto;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.blog-search { margin: -12px 0 28px; }

#post-search {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--washi);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 8px 12px;
  width: min(100%, 340px);
  transition: border-color 0.2s ease;
}

#post-search:hover,
#post-search:focus-visible { border-color: var(--rust); outline: none; }

#post-search::placeholder { color: var(--ink); opacity: 0.55; }

.blog-filter-status {
  font-size: 15px;
  color: var(--olive);
  margin: -12px 0 28px;
}

.blog-filter-status a { color: var(--rust); }
.blog-filter-status a:hover,
.blog-filter-status a:focus-visible { color: var(--rust-hover); }

.post-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.post-card[hidden] { display: none; }

.post-card-thumb {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 4 / 3;
  align-self: flex-start;

  background-image: repeating-linear-gradient(
    135deg,
    var(--rust-hover) 0px, var(--rust-hover) 2px,
    var(--washi) 2px, var(--washi) 18px
  );
}

.post-card-body {
  flex: 1 1 320px;
  min-width: 240px;
}

.post-card-date {
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.post-card-heading {
  margin: 0;
  font-weight: 400;
}

.post-card-title {
  display: inline-block;
  font-size: 24px;
  color: var(--rust);
  line-height: 1.25;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title:hover,
.post-card-title:focus-visible { color: var(--rust-hover); }

.post-card-excerpt {
  font-size: 16px;
  line-height: 1.6;
}

.post-card-tags,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-card-tags { margin-top: 12px; }
.post-tags { margin: -16px 0 28px; }

.tag-chip {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rust);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 3px 12px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-chip:hover,
.tag-chip:focus-visible { color: var(--olive); border-color: var(--olive); }

@media (max-width: 520px) {
  .post-card-thumb { flex-basis: 100%; width: 100%; }
}

.gallery-filter {
  margin: -12px 0 28px;
}

.tree-filter {
  position: relative;
  display: inline-block;
  min-width: min(100%, 28rem);
  max-width: 100%;
}

.tree-filter-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--ink);
  background: var(--washi);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tree-filter-button:hover,
.tree-filter-button:focus-visible { border-color: var(--rust); outline: none; }

.tree-filter-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.tree-filter-chevron {
  flex: none;
  transition: transform 0.2s ease;
}

.tree-filter-button[aria-expanded="true"] .tree-filter-chevron {
  transform: rotate(180deg);
}

.tree-filter-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(92vw, 520px);
  max-height: min(60vh, 22rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  color: var(--ink);
  background: var(--washi);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  box-shadow: var(--lift-panel);
}

.tree-filter-list[hidden] { display: none; }

.tree-filter-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  outline: none;
}

.tree-filter-name { min-width: 0; }

.tree-filter-count {
  flex: none;
  font-size: 13px;
  color: var(--olive);
}

.tree-filter-option:hover,
.tree-filter-option.is-active { background: var(--accent-soft); }

.tree-filter-option.is-active { box-shadow: inset 2px 0 0 var(--rust); }

.tree-filter-option[aria-selected="true"] {
  background: var(--rust);
  color: var(--washi);
}

.tree-filter-option[aria-selected="true"] .tree-filter-count { color: var(--washi); }

.tree-filter-option[aria-selected="true"]:hover,
.tree-filter-option[aria-selected="true"].is-active { background: var(--rust-hover); }

.tree-filter-option[aria-selected="true"].is-active {
  box-shadow: inset 2px 0 0 var(--washi);
}

@media (max-width: 520px) {
  .tree-filter { display: block; }
  .tree-filter-list { right: 0; width: auto; max-width: none; }

  .tree-filter-option,
  .tree-filter-value { display: block; }

  .tree-filter-count { display: block; margin-top: 2px; }
}

.gallery-grid {
  columns: 280px;
  column-gap: 20px;
}

.gallery-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--hairline);
  background: var(--washi);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--lift-card);
}

.gallery-card[hidden] { display: none; }

.gallery-card .cdn-frame { border: none; }

.gallery-card-caption { padding: 12px 12px 12px; }

.gallery-card-species {
  color: var(--rust);
  font-size: 16px;
}

.gallery-card-meta {
  font-size: 13px;
  margin-top: 2px;
}

.gallery-status {
  font-size: 15px;
  color: var(--olive);
  padding: 8px 0 40px;
}

.gallery-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 40px;
}

.gallery-more[hidden] { display: none; }

.gallery-more-button {
  font: inherit;
  font-size: 15px;
  padding: 9px 26px;
  border-radius: 4px;
  cursor: pointer;
  background: var(--rust);
  color: var(--washi);
  border: 1px solid var(--rust);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-more-button:hover,
.gallery-more-button:focus-visible {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
}

.gallery-more-button[hidden] { display: none; }

.gallery-more-count {
  margin: 0;
  font-size: 13px;
  color: var(--olive);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;

  touch-action: none;
}

@media (hover: none) and (pointer: coarse) {
  .lightbox-prev,
  .lightbox-next { display: none; }
}

.lightbox[hidden] { display: none; }

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  background: none;
  border: none;

  color: #f2ece0;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1;
  padding: 12px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

.lightbox-close { top: 14px; right: 18px; font-size: 26px; padding: 6px 10px; }
.lightbox-prev  { left: clamp(2px, 3vw, 32px); top: 50%; transform: translateY(-50%); font-size: 40px; }
.lightbox-next  { right: clamp(2px, 3vw, 32px); top: 50%; transform: translateY(-50%); font-size: 40px; }

.lightbox-body {
  width: fit-content;
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.lightbox-body .cdn-frame {

  flex: 0 0 auto;
  width: 100%;
  border: none;
  background: none;
}

.lightbox-body .cdn-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(14px);
  transform: scale(1.03);
}

.lightbox-body .cdn-frame.is-loaded::before,
.lightbox-body .cdn-frame.missing::before { opacity: 0; }

.lightbox-body .cdn-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.lightbox-body .cdn-frame.is-loaded img { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox-body .cdn-frame::before,
  .lightbox-body .cdn-frame img {
    transition: opacity 0.28s ease;
  }
}

.lightbox-caption {
  flex: 0 0 auto;
  width: 0;
  min-width: 100%;
  background: var(--washi);
  padding: 18px 22px;
  overflow-y: auto;
}

.lightbox.lb-side {
  justify-content: center;
  align-items: center;
}

.lb-side .lightbox-body {
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  flex-direction: row;
  align-items: flex-end;
}

.lb-side .lightbox-caption {
  width: auto;
  min-width: 0;
  overflow: auto;
}

.lightbox-species { color: var(--rust); font-size: 20px; }
.lightbox-meta    { font-size: 14px; margin-top: 4px; }
.lightbox-tree    { font-size: 13px; margin-top: 6px; color: var(--olive); font-style: italic; }
.lightbox-notes   { font-size: 15px; margin-top: 10px; line-height: 1.6; }

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 32px), 560px);
  padding: 16px 20px;
  background: var(--washi);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  box-shadow: var(--lift-panel);
}

.consent-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-actions button {
  font: inherit;
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.consent-accept {
  background: var(--rust);
  color: var(--washi);
  border: 1px solid var(--rust);
}

.consent-accept:hover,
.consent-accept:focus-visible { background: var(--rust-hover); border-color: var(--rust-hover); }

.consent-decline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.consent-decline:hover,
.consent-decline:focus-visible { color: var(--olive); border-color: var(--olive); }

.cookie-settings {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  padding: 6px;
  color: var(--rust);
  cursor: pointer;
  transition: color 0.2s ease;
}

.cookie-settings:hover,
.cookie-settings:focus-visible { color: var(--olive); }

.consent-text a { color: var(--rust); }
.consent-text a:hover,
.consent-text a:focus-visible { color: var(--olive); }

.footer-text-link {
  font-size: 13px;
  padding: 6px;
  text-decoration: none;
}
