/* ---------- Design 1 — Fraunces / Newsreader notebook ---------- */

/* Minimal reset (mirrors the bits of Tailwind preflight we rely on) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; }
h1, h2, h3, h4, h5, h6, p, blockquote, figure { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:root{
  --paper:   #F4EFE4;
  --paper-2: #EEE7D4;
  --ink:     #171513;
  --ink-2:   #35312B;
  --muted:   #574F42;
  --muted-sm:#4E4839;
  --rule:    #D9D0BB;
  --accent:  #A24B2A;
  --hair:    0.5px;
}
.dark{
  --paper:   #0E0E0C;
  --paper-2: #17171400;
  --ink:     #EDE7D8;
  --ink-2:   #C9C2B0;
  --muted:   #8A8373;
  --muted-sm:#8A8373;
  --rule:    #2B2824;
  --accent:  #E39577;
}

html, body{ background: var(--paper); color: var(--ink); }
body{
  font-family: 'Newsreader', Georgia, serif;
  font-optical-sizing: auto;
  font-feature-settings: "liga","onum","kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 18px;
  line-height: 1.55;
}

.display{
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.mono{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-sm);
}

.rule-b{ border-bottom: var(--hair) solid var(--rule); }
.rule-t{ border-top: var(--hair) solid var(--rule); }

::selection{ background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.navlink{ position: relative; transition: color .3s ease; }
.navlink:hover{ color: var(--ink); }
.navlink.active{ color: var(--ink); }

.toggle{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-sm);
  background: transparent;
  border: 0;
  padding: 4px 0 4px 14px;
  cursor: pointer;
  transition: color .3s ease;
}
.toggle:hover{ color: var(--ink); }

/* Writing list row */
.row{
  display: grid;
  grid-template-columns: 88px 1fr 18px;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: var(--hair) solid var(--rule);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.row:hover{ transform: translateX(2px); }
.row .date{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row .title{
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.row .excerpt{
  margin-top: 4px;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted);
}
.row .arrow{
  font-family: 'Fraunces', serif;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease, color .3s ease;
  font-size: 18px;
  align-self: center;
}
.row:hover .arrow{ opacity: 1; transform: translateX(0); color: var(--accent); }
.row:hover .title{
  background-image: linear-gradient(var(--accent),var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 92%;
}

.year{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-sm);
  padding-top: 10px;
}

/* Prose (reading view) */
.prose{ max-width: 62ch; }
.prose p{ margin-top: 1.1em; }
.prose p:first-of-type{ margin-top: 0; }
.prose h1, .prose h2, .prose h3{
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
}
.prose h1{ font-size: 34px; font-weight: 500; margin-bottom: .25em; }
@media (min-width: 640px){ .prose h1{ font-size: 40px; } }
.prose h2{ font-size: 26px; font-weight: 500; margin-top: 1.8em; margin-bottom: .4em; }
.prose h3{ font-size: 21px; font-weight: 500; margin-top: 1.6em; margin-bottom: .3em; }
.prose a{
  color: var(--ink);
  background-image: linear-gradient(var(--accent),var(--accent));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 95%;
  transition: background-size .4s ease;
}
.prose a:hover{ background-size: 100% 2px; }
.prose h1 a, .prose h2 a, .prose h3 a{
  background: none;
  color: inherit;
}
.prose h1 a:hover, .prose h2 a:hover, .prose h3 a:hover{
  background: none;
  color: var(--accent);
}
.prose ul, .prose ol{ margin-top: 1.1em; padding-left: 1.4em; }
.prose ul li{ list-style: disc; }
.prose ol li{ list-style: decimal; }
.prose li + li{ margin-top: .35em; }
.prose blockquote{
  margin: 1.6em 0;
  padding-left: 1.1em;
  border-left: 1px solid var(--accent);
  font-style: italic;
  color: var(--ink-2);
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
}
.prose code{
  font-family: 'JetBrains Mono', monospace;
  font-size: .86em;
  background: var(--paper-2);
  border: var(--hair) solid var(--rule);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink-2);
}
.prose pre{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--paper-2);
  border: var(--hair) solid var(--rule);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 1.1em;
}
.prose pre code{ background: transparent; border: 0; padding: 0; }
.prose img{ max-width: 100%; border-radius: 2px; margin-top: 1.1em; }
.prose hr{
  border: 0;
  border-top: var(--hair) solid var(--rule);
  margin: 2.2em 0;
}
.prose sup a{ background: none; font-size: .72em; color: var(--accent); padding-left: 1px; }

