:root {
  --paper: #f5efdf;
  --ink: #352e25;
  --body-ink: #64594a;
  --muted: #796b57;
  --rule: #d9cfbd;
  --ornament: #8d724c;
  --underline: #ad9270;
  --hover: #856036;
  --scroll-thumb: #c7bba4;
  --post-label: #8b795e;
  --status-green: #58834b;
  --wayframe-blue: #3b6fb8;
  color-scheme: light;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #51412e;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 28px;
  background: linear-gradient(#30241512, #30241512), url('/assets/brown-paper.jpg') center / cover;
}
.note {
  position: relative;
  isolation: isolate;
  width: min(100%, 644px);
  background: var(--paper);
  padding: 36px 52px 25px;
  box-shadow: 0 1px 2px #21170830, 0 9px 16px -8px #21170865, 0 32px 65px -22px #21170870;
}
.note__header, .note__footer { display: flex; align-items: center; justify-content: space-between; }
.note__header { margin-bottom: 58px; }
.monogram { font-size: 24px; font-style: normal; letter-spacing: -.8px; }
.social { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 8px 16px; font: 13px/1.2 Arial, Helvetica, sans-serif; }
.social span { font-size: 16px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.social { text-decoration: none; }
a:hover { color: var(--hover); }
a:focus-visible { outline: 2px solid var(--hover); outline-offset: 6px; border-radius: 1px; }
h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 46px); font-weight: 400; line-height: 1.1; letter-spacing: -1.9px; }
p { margin: 0; }
.intro { max-width: 440px; margin-bottom: 28px; font-size: 23px; line-height: 1.5; letter-spacing: -.45px; }
.intro a:hover, .intro a:focus-visible { color: var(--wayframe-blue); text-decoration-color: currentColor; }
.intro a { text-decoration-color: var(--underline); white-space: nowrap; }
.arrow { display: inline-block; margin-left: 2px; font: 15px/1 Arial, Helvetica, sans-serif; vertical-align: 3px; }
.bio { max-width: 430px; margin-bottom: 18px; font-size: 17px; line-height: 1.65; color: var(--body-ink); }
.note__body { padding-bottom: 46px; }
.note__footer { border-top: 1px solid var(--rule); padding-top: 20px; color: var(--muted); font: 11px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .15px; }
.endmark { font-family: Georgia, serif; font-size: 25px; line-height: 1; color: var(--ornament); }
.note__body:has(.location-status) { padding-bottom: 28px; }
.location-status { margin-top: 32px; color: var(--body-ink); font-family: Arial, Helvetica, sans-serif; }
.location-status__message { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; font-size: 12px; line-height: 1.7; }
.location-status__message a { white-space: nowrap; text-decoration-color: var(--underline); text-underline-offset: 3px; }
.location-status__live { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 9px; line-height: 1.3; letter-spacing: .35px; color: var(--muted); }
.location-status__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--status-green); }
@media (max-width: 540px) {
  body { padding: 40px 20px; }
  .note { padding: 24px 28px 22px; }
  .note__header { margin-bottom: 44px; }
  h1 { margin-bottom: 24px; letter-spacing: -1.35px; }
  .intro { font-size: 21px; line-height: 1.5; }
  .bio { font-size: 16px; }
  .note__body { padding-bottom: 32px; }
}
@media (max-width: 340px) {
  body { padding: 28px 14px; }
  .note { padding: 22px; }
  h1 { font-size: 30px; }
}

