/* ==========================================================================
   Josh Garellek — personal site
   Identity: "North light" — cool paper ground, blue-black ink, aurora green.
   Display: Archivo (variable width/weight) · Body: Instrument Sans
   Labels/data: IBM Plex Mono
   Fonts are self-hosted (latin subsets) — see /fonts.
   Photos live in /images — swap the placeholders, keep the filenames.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-var.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/instrument-sans-var.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-italic.woff2") format("woff2");
}

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

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

:root {
  --bg: #f5f7f6;
  --bg-raised: #ffffff;
  --ink: #10151a;
  --muted: #59646d;
  --line: #d7ddda;
  --accent: #0e7c5b;
  --accent-ink: #0a5c44;
  --accent-soft: rgba(14, 124, 91, 0.28);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --gutter: clamp(1.1rem, 4.5vw, 3.5rem);
  /* Content stops growing at 1680px; beyond that it centers. */
  --page-pad: max(var(--gutter), calc((100vw - 1680px) / 2));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1210;
    --bg-raised: #131b18;
    --ink: #ecf1ee;
    --muted: #93a29b;
    --line: #26312c;
    --accent: #3ddc97;
    --accent-ink: #6ee7b2;
    --accent-soft: rgba(61, 220, 151, 0.32);
  }
}

:root[data-theme="dark"] {
  --bg: #0c1210;
  --bg-raised: #131b18;
  --ink: #ecf1ee;
  --muted: #93a29b;
  --line: #26312c;
  --accent: #3ddc97;
  --accent-ink: #6ee7b2;
  --accent-soft: rgba(61, 220, 151, 0.32);
}

:root[data-theme="light"] {
  --bg: #f5f7f6;
  --bg-raised: #ffffff;
  --ink: #10151a;
  --muted: #59646d;
  --line: #d7ddda;
  --accent: #0e7c5b;
  --accent-ink: #0a5c44;
  --accent-soft: rgba(14, 124, 91, 0.28);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

a:focus-visible,
.monogram:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Photo framing (shared) ---------- */

.hero-photo,
.about-photo {
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--accent-soft);
}

.hero-photo img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 11;
}

/* Monochrome treatment keeps every photo in the site's palette.
   Delete these two rules to show photos in their original color. */
.hero-photo img,
.about-photo img,
.banner-photo img {
  filter: grayscale(1) contrast(1.05);
}

.hero-photo img { object-position: 50% 25%; }
.about-photo img { object-position: 40% 30%; }
.banner-photo img { object-position: 50% 30%; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem var(--page-pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 80%;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent);
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem clamp(0.9rem, 2.5vw, 2rem);
}

.site-nav nav a {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}

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

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4rem) var(--page-pad) clamp(2.5rem, 6vw, 4rem);
  min-height: calc(100svh - 3.5rem);
}

