@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  src: url(fonts/newsreader-normal.woff2) format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 400;
  src: url(fonts/newsreader-italic.woff2) format('woff2');
  font-display: swap;
}

/* Playfair Display — used by the FirstLook brand wordmark on
   /firstlook/. Same files the FirstLook app uses via @fontsource. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url(fonts/playfair/playfair-display-600-normal.woff2) format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  src: url(fonts/playfair/playfair-display-500-italic.woff2) format('woff2');
  font-display: swap;
}

/* Inter — body font for /firstlook/ only. Matches the typeface used
   inside the FirstLook app, so the personal-site walk-through page
   reads in the same visual language as the product itself. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  src: url(fonts/InterVariable.woff2) format('woff2-variations');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  src: url(fonts/InterVariable-Italic.woff2) format('woff2-variations');
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  background: #fafaf4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  width: min(680px, calc(100vw - 80px));
  margin: 48px auto 78px;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  color: #263f59;
  text-align: center;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.mark {
  flex: 0 0 auto;
  line-height: 0;
}

.mark img {
  display: block;
}

.name {
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.intro-about {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.47;
  color: #314d68;
  text-align: left;
}

.intro-label {
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
  color: #263f59;
  text-align: center;
}

.intro-about p {
  margin-bottom: 12px;
}

.intro-about p:last-child {
  margin-bottom: 0;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 7px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #38566f;
}

.contact-sep {
  color: #6a7e90;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(38, 63, 89, 0.42);
}

.cta:hover,
.project-button:hover,
.project-link:hover {
  color: #172f45;
}

.section-label {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
  color: #263f59;
  margin-bottom: 16px;
  text-align: center;
}

.projects {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  border-top: 1px solid rgba(38, 63, 89, 0.105);
  text-align: left;
}

.project {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 20px;
  align-items: baseline;
  width: 100%;
  padding: 15px 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(38, 63, 89, 0.09);
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.project-primary {
  padding-top: 16px;
  padding-bottom: 17px;
  border-bottom-color: rgba(38, 63, 89, 0.12);
}

.project-button {
  cursor: pointer;
}

.project-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 0;
}

.project-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.project-primary .project-name {
  font-size: 16px;
}

.project-button .project-name,
.project-link .project-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(38, 63, 89, 0.36);
}

.project-desc {
  display: block;
  max-width: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  color: #38566f;
}

.project-inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(38, 63, 89, 0.36);
}

.work-section {
  max-width: 640px;
  margin: 0 auto;
}

.project-muted .project-name,
.project-muted .project-desc {
  color: #4f687d;
}

.page-footer {
  position: fixed;
  left: 50%;
  bottom: 26px;
  width: min(680px, calc(100vw - 80px));
  transform: translateX(-50%);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.3;
  color: #6a7e90;
}

.essay-shell {
  width: min(740px, calc(100vw - 96px));
  margin: 54px 0 96px clamp(48px, 9vw, 120px);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  color: #263f59;
}

.essay-site-header {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 46px;
}

.essay-site-name,
.home-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(38, 63, 89, 0.36);
}

.essay-site-name {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
}

.home-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.essay-title {
  max-width: 700px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 6px;
  color: #20384f;
}

.essay-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
  color: #38566f;
  margin-bottom: 7px;
}

.essay-date {
  font-size: 13px;
  font-weight: 300;
  color: #5e7487;
  margin-bottom: 34px;
}

.essay-body {
  max-width: 720px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
}

.essay-body p {
  margin-bottom: 17px;
}

.essay-body p:last-child {
  margin-bottom: 0;
}

.essay-body h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 34px 0 13px;
}

.essay-body ol,
.essay-body ul {
  padding-left: 22px;
  margin-bottom: 17px;
}

.essay-body li {
  margin-bottom: 10px;
}

.essay-body strong {
  font-weight: 500;
}

.essay-body em {
  font-style: italic;
}

.essay-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.essay-body .note-ref {
  font-size: 11px;
  vertical-align: super;
  opacity: 0.7;
}

.essay-body hr {
  border: none;
  border-top: 1px solid rgba(38, 63, 89, 0.2);
  margin: 34px 0 26px;
}

.essay-body .notes {
  font-size: 13px;
  line-height: 1.6;
  color: #526b80;
}

.essay-body .notes p {
  margin-bottom: 11px;
}

.essay-disclaimer {
  max-width: 720px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(38, 63, 89, 0.14);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  color: #5e7487;
}

.cta:focus-visible,
.project:focus-visible,
.essay-site-name:focus-visible,
.home-link:focus-visible {
  outline: 1px solid #263f59;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .card {
    width: calc(100vw - 80px);
    margin: 44px 40px 64px;
  }

  .projects {
    max-width: 100%;
  }

  .page-footer {
    left: 40px;
    bottom: 28px;
    width: auto;
    transform: none;
  }

}

@media (max-width: 600px) {
  .card {
    width: calc(100vw - 48px);
    margin: 36px 24px 52px;
  }

  .name {
    font-size: 21px;
  }

  .project {
    display: block;
    padding: 11px 0 12px;
  }

  .project-heading {
    margin-bottom: 4px;
  }

  .page-footer {
    position: static;
    width: calc(100vw - 48px);
    margin: 0 24px 32px;
  }

  .essay-shell {
    width: calc(100vw - 48px);
    margin: 36px 24px 64px;
  }

  .essay-site-header {
    margin-bottom: 34px;
  }

  .essay-title {
    font-size: 31px;
  }

  .essay-body {
    font-size: 15.5px;
    line-height: 1.7;
  }
}

/* ── FirstLook artifact page ────────────────────────────────────── */

