@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+Ethiopic:wght@400;500;600&family=Noto+Serif+Ethiopic:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600;700&display=swap");

:root {
  --bg: #0d0d0c;
  --surface: #141412;
  --surface-soft: #191916;
  --text: #e7e3da;
  --muted: #a7a39a;
  --faint: #706d66;
  --accent: #c9a66b;
  --line: #292824;
  --line-light: #3a3832;
  --serif: Georgia, "Times New Roman", "Noto Serif Ethiopic", serif;
  --sans: Arial, "Noto Sans Ethiopic", sans-serif;
  --mono: Arial, "Noto Sans Ethiopic", sans-serif;
  --content: 980px;
  --reading: 720px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .16;
  background-image: linear-gradient(rgba(231,227,218,.045) 1px, transparent 1px);
  background-size: 100% 5px;
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; transition: color .18s ease, border-color .18s ease, opacity .18s ease; }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.wrapper { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.page-content { flex: 1 0 auto; min-height: 0; padding: 0 0 72px; }
.site-footer { margin-top: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 0 18px; }
.site-logo, .footer-logo { color: var(--accent); font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: .02em; }
.site-logo span, .footer-logo { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-external { color: var(--accent); }
.site-nav span, .link-row span, .text-link span, .project-actions span, .item-action span { color: var(--accent); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 22px 0 35px; border-top: 1px solid var(--line); }
.footer-inner p { margin: 3px 0 0; color: var(--faint); font-family: var(--mono); font-size: .67rem; letter-spacing: .04em; }
.footer-links { display: flex; gap: 18px; font-family: var(--sans); font-size: 9px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { justify-self: end; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
p { color: var(--muted); }
.label, .post-meta, .project-category, .project-stack, .section-index, .item-number, .note-item time, .writing-date {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label { position: relative; margin-bottom: 16px; padding-left: 13px; color: var(--faint); font-family: var(--sans); font-size: 10px; letter-spacing: .16em; }
.label::before { position: absolute; left: 0; color: var(--accent); content: "።"; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
code { padding: .1em .3em; background: var(--surface); color: var(--accent); font-family: var(--mono); font-size: .84em; }

.intro-block { max-width: none; padding: 0 0 0; border-bottom: 1px solid var(--line); }
.notebook-strip { display: flex; justify-content: space-between; padding: 9px 0 8px; border-bottom: 1px solid var(--line); color: var(--faint); font-family: var(--sans); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.home-cover, .about-cover { display: flex; align-items: end; min-height: 235px; margin: 0 -24px; padding: 28px 36px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(20,20,18,.88), rgba(20,20,18,.15)), linear-gradient(135deg, #34332f, #171715 55%, #292721); }
.home-cover { margin-bottom: 22px; }
.home-cover span, .about-cover span { color: #b7b1a7; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.intro-block > .label { margin: 27px 0 0; }
.intro-block h1 { max-width: 850px; margin: 0; font-size: 31px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
.intro-block .alias { margin: 2px 0 0; color: var(--accent); font-size: 14px; }
.identity-role { margin: 12px 0 0; color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.intro-copy { max-width: 650px; margin-top: 14px; }
.intro-copy p { margin-bottom: 0; color: #bdb9b0; font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 14px; padding-bottom: 31px; font-family: var(--sans); font-size: 11px; }
.link-row a { border-bottom: 1px solid var(--line-light); padding-bottom: 4px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; }
.social-icon { width: 14px; height: 14px; fill: currentColor; }
.social-icon-stroke { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.home-section { padding: 28px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.section-label-row { display: block; margin-bottom: 16px; }
.section-label-row .label { margin-bottom: 0; }
.section-index { display: none; }
.feature-essay { display: grid; grid-template-columns: 1.2fr .8fr; gap: 25px; align-items: start; }
.feature-media { position: relative; display: block; overflow: hidden; min-height: 190px; border: 1px solid var(--line); background: var(--surface); }
.feature-media.has-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-media:hover { border-color: var(--line-light); }
.placeholder-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: clamp(1.25rem, 3vw, 2.1rem); }
.placeholder-art::before, .placeholder-art::after { position: absolute; border: 1px solid var(--line-light); content: ""; }
.placeholder-art::before { width: 72%; height: 140%; transform: rotate(24deg); }
.placeholder-art::after { width: 140%; height: 72%; transform: rotate(-24deg); }
.placeholder-art span { position: relative; z-index: 1; padding: 0 18px; background: var(--surface); }
.placeholder-art i { position: absolute; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.placeholder-art b { position: absolute; right: 17px; bottom: 13px; color: var(--faint); font: 400 .65rem var(--mono); }
.feature-copy { padding-top: 3px; }
.feature-copy h2 { max-width: 18ch; margin: 0; font-size: 22px; line-height: 1.18; font-weight: 400; }
.feature-copy h2 a:hover { color: var(--accent); }
.feature-copy > p { max-width: 42ch; margin: 13px 0 0; font-size: 13px; }
.post-meta { display: flex; gap: 15px; margin: 9px 0 0; color: var(--faint); font-size: 10px; letter-spacing: .05em; }
.post-meta span { color: var(--accent); }
.post-meta time { color: var(--faint); }
.text-link, .section-end-link { display: inline-block; color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 0; font-family: var(--sans); font-size: 11px; }
.text-link:hover { border-color: var(--accent); }

.project-list, .writing-list, .notes-list { border-top: 1px solid var(--line); }
.section-note { margin: -7px 0 12px; color: var(--faint); font-size: 11px; }
.project-item, .writing-item, .note-item { display: grid; gap: 16px; padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.project-item { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; }
.item-number { color: var(--accent); padding-top: 1px; font-family: "Noto Serif Ethiopic", Georgia, serif; font-size: 13px; }
.project-item-main h2, .writing-item-main h2, .note-item h2 { margin: 0; font-size: 17px; font-weight: 400; }
.project-item-main > p:not(.project-category):not(.project-stack), .writing-item-main > p, .note-item > p { max-width: 62ch; margin: 3px 0 0; font-size: 12px; }
.project-category { display: none; }
.project-stack { margin: 5px 0 0; color: var(--faint); font-size: 9px; letter-spacing: .05em; }
.project-actions { padding-top: 3px; white-space: nowrap; font-family: var(--sans); font-size: 10px; }
.project-actions a, .item-action { color: var(--muted); }
.project-actions a:hover, .item-action:hover { color: var(--accent); }
.section-end-link { margin-top: 24px; }
.writing-item { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: baseline; }
.writing-date { color: var(--faint); font-size: 9px; white-space: nowrap; }
.writing-list-page { margin-top: 28px; }
.exploring-section h2 { display: none; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px 0; max-width: none; }
.topic-list span { color: var(--muted); font-size: 13px; }
.topic-list span:not(:last-child)::after { margin: 0 12px; color: var(--accent); content: "·"; }

.standard-page { max-width: var(--content); padding-top: 65px; }
.page-lede { max-width: 690px; margin-bottom: 28px; }
.page-lede h1 { margin-bottom: 14px; font-size: 31px; line-height: 1.1; font-weight: 400; }
.page-lede > p:last-child { max-width: 58ch; font-size: 14px; }
.project-list-page { margin-top: 0; }
.about-cover { min-height: 170px; margin: 0 -24px; }
.about-profile { display: flex; gap: 25px; align-items: start; padding: 25px 0; margin: 0 -24px 40px; border-bottom: 1px solid var(--line); }
.portrait-placeholder { display: grid; flex: 0 0 200px; place-items: center; width: 200px; height: 250px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); font: .65rem var(--sans); text-transform: uppercase; }
.portrait-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.about-intro h1 { margin: 0; font-size: 23px; font-weight: 400; }
.alias { margin: 8px 0 26px; color: var(--accent); font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.role { margin-bottom: 26px; color: var(--text); font-family: var(--sans); font-size: 1rem; white-space: nowrap; }
.lede { max-width: 64ch; font-size: 1rem; }
.page-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 88px; padding-top: 28px; border-top: 0; }
.page-columns section > p:not(.label) { max-width: 52ch; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

.post-page { max-width: var(--reading); padding-top: 62px; }
.post-header { max-width: 700px; margin-bottom: 54px; }
.post-header h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.post-header .post-meta { margin-bottom: 0; }
.post-cover { position: relative; width: 100%; min-height: 235px; margin: 0 0 60px; }
.post-cover-placeholder { overflow: hidden; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(20,20,18,.88), rgba(20,20,18,.15)), linear-gradient(135deg, #34332f, #171715 55%, #292721); }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border: 1px solid var(--line); }
.post-body { font-size: 1.08rem; }
.post-body p { margin-bottom: 1.5rem; }
.post-body h2 { margin: 3.1rem 0 1rem; font-size: 2rem; }
.post-body h3 { margin: 2.5rem 0 .85rem; font-size: 1.4rem; }
.post-body ul, .post-body ol { margin-bottom: 1.6rem; padding-left: 1.2rem; color: var(--muted); }
.post-body blockquote { margin: 2rem 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--accent); color: var(--text); }
pre { overflow-x: auto; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
pre, code { font-family: var(--mono); font-size: .83em; }
.post-body code { color: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 62px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-row span { color: var(--faint); font: .66rem var(--mono); }
.tag-row span:not(:last-child)::after { margin-left: 8px; color: var(--line-light); content: "·"; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 70px; padding-top: 0; }
.post-nav a { display: grid; gap: 6px; font-size: 1.1rem; }
.post-nav small { color: var(--accent); font: .65rem var(--mono); text-transform: uppercase; }
.post-nav .next { text-align: right; }
.empty-state { padding: 28px 0; color: var(--faint); }

@media (max-width: 800px) {
  .wrapper { width: min(var(--content), calc(100% - 40px)); }
  .page-content { padding-top: 0; }
  .standard-page { padding-top: 54px; }
  .feature-essay { grid-template-columns: 1fr; gap: 30px; }
  .feature-copy h2 { max-width: 18ch; }
  .project-item { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; }
  .project-actions { grid-column: 3; padding-top: 0; display: flex; gap: 18px; }
  .page-columns { gap: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrapper { width: min(var(--content), calc(100% - 28px)); }
  .header-inner { min-height: 0; align-items: center; }
  .site-nav { gap: 14px; font-size: .64rem; }
  .site-nav .nav-external { display: none; }
  .intro-block { padding: 42px 0 62px; }
  .intro-block h1 { font-size: 2.6rem; }
  .intro-copy p { font-size: 1rem; }
  .home-section { padding: 48px 0 58px; }
  .section-label-row { margin-bottom: 26px; }
  .project-item { grid-template-columns: 24px minmax(0, 1fr); gap: 11px; }
  .project-item-main { grid-column: 2; }
  .project-actions { grid-column: 2; }
  .writing-item { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .writing-item .item-action { grid-column: 2; justify-self: start; padding-top: 0; }
  .about-cover, .home-cover { margin-inline: -15px; }
  .about-profile { flex-direction: column; margin-inline: -15px; }
  .role { font-size: .78rem; letter-spacing: .05em; }
  .page-columns { grid-template-columns: 1fr; gap: 34px; }
  .portrait-placeholder { max-width: 240px; }
  .about-profile { margin-bottom: 62px; }
  .page-lede { margin-bottom: 28px; }
  .post-page { padding-top: 42px; }
  .post-header { margin-bottom: 38px; }
  .post-header h1 { font-size: 2.8rem; }
  .post-body { font-size: 1.02rem; }
  .post-nav { gap: 18px; }
  .post-nav a { font-size: .96rem; }
  .footer-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  .copyright { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