.hero-main { min-width: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.9vw, 0.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 115%;
  /* Sized so "GARELLEK" (~6.65em wide at this weight/stretch) exactly fills
     the hero text column: (viewport - page padding - grid gap) * 0.6 */
  font-size: min(10.5rem, max(2.4rem,
    calc((100vw - 2 * var(--page-pad) - clamp(1.75rem, 4vw, 4.5rem)) * 0.6 / 6.65)));
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-name .line { display: block; width: max-content; max-width: 100%; }

.hero-name .line:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-lede {
  max-width: 26em;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hero-links a,
.contact-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.hero-links a:hover,
.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-photo {
  max-width: 480px;
  justify-self: end;
  width: 100%;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-name {
    font-size: max(2.4rem, calc((100vw - 2 * var(--page-pad)) / 6.65));
  }
  .hero-photo {
    justify-self: start;
    max-width: min(78vw, 340px);
    box-shadow: 10px 10px 0 var(--accent-soft);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) var(--page-pad);
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-body {
  max-width: 42em;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.62;
}

.about-body strong { font-weight: 600; }

.about-photo {
  position: sticky;
  top: 5.5rem;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.about-photo figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo {
    position: static;
    order: -1;
    max-width: min(78vw, 340px);
    justify-self: start;
    box-shadow: 10px 10px 0 var(--accent-soft);
  }
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.stats li {
  background: var(--bg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-num {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Ventures ---------- */

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

.venture { border-bottom: 1px solid var(--line); }

.venture:first-child { border-top: 1px solid var(--line); }

.venture a,
.venture-row {
  display: grid;
  /* Fixed status column so the pills' varying widths can't shift the
     other columns from row to row. */
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 2.5fr) 13.5rem;
  gap: 1rem 1.75rem;
  align-items: baseline;
  padding: 1.4rem 0.25rem;
  text-decoration: none;
  transition: padding-left 200ms ease;
}

.venture a:hover { padding-left: 1.1rem; }

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

.venture a:hover .venture-name::after { opacity: 1; transform: translate(0.35em, -0.35em); }

.venture-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  transition: color 160ms ease;
}

.venture a .venture-name::after {
  content: "↗";
  display: inline-block;
  font-size: 0.55em;
  margin-left: 0.3em;
  opacity: 0.35;
  transform: translate(0, 0);
  transition: opacity 160ms ease, transform 200ms ease;
}

.venture-role {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.venture-desc {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.venture-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: end;
}

.venture-status.is-active {
  color: var(--accent-ink);
  border: 1px solid var(--accent-soft);
}

.venture-status.is-exit {
  color: var(--muted);
  border: 1px solid var(--line);
}

.venture-status.is-origin {
  color: var(--muted);
  border: 1px dashed var(--line);
}

.venture-status.is-paused {
  color: var(--muted);
  border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent);
}

@media (max-width: 860px) {
  .venture a,
  .venture-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "role role"
      "desc desc";
    gap: 0.4rem 1rem;
    padding: 1.2rem 0.15rem;
  }
  .venture-name { grid-area: name; }
  .venture-status { grid-area: status; align-self: center; }
  .venture-role { grid-area: role; }
  .venture-desc { grid-area: desc; }
  .venture a:hover { padding-left: 0.15rem; }
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}

.project {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease;
}

.project:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project--featured { border-color: var(--accent); }

.project-more {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.project h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.project p {
  color: var(--muted);
  max-width: 46em;
  font-size: 0.98rem;
}

/* ---------- Recognition ---------- */

.honor-list {
  list-style: none;
  max-width: 46em;
}

.honor-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.honor-list li:first-child { border-top: 1px solid var(--line); }

.honor-year {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-ink);
  min-width: 5.5em;
  font-variant-numeric: tabular-nums;
}

.honor-name {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 500;
}

/* ---------- Banner photo ---------- */

.banner-photo {
  border-top: 1px solid var(--line);
}

.banner-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 620px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .banner-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Contact ---------- */

.contact-lede {
  max-width: 30em;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 160ms ease;
}

.form-field textarea { resize: vertical; min-height: 8rem; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  align-self: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.95rem 2rem;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem var(--page-pad);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Project pages ---------- */

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-pad) clamp(2rem, 4vw, 3rem);
}

.crumb {
  display: table;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 160ms ease;
}

.crumb:hover { color: var(--accent); }

.page-title {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.75rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1.5rem;
  text-wrap: balance;
}

.page-lede {
  max-width: 32em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
}

.prose {
  max-width: 42em;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.prose strong { font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-grid--four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .feature-grid--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-grid,
  .feature-grid--four { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.8rem;
}

.feature h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-list {
  list-style: none;
  max-width: 46em;
  counter-reset: step;
}

.step-list li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.step-list li:first-child { border-top: 1px solid var(--line); }

.step-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 2em;
  font-variant-numeric: tabular-nums;
}

.step-list strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.step-list p { color: var(--muted); font-size: 0.98rem; }

.dash-list {
  list-style: none;
  max-width: 44em;
}

.dash-list li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.dash-list li:first-child { border-top: 1px solid var(--line); }

.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 46em; }

.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.page-photo {
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--accent-soft);
  max-width: 720px;
}

.page-photo img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.page-photo figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
}

.vision-quote {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 20em;
  text-wrap: balance;
  border-left: 4px solid var(--accent);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

/* App screenshots — framed but full color, unlike the photo treatment. */
.shot {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--accent-soft);
  max-width: 980px;
}

.shot img { width: 100%; display: block; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  transition: opacity 160ms ease;
}

.btn:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  transition: border-color 160ms ease, color 160ms ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.page-cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.12em;
  transition: color 160ms ease;
  overflow-wrap: anywhere;
}

.page-cta:hover { color: var(--accent); }

/* ---------- Inline email signup ---------- */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 38em;
}

.inline-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 160ms ease;
}

.inline-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Link list (writing outlets) ---------- */

.link-list {
  list-style: none;
  max-width: 46em;
}

.link-list li { border-bottom: 1px solid var(--line); }

.link-list li:first-child { border-top: 1px solid var(--line); }

.link-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding: 1.2rem 0.25rem;
  text-decoration: none;
  transition: padding-left 200ms ease;
}

.link-list a:hover { padding-left: 1rem; }

.link-list a:hover .link-name { color: var(--accent); }

.link-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 105%;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}

.link-name::after {
  content: "↗";
  display: inline-block;
  font-size: 0.6em;
  margin-left: 0.35em;
  opacity: 0.4;
}

.link-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Work-with-me cards as links ---------- */

a.feature {
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease;
}

a.feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.disclaimer {
  max-width: 46em;
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disclaimer-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project, .venture a { transition: none; }
}
