@layer reset, tokens, base, components, pages, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; }
}
@layer tokens {
  :root {
    color-scheme: light;
    --pale-blue: #a9cef4; --slate: #36494e; --black: #000; --steel: #7ea0b7; --muted-blue: #597081;
    --paper: #f4f6f5; --ink: #17262c; --muted: #526570; --line: #ced8dc; --wash: #e7edef;
    --accent: #405e72; --panel: #36494e; --panel-ink: #f4f6f5; --focus: #315e7d;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --serif: Georgia, 'Times New Roman', serif; --mono: 'SFMono-Regular', Consolas, monospace;
    --space-section: clamp(64px, 8vw, 108px);
  }
  :root[data-theme='dark'] {
    color-scheme: dark; --paper: #172328; --ink: #edf2f4; --muted: #afc0ca; --line: #3d515a;
    --wash: #22343c; --accent: #a9cef4; --panel: #2b4049; --focus: #a9cef4;
  }
}
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  a:hover { color: var(--accent); }
  button { cursor: pointer; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
  ::selection { background: var(--pale-blue); color: #17262c; }
  h1, h2, h3 { font-weight: 500; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
  h1 { font-size: clamp(52px, 6.8vw, 91px); }
  h2 { font-size: clamp(34px, 3.7vw, 47px); }
  h3 { font-size: 23px; letter-spacing: -.025em; }
  em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
  p { text-wrap: pretty; }
  [hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}
@layer components {
  .shell { max-width: 1280px; padding-inline: 56px; margin-inline: auto; }
  .skip-link { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 12px 20px; background: var(--paper); &:focus { top: 16px; } }
  .site-header { display: flex; align-items: center; gap: 32px; min-height: 114px; border-bottom: 1px solid var(--line);
    nav { display: flex; gap: 30px; margin-left: auto; }
    nav a { text-decoration: none; font-size: 14px; padding: 10px 0; position: relative; color: var(--muted); }
    nav a[aria-current='page'] { color: var(--ink); &::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); left: calc(50% - 2px); } }
  }
  .brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 21px; letter-spacing: -.8px; font-weight: 650; white-space: nowrap;
    svg { width: 34px; height: 40px; color: var(--accent); }
    .brand-light { font-weight: 400; }
    .brand-dot { color: var(--muted-blue); }
  }
  .theme-toggle { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; &:hover { background: var(--wash); } }
  .eyebrow { font-family: var(--mono); font-size: 10px; line-height: 1.8; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted); }
  .small-line { display: inline-block; vertical-align: middle; height: 1px; width: 24px; background: var(--accent); margin-right: 9px; }
  .mono { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; }
  .button { display: inline-flex; align-items: center; gap: 35px; padding: 13px 21px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 3px; &:hover { color: var(--paper); background: var(--accent); border-color: var(--accent); } }
  .button-outline { background: transparent; color: var(--ink); }
  .text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--line); &:hover { border-color: var(--accent); } }
  .section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 43px; .eyebrow { margin-bottom: 19px; } }
  .tag { display: inline-block; border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .15px; color: var(--muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 9px; }
  .quiet { color: var(--muted); font-size: 13px; }
  .site-footer { border-top: 1px solid var(--line); margin-top: var(--space-section); padding-block: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px;
    .footer-name { font-weight: 550; font-size: 15px; text-decoration: none; }
    p { font-size: 12px; color: var(--muted); margin-top: 4px; }
  }
  .site-footer-simple { padding-block: 24px; .footer-bottom { border-top: 0; padding-top: 0; margin-top: 0; } }
  .social-links { display: flex; flex-wrap: wrap; gap: 26px; align-items: start; padding-top: 3px; a { font-size: 12px; text-decoration: none; } span { margin-left: 5px; } }
  .footer-bottom { width: 100%; display: flex; justify-content: space-between; padding-top: 26px; margin-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .4px; a { text-decoration: none; } }
  .page-intro { padding-block: 78px 64px; max-width: 940px; .eyebrow { margin-bottom: 24px; } h1 { margin-bottom: 32px; font-size: clamp(46px, 6.4vw, 78px); } }
  .lead { max-width: 670px; font-size: 20px; line-height: 1.7; color: var(--muted); }
  .content-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 22px; }
  .prose { font-size: 17px; line-height: 1.85; p { margin-bottom: 22px; color: var(--muted); } h2 { font-size: 32px; line-height: 1.3; margin-block: 48px 23px; &:first-child { margin-top: 0; } } h3 { margin-block: 36px 18px; } ul { padding-left: 22px; color: var(--muted); } li { padding-left: 4px; margin-block: 8px; } }
}
@layer pages {
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 88px 86px;
    &::before {
      content: '';
      position: absolute;
      z-index: 0;
      width: clamp(560px, 65vw, 800px);
      aspect-ratio: 1;
      right: -100px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--accent);
      mask: url('propeller.svg') center / contain no-repeat;
      opacity: .055;
      pointer-events: none;
    }
  }
  .hero-copy { position: relative; z-index: 1; max-width: 940px; h1 { font-size: clamp(64px, 8.5vw, 112px); margin-block: 25px 32px; } .intro { font-size: 20px; margin-bottom: 8px; letter-spacing: -.5px; } }
  .hero-description { color: var(--muted); font-size: 20px; line-height: 1.8; max-width: 640px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 27px; margin-top: 29px; }
  .location { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 41px; letter-spacing: .3px; span { font-size: 17px; margin-right: 7px; vertical-align: middle; } }
  .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 33px;
    article { padding-right: 27px; border-right: 1px solid var(--line); &:last-child { border: 0; padding-right: 0; } }
    .card-number { display: block; font-family: var(--serif); color: var(--accent); font-style: italic; font-size: 27px; margin-bottom: 28px; }
    h3 { margin-bottom: 15px; }
    p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
  }
  .journal-section { display: grid; grid-template-columns: 1.4fr 1fr; gap: 105px; }
  .journal-main { h2 { font-size: 55px; margin-block: 22px; } p:not(.eyebrow) { max-width: 370px; font-size: 15px; color: var(--muted); margin-bottom: 24px; } }
  .coming-soon { display: block; margin-top: 25px; font-family: var(--mono); text-transform: uppercase; font-size: 9px; letter-spacing: 1px; color: var(--muted); &::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-blue); margin-right: 8px; vertical-align: 1px; } }
  .elsewhere { background: var(--wash); padding: 36px; border-radius: 3px; align-self: center; h3 { font-size: 28px; margin-block: 20px 15px; } p:not(.quiet) { font-size: 14px; color: var(--muted); } .quiet { margin-top: 21px; font-family: var(--mono); font-size: 10px; } }
  .elsewhere-links { margin-top: 20px; a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; } }
  .uses-teaser { position: relative; background: var(--wash); padding: 38px 42px; border-radius: 3px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; .eyebrow { grid-column: 1/-1; } h2 { font-size: 35px; } .button { grid-column: 2; grid-row: 2; } }
  .about-grid { display: grid; grid-template-columns: 250px 1fr; gap: 110px; border-top: 1px solid var(--line); padding-top: 60px; }
  .about-aside { .eyebrow { margin-block: 23px 8px; } p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-bottom: 18px; } }
  .about-portrait { aspect-ratio: 1; object-fit: cover; width: 250px; height: auto; border-radius: 3px; filter: saturate(.7); }
  .pull-quote { border-block: 1px solid var(--line); padding-block: 34px; margin-block: 40px; font-size: 35px; letter-spacing: -1px; line-height: 1.4; }
  .timeline { > div { border-top: 1px solid var(--line); padding-top: 22px; } span { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); } h3 { margin-block: 7px 5px; font-size: 22px; } p { font-size: 14px; } }
  .uses-layout { display: grid; grid-template-columns: 230px 1fr; gap: 95px; border-top: 1px solid var(--line); padding-top: 50px; }
  .section-nav { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 30px; a { font-size: 12px; text-decoration: none; color: var(--muted); } .uses-tech { margin-top: 25px; color: var(--accent); } }
  .uses-category { margin-bottom: 56px; scroll-margin-top: 35px; &:last-child { margin-bottom: 0; } dl > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding-block: 21px; border-bottom: 1px solid var(--line); } dt { font-size: 15px; font-weight: 500; } dd { color: var(--muted); font-size: 13px; } }
  .category-title { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; h2 { font-size: 31px; } }
  .empty-notebook { border-block: 1px solid var(--line); padding-block: 60px; display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 65px; h2 { margin-block: 18px 24px; } p { color: var(--muted); max-width: 470px; margin-bottom: 24px; } }
  .notebook-mark { background: var(--wash); aspect-ratio: 1.15; display: grid; place-content: center; position: relative; font-family: var(--mono); font-size: 75px; color: var(--muted-blue); border-radius: 3px; span { position: absolute; bottom: 16%; left: 44%; font-size: 36px; } }
  .writing-topics { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 30px; }
  .article-intro { text-align: center; padding-block: 65px 45px; border-bottom: 1px solid var(--line); h1 { font-size: clamp(44px, 5.8vw, 70px); margin-block: 26px; } .eyebrow { margin-top: 45px; } .lead { margin-inline: auto; font-size: 18px; } }
  .article-meta { font-size: 12px; color: var(--muted); margin-top: 26px; span { margin-inline: 10px; } }
  .article-featured { max-width: 1040px; margin: 40px auto 0;
    img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
  }
  .article-featured figcaption, .article-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
  .article-figure { margin-block: 32px; img { width: 100%; height: auto; border-radius: 4px; } a { display: block; } }
  .article-body { max-width: 680px; margin: 50px auto 0; .article-opening { color: var(--ink); font-size: 21px; } blockquote { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--steel); font: italic 26px/1.55 var(--serif); } pre { background: var(--panel); color: #f4f6f5; padding: 24px; overflow-x: auto; border-radius: 3px; font: 13px/1.9 var(--mono); } .code-comment { color: #c5d9e2; } hr { border: 0; border-top: 1px solid var(--line); margin-block: 40px; } }
  .design-section { padding-block: 40px; border-top: 1px solid var(--line); h2 { margin-bottom: 24px; font-size: 34px; } p { color: var(--muted); max-width: 740px; } }
  .swatches { display: grid; grid-template-columns: repeat(5,1fr); gap: 15px; margin-top: 30px; span { display: block; height: 110px; border-radius: 3px; } strong, small { display: block; font-family: var(--mono); font-size: 12px; margin-top: 10px; } small { color: var(--muted); font-family: var(--sans); margin-top: 3px; } }
  .review-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; a { padding: 20px; background: var(--wash); text-decoration: none; } }
}
@layer responsive {
  @media (min-width: 1350px) { .shell { padding-inline: 50px; } }
  @media (max-width: 1000px) { .shell { padding-inline: 36px; } .hero-copy .eyebrow { font-size: 9px; letter-spacing: 1px; } .journal-section { gap: 65px; } .about-grid { gap: 60px; grid-template-columns: 220px 1fr; } .uses-layout { gap: 40px; grid-template-columns: 190px 1fr; } }
  @media (max-width: 760px) {
    .shell { padding-inline: 24px; } .site-header { flex-wrap: wrap; gap: 0; padding-block: 21px 16px; min-height: 0; } .brand { font-size: 20px; } .theme-toggle { margin-left: auto; order: 1; } .site-header nav { order: 2; width: 100%; justify-content: space-between; margin-top: 18px; gap: 20px; } .site-header nav a { font-size: 13px; }
    .hero { padding-block: 48px 60px; &::before { width: 470px; right: -245px; opacity: .055; } } .hero h1 { font-size: clamp(58px, 10vw, 80px); } .hero-copy .eyebrow { font-size: 9px; } .hero h1 { margin-block: 22px 24px; } .hero-copy .intro { font-size: 18px; } .hero-description { font-size: 16px; max-width: 470px; } .location { margin-top: 25px; }
    .section-heading { align-items: start; flex-direction: column; gap: 20px; } .section-heading .eyebrow { margin-bottom: 16px; } .work-grid { grid-template-columns: 1fr; gap: 29px; article { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 29px; } .card-number { margin-bottom: 12px; } p { max-width: 460px; margin-bottom: 17px; } }
    .journal-section { grid-template-columns: 1fr; gap: 40px; } .journal-main h2 { font-size: 45px; } .elsewhere { padding: 28px; } .uses-teaser { padding: 28px; display: block; h2 { margin-block: 18px 25px; font-size: 31px; } }
    .site-footer { gap: 25px; } .social-links { width: 100%; } .footer-bottom { gap: 20px; align-items: start; } .footer-bottom > span { max-width: 190px; }
    .page-intro { padding-block: 48px; h1 { font-size: clamp(44px, 8.8vw, 66px); } .lead { font-size: 18px; } }
    .about-grid { grid-template-columns: 1fr; gap: 45px; padding-top: 35px; } .about-portrait { width: 160px; float: left; margin-right: 25px; } .about-aside { .eyebrow { margin-top: 8px; } } .prose { font-size: 16px; } .pull-quote { font-size: 31px; }
    .uses-layout { grid-template-columns: 1fr; gap: 38px; padding-top: 30px; } .section-nav { position: static; gap: 10px; .uses-tech { margin-top: 8px; } } .uses-category dl > div { grid-template-columns: 1fr; gap: 5px; padding-block: 18px; }
    .empty-notebook { grid-template-columns: 1fr; gap: 32px; padding-block: 35px; } .notebook-mark { aspect-ratio: 2; font-size: 55px; span { left: 47%; bottom: 8%; } } .empty-notebook h2 { font-size: 38px; } .writing-topics { gap: 10px; }
    .article-intro { padding-top: 40px; } .article-meta { font-size: 11px; } .article-body pre { padding: 18px; font-size: 12px; }
    .swatches { grid-template-columns: repeat(3,1fr); } .review-links { grid-template-columns: 1fr; }
  }
  @media (max-width: 380px) { .shell { padding-inline: 20px; } .hero-actions { gap: 20px; } .button { gap: 18px; padding-inline: 16px; } .hero-copy .eyebrow { letter-spacing: .6px; font-size: 8px; } .about-portrait { width: 110px; margin-right: 16px; } .about-aside .eyebrow { font-size: 9px; } }
}

@layer pages {
.post-list { border-top: 1px solid var(--line); }
.post-summary { padding-block: 34px; border-bottom: 1px solid var(--line); }
.post-summary h2 { font-size: clamp(27px, 3vw, 36px); margin-block: 12px 16px; }
.post-summary h2 a { text-decoration: none; }
.post-summary > p:not(.eyebrow) { max-width: 680px; color: var(--muted); }
.post-summary .tags { margin-top: 18px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px; }
.latest-post { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.latest-post h3 { margin-block: 10px 14px; }
.article-topics { justify-content: center; margin-top: 32px; }
.article-body img { max-width: 100%; }
}