/* Inline separator dot for nav */
.sep{
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 10px 2px 10px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise{ animation: rise .7s cubic-bezier(.2,.65,.2,1) both; }

.portrait{
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: 62% 36%;
  border-radius: 2px;
  margin-top: 9px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent),
    0 0 0 7px color-mix(in srgb, var(--accent) 7%, transparent),
    0 22px 50px -18px rgba(23,21,19,.32);
}
.dark .portrait{
  box-shadow:
    0 0 0 1px rgba(247,241,224,.18),
    0 0 0 7px rgba(247,241,224,.045),
    0 24px 60px -18px rgba(0,0,0,.8);
}

/* Now section */
.now-item{
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: var(--hair) solid var(--rule);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.now-item:hover{ transform: translateX(2px); }
.now-item .live{
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-2px);
  justify-self: center;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 8%, transparent); }
}
.now-item .name{
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.now-item .what{
  display: block;
  margin-top: 4px;
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}
.now-item .tag{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-sm);
  white-space: nowrap;
  align-self: center;
}
.now-item:hover .name{
  background-image: linear-gradient(var(--accent),var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 94%;
}

/* Social chips */
.social{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-sm);
  padding: 4px 0;
  transition: color .3s ease, transform .4s ease;
}
.social svg{
  color: var(--muted-sm);
  transition: color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  flex-shrink: 0;
}
.social:hover{ color: var(--ink); }
.social:hover svg{ color: var(--accent); transform: translateY(-1px); }

@media (max-width: 640px){
  .portrait{ width: 96px; height: 96px; }
  .now-item{ grid-template-columns: 18px 1fr; gap: 12px; }
  .now-item .tag{ grid-column: 2; margin-top: 2px; }
  .social{ font-size: 10.5px; }
}

.tnum{ font-variant-numeric: tabular-nums; }

a, button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 640px){
  body{ font-size: 17px; }
  .row{
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .row .arrow{ display: none; }
  .row .date{ order: -1; }
  .row .title{ font-size: 19px; }
  .row .excerpt{ font-size: 15px; }
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

/* Layout helpers (avoid pulling Tailwind CDN at runtime) */
.d1-wrap{ max-width: 720px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px){ .d1-wrap{ padding: 0 32px; } }
.d1-topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.d1-brand{
  font-family: 'Fraunces', serif;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.d1-nav-right{ display: flex; align-items: center; }
.d1-nav{
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-sm);
}
.d1-intro{
  padding-top: 56px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 640px){
  .d1-intro{ padding-top: 80px; padding-bottom: 56px; flex-direction: row; gap: 32px; align-items: flex-start; }
}
.d1-lede{
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.5;
  max-width: 54ch;
  color: var(--ink-2);
}
@media (min-width: 640px){ .d1-lede{ font-size: 22px; } }
.d1-lede .name{ color: var(--ink); font-weight: 400; }
.d1-social-row{
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
}
.d1-meta-row{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-sm);
}
.d1-section{ padding-bottom: 64px; }
@media (min-width: 640px){ .d1-section{ padding-bottom: 80px; } }
.d1-section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.d1-now-blurb{
  font-family: 'Newsreader', serif;
  color: var(--muted);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 32px;
}
.d1-latest-title{
  font-family: 'Fraunces', serif;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
@media (min-width: 640px){ .d1-latest-title{ font-size: 40px; } }
.d1-footer{
  margin-top: 40px;
  border-top: var(--hair) solid var(--rule);
}
.d1-footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 12px;
  column-gap: 24px;
  padding: 32px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-sm);
}
.d1-footer-copy{ text-align: right; }
</content>
</invoke>