/* /firstlook/ body switches to Inter sans (same as FirstLook app
   body), while the rest of the personal site stays Newsreader. */
.firstlook-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.firstlook-shell {
  width: min(1120px, calc(100vw - 64px));
  margin: 14px auto 72px;
  color: #1f3a52;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Single-row masthead at the top of /firstlook/: back-arrow on the
   left, FirstLook lockup + tagline centered as a stacked block.
   Saves the vertical space the back-arrow row previously consumed. */
.firstlook-masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.firstlook-back-link {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  color: #4a6276;
  text-decoration: none;
  border-radius: 2px;
}

.firstlook-back-link:hover {
  color: #1f3a52;
}

.firstlook-back-link:focus-visible {
  outline: 1px solid #263f59;
  outline-offset: 4px;
}

.firstlook-title-block {
  text-align: center;
  margin: 0;
}

/* FirstLook wordmark on the walk-through page. Keep this lighter
   than the in-app masthead so the page reads less like SaaS chrome. */
.firstlook-lockup {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #1f3a52;
}

.firstlook-lockup-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
  color: #1f3a52;
}

.firstlook-lockup-look {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #2B4A8B;
}

.firstlook-tagline {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #3d5870;
}

/* Generic two-column row: text on the left, screenshot figure on the
   right. Pictures get the larger share — Reid's call from the
   final-pass review — so each shot reads as the substantive content
   and the copy reads as a caption-tier label beside it. */
.firstlook-row {
  display: grid;
  grid-template-columns: minmax(0, 26fr) minmax(0, 74fr);
  column-gap: 40px;
  align-items: start;
}

.firstlook-row-text {
  min-width: 0;
}

.firstlook-row-hero {
  margin: 18px 0 24px;
  align-items: start;
}

.firstlook-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.22;
  color: #20384f;
}

.firstlook-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
}

.firstlook-bullets li:last-child {
  margin-bottom: 0;
}

.firstlook-bullets li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a7e90;
}

.firstlook-overview-bullets {
  max-width: none;
  margin: 0;
}

.firstlook-figure {
  margin: 0;
}

.firstlook-figure-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #4a6276;
}

.firstlook-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(38, 63, 89, 0.16);
  border-radius: 2px;
  background: #fafaf4;
}

