@font-face {
  font-family: Newsreader;
  src: url("./fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("./fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --font-site: "Segoe UI", "Trebuchet MS", sans-serif;
  --font-heading: var(--font-site);
  --page: #fcfaf9;
  --surface: #fffefd;
  --ink: #242125;
  --muted: #655e64;
  --rule: #e6dddd;
  --shadow: 0 14px 36px rgb(48 25 33 / 11%);
  --accent-light: #842943;
  --accent-dark: #efa5b8;
  --tint-light: #f5e8ec;
  --tint-dark: #37242e;
  --accent: var(--accent-light);
  --tint: var(--tint-light);
  color-scheme: light;
}
:root[data-palette="indigo"] {
  --accent-light: #3a469c;
  --accent-dark: #aeb9ff;
  --tint-light: #e9ecfa;
  --tint-dark: #272d4c;
}
:root[data-typeface="system"] { --font-site: system-ui, sans-serif; }
:root[data-typeface="serif"] { --font-site: Georgia, Cambria, serif; }
:root[data-typeface="editorial"] {
  --font-site: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-heading: Newsreader, Georgia, serif;
}
[data-typeface="editorial"] h1,
[data-typeface="editorial"] .section-header h2,
[data-typeface="editorial"] .work h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -.035em;
}
:root[data-theme="dark"] {
  --page: #171519;
  --surface: #211e24;
  --ink: #f0edf1;
  --muted: #c0b6c2;
  --rule: #3b343f;
  --shadow: 0 14px 36px rgb(0 0 0 / 33%);
  --accent: var(--accent-dark);
  --tint: var(--tint-dark);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --page: #171519;
    --surface: #211e24;
    --ink: #f0edf1;
    --muted: #c0b6c2;
    --rule: #3b343f;
    --shadow: 0 14px 36px rgb(0 0 0 / 33%);
    --accent: var(--accent-dark);
    --tint: var(--tint-dark);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.65 var(--font-site);
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1060px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; transform: translateY(-200%); z-index: 10; padding: .5rem 1rem; background: var(--surface); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.wordmark { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .45rem; color: var(--accent); background: var(--tint); line-height: 1; font-size: .95rem; }
nav { margin-left: auto; display: flex; gap: clamp(1rem, 2.8vw, 2rem); }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a:hover, .icon-button:hover { color: var(--accent); }
.appearance { position: relative; display: flex; align-items: center; gap: .15rem; }
.icon-button { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .4rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; list-style: none; }
.icon-button:hover, details[open] .icon-button { background: var(--tint); }
.icon-button::-webkit-details-marker { display: none; }
.theme-icon { width: .9rem; height: .9rem; border-radius: 50%; display: block; }
[data-icon="moon"] .theme-icon { box-shadow: -.22rem .14rem 0 currentColor; margin-left: .24rem; margin-top: -.14rem; }
[data-icon="sun"] .theme-icon { border: 1.5px solid currentColor; box-shadow: 0 -.45rem 0 -.32rem, 0 .45rem 0 -.32rem, -.45rem 0 0 -.32rem, .45rem 0 0 -.32rem; }
.settings-icon { display: grid; width: .95rem; gap: .2rem; }
.settings-icon i { display: block; height: 1px; background: currentColor; position: relative; }
.settings-icon i::after { content: ""; position: absolute; width: .25rem; height: .25rem; border-radius: 50%; background: currentColor; left: 25%; top: -1.5px; }
.settings-icon i:nth-child(2)::after { left: 66%; }
.settings-panel { position: absolute; z-index: 2; top: 2.9rem; right: 0; width: min(19rem, calc(100vw - 2rem)); padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: .65rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem .8rem; }
.settings-panel label { font-size: .9rem; color: var(--muted); }
.settings-panel select { width: 100%; min-width: 0; border: 1px solid var(--rule); border-radius: .35rem; background: var(--page); color: var(--ink); padding: .25rem .45rem; font-size: .9rem; }
.hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 7vw, 5.7rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17.5rem); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { margin: 0; font-size: .83rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3, p, ul { margin-top: 0; }
h1 { margin: .65rem 0 1rem; font-size: clamp(3.65rem, 9vw, 6.8rem); font-weight: 640; letter-spacing: -.08em; line-height: .99; }
.lede { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.48; max-width: 33rem; margin-bottom: 1.65rem; color: var(--muted); }
.profile-links, .work-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; font-weight: 600; }
.portrait-frame {
  aspect-ratio: 1;
  width: 100%;
  max-width: 15rem;
  margin: 0;
  justify-self: end;
  border: 1px solid var(--rule);
  border-radius: .85rem;
  overflow: hidden;
  background: var(--tint);
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 55%);
  transform: scale(var(--photo-zoom, 1.92));
  transform-origin: var(--photo-origin, 44% 51%);
}
.section { border-top: 1px solid var(--rule); padding-block: 2.5rem 3.8rem; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-header h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.22rem); line-height: 1.2; letter-spacing: -.038em; }
.work { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.75rem; padding-block: 1.7rem; }
.work + .work { border-top: 1px solid var(--rule); }
.work-meta { display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; color: var(--muted); margin: .15rem 0 0; }
.work-meta span:first-child { color: var(--accent); font-weight: 650; font-size: 1rem; }
.work h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.021em; line-height: 1.35; margin: 0 0 .32rem; }
.work h3 a { color: var(--ink); text-decoration: none; }
.work h3 a:hover { color: var(--accent); text-decoration: underline; }
.work p:not(.work-meta) { max-width: 43rem; }
.authors { font-size: .9rem; color: var(--muted); margin-bottom: .65rem; }
.work-links { margin-top: -.25rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-top: .75rem; }
.about-intro { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.45; color: var(--accent); }
.prose { color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; padding: 1.25rem 0 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
@media (max-width: 730px) {
  .shell { width: calc(100% - 2.75rem); }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 3.1rem; }
  .portrait-frame { width: min(10.5rem, 60vw); justify-self: start; }
  .work { grid-template-columns: 1fr; gap: .45rem; }
  .work-meta { flex-direction: row; align-items: baseline; gap: .65rem; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 390px) {
  .header-inner { gap: .5rem; }
  .wordmark > span:last-child { display: none; }
}