[hidden] { display: none !important; }
.view-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 8px 4px 0; }
.view-link:hover { text-decoration: underline; }
.note:is([data-view="blog"], [data-view="post"]) { height: min(680px, calc(100svh - 100px)); min-height: min(520px, calc(100svh - 48px)); display: flex; flex-direction: column; }
.note:is([data-view="blog"], [data-view="post"]) .note__header { margin-bottom: 30px; flex-shrink: 0; }
.note:is([data-view="blog"], [data-view="post"]) .note__footer { flex-shrink: 0; margin-top: 24px; }
.blog { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.blog h1 { margin-bottom: 22px; }
.blog h1:focus { outline: none; }
.blog__sections { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.blog__sections a { color: var(--muted); font: 12px/1.5 Arial, Helvetica, sans-serif; text-decoration: none; padding: 3px 0; }
.blog__sections a span { color: var(--post-label); font-size: 10px; margin-right: 4px; }
.blog__sections a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--underline); }
.blog__reader { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; padding: 0 12px 0 0; margin: 12px -12px 0 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent 100%); }
.blog__reader:focus-visible { outline: 1px solid var(--underline); outline-offset: 5px; }
.post { padding: 22px 0 30px; border-bottom: 1px solid var(--rule); scroll-margin-top: 0; }
.post:last-child { border: 0; padding-bottom: 10px; }
.post__number { font: 10px/1.5 Arial, Helvetica, sans-serif; color: var(--post-label); letter-spacing: 1px; margin-bottom: 14px; }
.post h2 { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.7px; margin: 0 0 20px; }
.post > p:not(.post__number) { color: var(--body-ink); font-size: 17px; line-height: 1.7; margin-bottom: 20px; }
@media (max-width: 540px) {
  .note:is([data-view="blog"], [data-view="post"]) { height: calc(100svh - 80px); }
  .note:is([data-view="blog"], [data-view="post"]) .note__header { margin-bottom: 24px; }
  .blog h1 { margin-bottom: 18px; }
  .blog__sections { column-gap: 14px; padding-bottom: 14px; }
  .post > p:not(.post__number) { font-size: 16px; }
}
@media (max-height: 540px) {
  body:has(.note:is([data-view="blog"], [data-view="post"])) { padding-top: 24px; padding-bottom: 24px; }
  .note:is([data-view="blog"], [data-view="post"]) { height: calc(100svh - 48px); padding-top: 20px; padding-bottom: 16px; }
  .note:is([data-view="blog"], [data-view="post"]) .note__header { margin-bottom: 12px; }
  .note:is([data-view="blog"], [data-view="post"]) .note__footer { margin-top: 12px; padding-top: 12px; }
  .blog h1 { font-size: 30px; margin-bottom: 12px; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #292621;
  --ink: #eee5d8;
  --body-ink: #c5b9a6;
  --muted: #a79a86;
  --rule: #51483c;
  --ornament: #b6a07c;
  --underline: #97805e;
  --hover: #e0c49a;
  --scroll-thumb: #6d604d;
  --post-label: #a99a82;
  --status-green: #87b877;
  --wayframe-blue: #83b8f4;
}
.theme-toggle { display: grid; place-items: center; border: 0; padding: 6px; margin: -6px; background: transparent; cursor: pointer; width: 37px; height: 37px; }
.theme-toggle:hover { color: var(--hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--underline); outline-offset: 3px; border-radius: 50%; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

.location-status__message strong { font-weight: 700; }
.location-status[data-stale="true"] .location-status__dot { background: var(--muted); opacity: .55; }
.location-status__credit { color: inherit; text-decoration: none; opacity: .7; }
.location-status__credit:hover { text-decoration: underline; }

.post-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.blog__index { margin-top: 0; }
.post-preview { display: block; color: inherit; text-decoration: none; padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.post-preview:first-child { padding-top: 10px; }
.post-preview:last-child { border-bottom: 0; }
.post-preview h2 { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.7px; margin: 0 0 16px; }
.post-preview__excerpt { color: var(--body-ink); font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.post-preview__read { font: 11px/1.5 Arial, Helvetica, sans-serif; color: var(--muted); }
.post-preview:hover h2 { color: var(--hover); }
.post-preview:hover .post-preview__read { text-decoration: underline; text-underline-offset: 4px; }
.post-reader { margin-top: 0; }
.post-full { padding: 10px 0 8px; }
.post-full h1 { margin-bottom: 28px; }
.post-full > p:not(.post__number) { color: var(--body-ink); font-size: 17px; line-height: 1.7; margin-bottom: 22px; }
@media (max-width: 540px) { .post-preview__excerpt, .post-full > p:not(.post__number) { font-size: 16px; } }
