@font-face {
  font-family: Sora;
  src: url('/assets/fonts/sora.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --surface: #fffdf7;
  --ink: #202825;
  --muted: #56615c;
  --line: #48524b;
  --yellow: #f6df72;
  --pink: #ee9db6;
  --mint: #d7e9d2;
  --peach: #f5d8c7;
  --lilac: #e3d8f2;
  --blue: #d7e6f1;
  --sun: #f8e5a9;
  --rose: #efd5dc;
  --periwinkle: #d8dfef;
  --apricot: #f6ddc0;
  --display: Sora, 'Arial Black', sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --content: 980px;
  --reading: 960px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
::selection { background: var(--mint); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: .19em; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.045em; }
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); margin: 0 0 .42em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }
mark { background: var(--yellow); color: inherit; padding: 0 .09em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mark--blue { background: var(--blue); }
.mark--pink { background: var(--pink); }
small { font-size: .82rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
code { font-weight: 700; font-size: .91em; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .5rem .8rem; background: var(--yellow); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--ink); }
.header-inner, .footer-inner { max-width: var(--wide); margin: 0 auto; padding: 1.05rem clamp(1.25rem, 4vw, 2.25rem); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.identity { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.identity img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); }
.identity strong { font: 700 1rem/1.15 var(--display); letter-spacing: -.035em; }
.identity span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.25; margin-top: .18rem; }
.site-nav ul { list-style: none; display: flex; gap: .45rem; align-items: center; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .45rem .75rem; font-size: .88rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current=page] { background: var(--yellow); border-color: var(--ink); }
.page-shell { max-width: var(--content); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem 7rem; }
.reading-shell { max-width: var(--reading); }
.eyebrow { font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.lead { font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.55; color: var(--muted); max-width: 43rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; }
.section-heading a { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.text-link { font-weight: 700; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.home-hero-copy h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); max-width: 12ch; }
.home-hero-copy h1 mark { display: inline-block; margin: 2px 0; }
.home-hero-copy .lead { font-size: 1.13rem; max-width: 33rem; }
.home-hero-photo { margin: 0; border: 1px solid var(--ink); background: var(--blue); }
.home-hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% center; }
.home-hero-photo figcaption { padding: .55rem .8rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.home-action { margin: 2rem 0 0; }
.home-note { color: var(--muted); font-size: .92rem; }
.topic-strip { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.1rem 0 0; }
.topic-strip .tag { font-size: .82rem; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.feature-item h3 { font-size: clamp(1.32rem, 2.4vw, 1.7rem); }
.feature-item p { color: var(--muted); max-width: 45rem; margin: .3rem 0 0; }
.meta { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }

.page-intro { margin-bottom: 3rem; }
.page-intro h1 { max-width: 860px; }
.page-intro .lead { margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy h1 { font-size: clamp(2.45rem, 5vw, 3.65rem); }
.about-copy p { max-width: 41rem; }
.about-aside img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); }
.about-aside h2 { font: 700 .76rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .1em; margin: 1.5rem 0 .7rem; }
.social-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.social-list li { border-bottom: 1px solid var(--line); padding: .45rem 0; }
.social-list a { font-size: .9rem; font-weight: 700; }

.tag { display: inline-block; padding: .2rem .58rem; background: var(--surface); border: 1px solid var(--ink); color: var(--ink); font-size: .76rem; font-weight: 700; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.tag--security { background: var(--peach); }
.tag--seo { background: var(--mint); }
.tag--web { background: var(--lilac); }
.tag--ai { background: var(--blue); }
.tag--writing { background: var(--yellow); }
.tag--apis { background: var(--lilac); }
.tag--tools { background: var(--blue); }
.tag--conferences { background: var(--sun); }
.tag--hacking { background: var(--rose); }
.tag--bounty { background: var(--periwinkle); }
.tag--google { background: var(--apricot); }
a.tag:hover { background: var(--yellow); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.article-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.article-item { padding: 1.85rem 0 2rem; border-bottom: 1px solid var(--line); }
.article-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.article-item h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin: .8rem 0 .32rem; }
.article-item h2 a { text-decoration: none; }
.article-item h2 a:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.article-item p { max-width: 42rem; color: var(--muted); margin-bottom: .6rem; }
.read-link { font-size: .88rem; font-weight: 700; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .9rem; font-weight: 700; }

.back-link { font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.article-header { margin: 2.2rem 0 2.5rem; }
.date-stamp { display: inline-block; padding: .38rem .7rem; border: 1px solid var(--ink); background: var(--yellow); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.article-header h1 { font-size: clamp(2.45rem, 5.5vw, 4.3rem); margin: .55em 0 .48em; }
.article-body { border-top: 1px solid var(--line); padding-top: 2rem; font-size: 1.075rem; }
.article-body h2 { margin: 2.1em 0 .55em; }
.article-body h3 { margin: 1.7em 0 .4em; }
.article-body p, .article-body ul { margin-bottom: 1.4em; }
.article-body li { padding-left: .2rem; margin-bottom: .3rem; }
.article-body img { height: auto; margin: 1.6rem 0; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { margin-bottom: .45rem; }
.article-body figcaption { color: var(--muted); font-size: .85rem; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.8rem 0; font-size: .94rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.article-body blockquote { margin: 2rem 0; padding: .1rem 0 .1rem 1.3rem; border-left: 4px solid var(--pink); color: var(--muted); }
.callout { border: 1px solid var(--ink); border-left: 6px solid var(--yellow); background: var(--surface); margin: 2rem 0; padding: 1rem 1.3rem .2rem; }
.callout strong:first-child { display: block; font: 700 .77rem/1.4 var(--body); letter-spacing: .09em; text-transform: uppercase; margin-bottom: .65rem; }
.code-block, .article-body pre { overflow-x: auto; border: 1px solid var(--ink); background: #e9ede7; padding: 1.2rem 1.35rem; margin: 1.7rem 0 2rem; font-size: .88rem; line-height: 1.7; }
.code-block code, .article-body pre code { font-weight: 400; font-size: inherit; }
.article-end { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.4rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.project-card { border: 1px solid var(--ink); background: var(--surface); display: flex; flex-direction: column; }
.project-card-head { padding: .7rem 1rem; border-bottom: 1px solid var(--ink); font: 700 .78rem/1.4 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.project-card:nth-child(4n + 1) .project-card-head { background: var(--yellow); }
.project-card:nth-child(4n + 2) .project-card-head { background: var(--lilac); }
.project-card:nth-child(4n + 3) .project-card-head { background: var(--mint); }
.project-card:nth-child(4n + 4) .project-card-head { background: var(--peach); }
.project-card-body { padding: 1.3rem 1.2rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-card h2 { font-size: 1.45rem; }
.project-card p { color: var(--muted); font-size: .96rem; }
.project-card a { margin-top: auto; font-size: .88rem; font-weight: 700; align-self: flex-start; }
.project-note { color: var(--muted); font-size: .86rem; margin-top: 1.5rem; }

.type-option { padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.type-option h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .55rem; }
.type-option p { max-width: 43rem; }
.type-option .eyebrow { margin-bottom: .8rem; }
.type-option--a h2 { font-family: Sora, sans-serif; }
.type-option--a p { font-family: 'DM Sans', sans-serif; }
.type-option--b h2 { font-family: Archivo, sans-serif; letter-spacing: -.035em; }
.type-option--b p { font-family: 'Source Sans 3', sans-serif; }
.type-option--c h2, .type-option--c p { font-family: 'IBM Plex Sans', sans-serif; letter-spacing: -.035em; }

.site-footer { border-top: 1px solid var(--ink); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-name { font: 700 1.05rem/1.3 var(--display); letter-spacing: -.035em; text-decoration: none; }
.footer-inner p { color: var(--muted); font-size: .88rem; margin: .45rem 0 0; max-width: 27rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; }
.footer-social a { font-size: .85rem; font-weight: 700; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: .2rem; flex-wrap: wrap; }
  .site-nav a { padding: .3rem .55rem; }
  .page-shell { padding-top: 3.2rem; padding-bottom: 4.5rem; }
  .home-hero { grid-template-columns: 1fr; gap: 2.2rem; }
  .home-hero-copy h1 { max-width: 14ch; }
  .home-hero-photo img { aspect-ratio: 4 / 3; object-position: 68% center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { display: grid; grid-template-columns: 145px 1fr; align-items: start; gap: 0 1.4rem; }
  .about-aside img { grid-row: 1 / 3; }
  .about-aside h2 { margin-top: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .header-inner { padding-inline: 1rem; }
  .page-shell { padding-inline: 1.15rem; }
  .article-item-top { flex-direction: column; gap: .55rem; }
  .article-item h2 { margin-top: .55rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .1rem; }
  .about-aside { grid-template-columns: 1fr; }
  .about-aside img { grid-row: auto; width: 200px; }
  .about-aside h2 { margin-top: 1.3rem; }
}
