/* =============================================================
   FONT FACES — self-hosted, GDPR-safe
   ============================================================= */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   CUSTOM PROPERTIES
   ============================================================= */

:root {
  /* Font stacks — swap fonts by editing these two lines only */
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Colors */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-rule: #e6e6e6;
  --color-link-dec: #bbbbbb;
}

/* =============================================================
   RESET & BASE
   ============================================================= */

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================
   LAYOUT — single centred column
   ============================================================= */

.container {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

h1 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
}

p {
  max-width: 65ch;
}

/* Kicker labels: [ SECTION ] */
.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem; /* 13px */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

/* Mono metadata lines: prices, dates, tags */
.meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem; /* 14px */
  color: var(--color-muted);
}

/* Muted body text */
.muted {
  color: var(--color-muted);
}

/* =============================================================
   LINKS
   ============================================================= */

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-link-dec);
  transition: none;
}

a:hover {
  text-decoration-color: var(--color-text);
}

/* =============================================================
   SITE HEADER
   ============================================================= */

.site-header {
  border-bottom: 1px solid var(--color-rule);
  padding-block: 1.25rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header .wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.site-header .header-contact {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
}

/* =============================================================
   SECTIONS
   ============================================================= */

main {
  padding-block: 1px; /* prevent margin collapse */
}

section {
  padding-block: 5rem;
  border-bottom: 1px solid var(--color-rule);
}

section:last-of-type {
  border-bottom: none;
}

/* =============================================================
   INTRO SECTION
   ============================================================= */

.section-intro h1 {
  margin-bottom: 1.5rem;
}

.section-intro p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* =============================================================
   OFFERS SECTION
   ============================================================= */

.offer-list {
  list-style: none;
}

.offer-list li {
  padding-block: 2rem;
  border-top: 1px solid var(--color-rule);
}

.offer-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.offer-list h2 {
  margin-bottom: 0.75rem;
}

.offer-list p {
  margin-bottom: 1rem;
}

.offers-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-rule);
}

/* =============================================================
   FUNDING SECTION
   ============================================================= */

#funding .meta {
  margin-top: 1rem;
}

/* =============================================================
   WORK SECTION
   ============================================================= */

.work-list {
  list-style: none;
}

.work-list li {
  padding-block: 2rem;
  border-top: 1px solid var(--color-rule);
}

.work-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.work-list h2 {
  margin-bottom: 0.75rem;
}

.work-list p {
  margin-bottom: 1rem;
}

/* =============================================================
   ABOUT SECTION
   ============================================================= */

.about-inner {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--color-rule);
  filter: grayscale(100%);
  flex-shrink: 0;
}

.about-text p + p {
  margin-top: 1.25rem;
}

/* =============================================================
   CONTACT SECTION
   ============================================================= */

.contact-links {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-links a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9375rem;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  border-top: 1px solid var(--color-rule);
  padding-block: 2rem;
}

.site-footer p {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* =============================================================
   RESPONSIVE — clamp() handles most of it; portrait stacks on
   narrow screens
   ============================================================= */

@media (max-width: 480px) {
  .about-inner {
    flex-direction: column;
  }

  .portrait {
    max-width: 120px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.25rem;
  }
}
