:root {
  color-scheme: light;
  --paper: #f6f8fb;
  --white: #ffffff;
  --ink: #17263e;
  --blue: #2958a3;
  --mist: #e9eef8;
  --muted: #67748a;
  --line: #dde4ef;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--mist); color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-shell { max-width: 1240px; margin: auto; padding: 0 56px; }
.site-header { display: flex; align-items: center; min-height: 106px; border-bottom: 1px solid var(--line); gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 19px; letter-spacing: -.5px; }
.brand-mark { display: grid; place-content: center; position: relative; width: 42px; height: 44px; border-radius: 10px 10px 3px 10px; color: var(--white); background: var(--blue); font: italic 30px/.9 var(--serif); padding: 0 5px 4px 0; }
.brand-mark span { position: absolute; bottom: 8px; right: 5px; }
.brand-caption { display: block; font-size: 10px; font-weight: 400; letter-spacing: .6px; color: var(--muted); margin-top: 1px; }
.main-nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; }
.main-nav a { padding: 12px 0; color: var(--muted); transition: color .18s; }
.main-nav a:hover { color: var(--blue); }
.domain-link { font: 11px var(--mono); color: var(--muted); margin-left: 38px; }
.domain-link span { color: var(--blue); margin-left: 8px; font-size: 16px; }
.hero { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 80px; padding: 82px 0 84px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1.8px; margin: 0 0 12px; }
.hero .eyebrow { color: var(--blue); margin-bottom: 20px; }
.small-line { width: 24px; height: 1px; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 clamp(40px, 4.3vw, 58px)/1.13 var(--serif); letter-spacing: -2px; margin-bottom: 24px; }
h1 em { color: var(--blue); font-weight: 400; }
.hero-description { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 12px 19px; font-size: 12px; font-weight: 600; border-radius: 7px; transition: transform .2s, background .2s; }
.button-primary { background: var(--blue); color: var(--white); }
.button:hover { transform: translateY(-2px); background: var(--ink); }
.button span { font-size: 18px; line-height: 1; }
.text-link { font-size: 12px; }
.text-link span { margin-left: 8px; color: var(--blue); }
.text-link:hover, .empty-link:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.notebook { position: relative; width: 272px; justify-self: center; margin-top: 7px; }
.notebook-cover { position: relative; padding: 22px 25px 24px 33px; height: 300px; border: 1px solid #ccd8eb; border-left: 8px solid #c3cfe4; border-radius: 3px 13px 13px 3px; background: var(--mist); transform: rotate(5deg); box-shadow: 7px 12px 24px #17263e09; }
.notebook-shadow { position: absolute; inset: 5px 6px -1px 0; transform: rotate(-4deg); background: var(--white); border: 1px solid var(--line); border-radius: 4px 13px 13px 4px; }
.notebook-top { display: flex; justify-content: space-between; font: 7px/1.5 var(--mono); letter-spacing: 1px; color: var(--blue); }
.notebook-monogram { font: italic 146px/1.3 var(--serif); letter-spacing: -17px; color: var(--blue); margin: 0 0 -3px -3px; }
.notebook-monogram span { font-size: 110px; margin-left: 12px; }
.notebook-bottom { display: flex; align-items: end; justify-content: space-between; color: var(--blue); font: 16px/1.25 var(--serif); }
.notebook-bottom svg { width: 32px; height: 32px; }
.bookmark { position: absolute; top: -1px; right: 70px; height: 38px; width: 16px; background: var(--blue); clip-path: polygon(0 0,100% 0,100% 100%,50% 79%,0 100%); }
.notebook-top span:first-child { max-width: 115px; }
.notebook-top span:last-child { margin-left: 26px; }
.notebook-caption { display: block; text-align: center; margin-top: 22px; color: var(--muted); font: italic 12px var(--serif); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { font: 500 28px/1.25 var(--serif); letter-spacing: -.6px; margin-bottom: 0; }
.section-description { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.count-badge { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; margin: -2px 0 0 12px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--mist); color: var(--blue); font: 11px var(--mono); letter-spacing: 0; }
.directory { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.directory-toolbar { display: flex; align-items: center; gap: 20px; min-height: 56px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.directory-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.directory-label svg { stroke: var(--blue); stroke-width: 1.1; }
.directory-caption { font: 10px var(--mono); color: var(--muted); margin-left: auto; }
.empty-state { padding: 28px 24px 30px; text-align: center; }
.empty-illustration { position: relative; width: 83px; height: 77px; margin: 0 auto 10px; }
.empty-tile { position: absolute; width: 48px; height: 48px; border-radius: 11px; }
.tile-back { left: 12px; top: 5px; transform: rotate(-13deg); border: 1px solid var(--line); background: var(--paper); }
.tile-front { display: grid; place-content: center; top: 15px; left: 27px; transform: rotate(7deg); border: 1px solid #c4d3eb; background: var(--mist); color: var(--blue); }
.empty-dot { position: absolute; width: 5px; height: 5px; border: 1px solid #9fb3d3; border-radius: 50%; top: 4px; right: 1px; }
.empty-state h3 { font-size: 17px; font-weight: 500; letter-spacing: -.2px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 16px; }
.empty-link { font-size: 11px; color: var(--blue); }
.empty-link span { margin-left: 5px; }
.search-field { margin-left: auto; }
.search-field input { width: 225px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; color: var(--ink); background: var(--paper); }
.search-field input::placeholder { color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px; gap: 16px; }
.app-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, transform .2s; }
.app-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.app-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-initial { display: grid; place-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: var(--mist); color: var(--blue); font: 20px var(--serif); }
.app-card h3 { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.app-card p { color: var(--muted); font-size: 12px; flex: 1; overflow-wrap: anywhere; }
.app-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 10px var(--mono); color: var(--blue); }
.no-results, .no-script { text-align: center; padding: 24px; font-size: 13px; color: var(--muted); }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 60px; margin: 64px 0 70px; }
.compact { margin-bottom: 20px; }
.muted-label { font: 10px var(--mono); color: var(--muted); padding-bottom: 4px; }
.post-card { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 23px 0 21px; transition: border-color .2s; }
.post-card:hover { border-bottom-color: var(--blue); }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 9px var(--mono); color: var(--muted); margin-bottom: 19px; }
.post-category { color: var(--blue); letter-spacing: .7px; }
.post-card h3 { font: 500 24px/1.3 var(--serif); letter-spacing: -.3px; margin-bottom: 11px; }
.post-card p { max-width: 440px; font-size: 12px; line-height: 1.85; color: var(--muted); margin-bottom: 22px; }
.post-bottom { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.read-post { color: var(--blue); }
.read-post span { margin-left: 10px; }
.about-section { padding: 28px 30px 22px; border-radius: 12px; background: var(--mist); align-self: start; }
.about-section .eyebrow { font-size: 9px; margin-bottom: 12px; }
.about-section h2 { font-size: 26px; margin-bottom: 17px; }
.about-section p:not(.eyebrow) { color: #56667e; font-size: 12px; line-height: 1.85; margin-bottom: 13px; }
.about-signature { display: flex; align-items: center; justify-content: space-between; color: var(--blue); padding-top: 7px; font: italic 24px var(--serif); }
.about-star { font: 24px var(--sans); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); min-height: 86px; color: var(--muted); font-size: 10px; }
.footer-note { font: italic 12px var(--serif); }
.site-footer a span { margin-left: 8px; }
.article-main { max-width: 720px; margin: 60px auto 80px; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 46px; }
.back-link:hover { color: var(--blue); }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 30px; }
.article-header h1 { font-size: clamp(38px, 5vw, 54px); margin: 15px 0 22px; }
.article-meta { display: flex; gap: 16px; color: var(--muted); font: 11px var(--mono); }
.article-body { max-width: 640px; color: #495a71; font-size: 16px; line-height: 1.95; }
.article-body p { margin-bottom: 24px; }
.article-body .article-lead { color: var(--ink); font: 25px/1.6 var(--serif); }
.article-body h2 { color: var(--ink); margin: 36px 0 16px; font-size: 29px; }
.article-body ul { padding-left: 22px; margin-bottom: 26px; }
.article-body li { padding-left: 5px; margin-bottom: 9px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.article-signoff { color: var(--blue); font: italic 24px var(--serif); margin-top: 36px; }
.article-next { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); margin-top: 46px; font-size: 12px; color: var(--blue); }
@media (min-width: 1450px) { .site-shell { max-width: 1280px; } .hero { gap: 110px; } }
@media (max-width: 1000px) {
  .site-shell { padding: 0 36px; }
  .hero { grid-template-columns: 1fr 220px; gap: 38px; padding: 66px 0 70px; }
  .notebook { width: 216px; }
  .notebook-cover { height: 260px; padding: 22px 18px 20px; }
  .notebook-monogram { font-size: 126px; }
  .notebook-bottom { font-size: 14px; }
  .notebook-top { font-size: 6px; }
  .bookmark { right: 54px; }
  .domain-link { display: none; }
  .lower-grid { gap: 32px; }
  .muted-label { display: none; }
  .about-section { padding: 25px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .site-shell { padding: 0 24px; }
  .site-header { min-height: 86px; gap: 18px; }
  .wordmark { gap: 9px; font-size: 17px; }
  .brand-mark { width: 36px; height: 39px; font-size: 27px; }
  .brand-caption { font-size: 8px; }
  .main-nav { gap: 20px; font-size: 12px; }
  .main-nav a { padding: 14px 0; }
  .hero { grid-template-columns: 1fr; padding: 52px 0 48px; gap: 0; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { font-size: clamp(35px, 7.8vw, 52px); letter-spacing: -1.2px; }
  .hero-description { font-size: 14px; }
  .notebook { display: none; }
  .hero-actions { gap: 22px; }
  .section-heading { display: block; margin-bottom: 19px; }
  h2 { font-size: 27px; }
  .section-description { margin: 11px 0 0; font-size: 12px; }
  .directory-toolbar { padding: 10px 17px; gap: 12px; }
  .directory-caption { font-size: 8px; }
  .empty-state { padding: 27px 18px; }
  .lower-grid { grid-template-columns: 1fr; gap: 36px; margin: 45px 0; }
  .post-card h3 { font-size: 24px; }
  .post-meta { font-size: 8px; gap: 10px; }
  .about-section { padding: 26px; }
  .about-section p:not(.eyebrow) { max-width: 380px; font-size: 13px; }
  .site-footer { min-height: 78px; gap: 12px; font-size: 10px; }
  .footer-note { display: none; }
  .app-grid { grid-template-columns: 1fr; padding: 16px; }
  .search-field input { width: 170px; font-size: 11px; }
  .article-main { margin: 35px auto 50px; }
  .back-link { margin-bottom: 30px; }
  .article-body { font-size: 15px; }
  .article-header h1 { font-size: 40px; }
}
@media (max-width: 370px) {
  .site-shell { padding: 0 18px; }
  .main-nav { gap: 14px; }
  .brand-caption { display: none; }
  .hero-actions { gap: 16px; }
  .button { gap: 17px; padding: 12px 15px; }
  .directory-caption { display: none; }
  .search-field input { width: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
