@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #161616;
  --body: #3d3d3d;
  --muted: #595959;
  --rule: #ececea;
  --pill: #dcdcd8;
  --accent: #1f5f4a;
  --accent-hover: #123d2f;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img { display: block; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap { padding-top: 88px; padding-bottom: 64px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 { font-size: 64px; line-height: 1; margin: 0; }
h2 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }

.small { font-size: 15px; color: var(--muted); }

/* Sub pages only. The home page has no navigation bar. */
header.subnav { border-bottom: 1px solid var(--rule); }

header.subnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

header.subnav .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

header.subnav .home img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

header.subnav .trail { font-size: 14px; color: var(--muted); }

header.subnav + main.wrap { padding-top: 56px; }

/* Home */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro .portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.intro h1 { margin-top: 28px; }

.intro .bio {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 19px;
  color: var(--body);
}

.intro .bio em {
  font-family: var(--serif);
  font-size: 21px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pill);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.pills a:hover { border-color: var(--fg); }

.projects { margin-top: 80px; }
.projects h2 { text-align: center; margin-bottom: 12px; }

.project {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}

.project:last-child { border-bottom: 0; }
.project:hover { color: var(--fg); }
.project:hover .name { text-decoration: underline; text-underline-offset: 3px; }

.project img {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}

.project img.icon { border-radius: 24px; }

.project .text { flex: 1; min-width: 0; }
.project .name { display: block; font-weight: 600; font-size: 19px; }
.project .desc { display: block; color: var(--muted); }
.project .go { color: var(--accent); font-size: 20px; }

/* Press */
.press { margin-top: 72px; }
.press h2 { text-align: center; margin-bottom: 12px; }

.press-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}

.press-item:last-child { border-bottom: 0; }
.press-item:hover { color: var(--fg); }
.press-item:hover .title { text-decoration: underline; text-underline-offset: 3px; }
.press-item img,
.press-item .thumb-text {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}

/* Stands in where the outlet has no usable image. */
.press-item .thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1ee;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.06em;
}

.press-item .text { flex: 1; min-width: 0; }
.press-item .meta { display: block; font-size: 14px; color: var(--muted); }
.press-item .title { display: block; font-size: 18px; font-weight: 500; }

/* Three Rail */
.app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-hero .icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

.app-hero h1 { margin-top: 24px; }
.app-hero .tagline { margin: 14px 0 0; font-size: 20px; color: var(--body); }

.app-hero .status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 18px 0 0;
  padding: 0 14px;
  border: 1px solid var(--pill);
  border-radius: 999px;
  font-size: 14px;
  color: var(--body);
}

.banner {
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 16px;
}

.lede { margin: 40px 0 0; font-size: 18px; }

section.block { margin-top: 48px; }
section.block.ruled { padding-top: 32px; border-top: 1px solid var(--rule); }
section.block ul { margin: 0; padding-left: 20px; }
section.block li + li { margin-top: 6px; }

/* Privacy and other text pages */
.doc h1 { font-size: 52px; margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin-top: 32px; }
.doc p { margin: 0 0 12px; }

footer.site {
  padding: 0 16px 48px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

footer.site p { margin: 0; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 52px; }
  .project { gap: 16px; }
  .project img { width: 80px; height: 80px; }
  .press-item { gap: 16px; }
  .press-item img, .press-item .thumb-text { width: 80px; height: 80px; }
  header.subnav .trail { display: none; }
}