.firstlook-disclosure {
  max-width: 720px;
  margin: 0 0 18px;
  border-top: 1px solid rgba(38, 63, 89, 0.14);
  border-bottom: 1px solid rgba(38, 63, 89, 0.14);
}

.firstlook-disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: #20384f;
  display: flex;
  align-items: center;
  gap: 12px;
}

.firstlook-disclosure > summary::-webkit-details-marker {
  display: none;
}

.firstlook-disclosure > summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-size: 22px;
  font-weight: 400;
  color: #4a6276;
  line-height: 1;
  transition: transform 120ms ease-out;
}

.firstlook-disclosure[open] > summary::before {
  content: "\2212"; /* minus */
}

.firstlook-disclosure-body {
  padding: 4px 0 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: #1f3a52;
}

.firstlook-disclosure-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.firstlook-disclosure-body > ul > li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 11px;
}

.firstlook-disclosure-body > ul > li:last-child {
  margin-bottom: 0;
}

.firstlook-disclosure-body > ul > li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a7e90;
}

.firstlook-disclosure-body ul ul {
  margin: 8px 0 4px 4px;
}

.firstlook-disclosure-body ul ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
}

.firstlook-disclosure-body ul ul li::before {
  content: "\2013"; /* en dash */
  position: absolute;
  left: 0;
  top: 0;
  color: #93a3b1;
}

.firstlook-disclosure-body strong {
  font-weight: 500;
  color: #1f3a52;
}

.firstlook-leader {
  margin: 22px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(38, 63, 89, 0.14);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.22;
  color: #20384f;
}

.firstlook-steps {
  margin: 4px 0 22px;
}

.firstlook-step {
  padding: 22px 0 24px;
  border-top: 1px solid rgba(38, 63, 89, 0.14);
}

/* Leader's border-bottom already provides the rule between the
   leader line and the first step — kill the double-rule by
   suppressing the first step's own top border. */
.firstlook-steps > .firstlook-step:first-child {
  border-top: none;
  padding-top: 18px;
}

.firstlook-step:last-child {
  border-bottom: 1px solid rgba(38, 63, 89, 0.14);
}

.firstlook-step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 0;
}

/* Step 02 carries an inline list of what's in a full brief, since
   the screenshot only shows the snapshot slice. */
.firstlook-step-aside {
  margin: 14px 0 8px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #1f3a52;
}

.firstlook-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3d5870;
}

.firstlook-step-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
}

.firstlook-step-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a7e90;
}

.firstlook-step-num {
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #4a6276;
  letter-spacing: 0.04em;
}

.firstlook-step-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.22;
  color: #20384f;
  margin: 0;
}

.firstlook-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 18px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(38, 63, 89, 0.14);
}

.firstlook-cta {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 500;
  color: #20384f;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 58, 82, 0.5);
}

.firstlook-cta:hover {
  color: #142a40;
}

.firstlook-disclosure > summary:focus-visible,
.firstlook-cta:focus-visible {
  outline: 1px solid #263f59;
  outline-offset: 4px;
}

/* Stack the row layout on narrow viewports — the 36/64 split crushes
   below ~720px even before mobile. */
@media (max-width: 720px) {
  .firstlook-row {
    display: block;
  }

  .firstlook-row-text {
    margin-bottom: 14px;
  }
}

@media (max-width: 600px) {
  .firstlook-shell {
    width: calc(100vw - 48px);
    margin: 22px 24px 56px;
  }

  .firstlook-row-hero {
    margin: 14px 0 18px;
  }

  .firstlook-bullets {
    font-size: 18px;
  }

  .firstlook-shell .essay-subtitle,
  .firstlook-leader,
  .firstlook-disclosure > summary,
  .firstlook-cta {
    font-size: 18px;
  }

  .firstlook-caveat {
    font-size: 16px;
  }

  .firstlook-step {
    padding: 18px 0 20px;
  }

  .firstlook-step-title {
    font-size: 20px;
  }

  .firstlook-disclosure-body {
    font-size: 14.5px;
  }

  .firstlook-figure-label {
    font-size: 10.5px;
  }
}
