/* ==========================================================================
   Md Jahirul Islam — portfolio stylesheet
   Hand-written; no framework. Tokens first, then layout, then components.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /fonts) ---------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/newsreader-latin-wght.woff2") format("woff2");
}

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

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

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

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

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f5f7;
  --surface: #ffffff;
  --ink: #1c2430;
  --slate: #5a6675;
  --line: #d8dee5;
  --line-strong: #b4bec9;
  --accent: #a8232f;
  --accent-ink: #861b25;
  --accent-tint: #f6e4e6;
  --btn: #a8232f;
  --btn-hover: #861b25;
  --tile: #7c8896;
  --focus: #2f6fdb;
  --shadow: 0 18px 40px -24px rgba(28, 36, 48, 0.35);

  --icon-sun: none;
  --icon-moon: block;

  --font-text: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.5rem;
  --fs-hero: clamp(2.75rem, 1.6rem + 4vw, 4.4rem);

  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151c;
    --surface: #171e27;
    --ink: #e8ecf1;
    --slate: #9aa6b4;
    --line: #28313d;
    --line-strong: #3d4958;
    --accent: #e2626e;
    --accent-ink: #f08792;
    --accent-tint: #3a1e24;
    --btn: #c23744;
    --btn-hover: #d64b58;
    --tile: #8b9aab;
    --focus: #7fb0ff;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
    --icon-sun: block;
    --icon-moon: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #10151c;
  --surface: #171e27;
  --ink: #e8ecf1;
  --slate: #9aa6b4;
  --line: #28313d;
  --line-strong: #3d4958;
  --accent: #e2626e;
  --accent-ink: #f08792;
  --accent-tint: #3a1e24;
  --btn: #c23744;
  --btn-hover: #d64b58;
  --tile: #8b9aab;
  --focus: #7fb0ff;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --icon-sun: block;
  --icon-moon: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[id] {
  scroll-margin-top: 5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.35rem;
}

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

.site-nav a.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.site-nav__cv {
  display: none;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.icon-btn .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.icon--sun {
  display: var(--icon-sun);
}

.icon--moon {
  display: var(--icon-moon);
}

.menu-btn {
  display: none;
}

@media (max-width: 920px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav a:first-child {
    border-top: 0;
  }

  .site-nav a.is-active {
    text-decoration: none;
    color: var(--accent);
  }

  .site-nav__cv {
    display: block;
    color: var(--ink);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}

.btn--primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  overflow-x: hidden;
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.hero__kicker {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.45;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-bottom: 2rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.hero__links a {
  font-weight: 500;
}

.hero__meta {
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.hero__meta > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hero__meta dt {
  color: var(--slate);
}

.hero__meta dd {
  margin: 0;
}

.hero__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  width: 100%;
  justify-self: end;
}

.tiles {
  position: absolute;
  right: -9%;
  bottom: -11%;
  width: 76%;
  height: 76%;
  z-index: 0;
}

.tile {
  fill: var(--tile);
}

.tile--patch {
  fill: var(--accent);
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    order: -1;
    width: min(60vw, 240px);
    justify-self: start;
    margin-bottom: 0.5rem;
  }

  .hero__meta > div {
    grid-template-columns: 3.75rem 1fr;
  }
}

/* One page-load moment: the hero rises into place. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero__text > * {
  opacity: 0;
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero__text > :nth-child(2) { animation-delay: 0.05s; }
.hero__text > :nth-child(3) { animation-delay: 0.1s; }
.hero__text > :nth-child(4) { animation-delay: 0.15s; }
.hero__text > :nth-child(5) { animation-delay: 0.2s; }

.hero__figure {
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__text > *,
  .hero__figure {
    opacity: 1;
    animation: none;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Motion ----------
   Everything here is skipped when the visitor prefers reduced motion.
   Scroll reveal: site.js adds .reveal to each section block and .is-visible
   the first time it enters the viewport, so without JavaScript nothing is hidden.
   Patch drift: site.js moves .tile--patch to a neighboring tile every few
   seconds; the fill transition does the rest. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .tile {
    transition: fill 0.8s ease, opacity 0.8s ease;
  }

  .btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
      transform 0.15s ease, box-shadow 0.15s ease;
  }

  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -12px rgba(28, 36, 48, 0.45);
  }

  .btn:active {
    transform: none;
    box-shadow: none;
  }

  .icon-btn {
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  }

  .icon-btn:hover {
    transform: translateY(-1px);
  }

  a {
    transition: color 0.15s ease, text-decoration-color 0.15s ease,
      text-decoration-thickness 0.15s ease;
  }

  .prose a:hover,
  .pub__links a:hover,
  .project__links a:hover,
  .hero__links a:hover,
  .contact-list a:hover,
  .dated-list a:hover,
  .entry a:hover,
  .highlights a:hover,
  .section__link:hover {
    text-decoration-thickness: 2px;
  }

  html.theme-transition,
  html.theme-transition * {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
      fill 0.25s ease, box-shadow 0.25s ease !important;
  }
}

/* The moving patch is always fully opaque, whichever tile holds it. */
.tile--patch {
  opacity: 1;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section__link {
  font-size: 0.95rem;
  color: var(--slate);
}

.group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.25rem 0 0.5rem;
}

.section__head + .group-title,
.columns .group-title {
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.columns + .columns {
  margin-top: 2.25rem;
}

@media (max-width: 820px) {
  .split,
  .columns {
    grid-template-columns: 1fr;
  }

  .columns > div + div {
    margin-top: 1.5rem;
  }
}

.prose p {
  max-width: var(--measure);
}

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

.side__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.side__title + .side__title,
ul + .side__title {
  margin-top: 1.75rem;
}

/* Square bullets echo the tile motif. */
.plain-list,
.highlights,
.entry__points,
.dated-list {
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--accent);
}

.highlights li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.highlights li:last-child {
  border-bottom: 1px solid var(--line);
}

.highlights__year {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ---------- Dated entries (experience, education) ---------- */
.entries {
  list-style: none;
}

.entry {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.25rem 0;
}

.entry + .entry {
  border-top: 1px solid var(--line);
}

.entry__when {
  color: var(--slate);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.entry__title {
  font-size: 1.125rem;
  font-weight: 600;
}

.entry__org {
  color: var(--slate);
  margin: 0.2rem 0 0.6rem;
}

.entry__note {
  margin: 0;
  max-width: var(--measure);
}

.entry__points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  max-width: var(--measure);
}

.entry__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--line-strong);
}

@media (max-width: 680px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ---------- Publications ---------- */
.pubs {
  list-style: none;
}

.pub {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
}

.pub + .pub {
  border-top: 1px solid var(--line);
}

.pub__year {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.pub__body p {
  margin: 0;
}

.pub__title {
  font-weight: 600;
  max-width: 72ch;
}

.pub__authors {
  color: var(--slate);
  margin-top: 0.2rem;
}

.pub__authors .me {
  color: var(--ink);
  font-weight: 600;
}

.pub__note {
  font-size: 0.9rem;
}

.pub__venue {
  font-style: italic;
  color: var(--slate);
  margin-top: 0.1rem;
  max-width: 72ch;
}

.pub__links {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.pub__links a + a {
  margin-left: 1rem;
}

@media (max-width: 680px) {
  .pub {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ---------- Projects ---------- */
.projects {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}

.project {
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--line);
}

.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

/* The lead project spans the full width and reads as the headline entry. */
.project--featured {
  grid-column: 1 / -1;
  padding-bottom: 1.5rem;
}

.project--featured .project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

.project--featured .project__desc {
  max-width: 72ch;
  margin-top: 0.5rem;
}

.project__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.project__year {
  flex: none;
  color: var(--slate);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.project__desc {
  margin: 0.35rem 0 0;
}

.project__tags {
  margin: 0.4rem 0 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.project__links {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.project__links a + a {
  margin-left: 1rem;
}

.projects--compact .project {
  padding: 0.75rem 0 0.85rem;
}

.projects--compact .project__title {
  font-size: 1rem;
}

.projects--compact .project__desc {
  font-size: 0.95rem;
}

.more {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.more > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.more > summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
}

.more[open] > summary::before {
  transform: rotate(45deg);
}

.more[open] > summary {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

/* ---------- Skills ---------- */
.skills__row {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.skills__row:last-child {
  border-bottom: 1px solid var(--line);
}

.skills__row dt {
  font-weight: 600;
}

.skills__row dd {
  margin: 0;
  max-width: 70ch;
}

@media (max-width: 680px) {
  .skills__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dated lists (service, awards, leadership, certifications) ---------- */
.dated-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

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

.dated-list__when {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.section--contact {
  background: var(--surface);
}

.contact__intro {
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 40rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--slate) 75%, transparent);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--accent);
}

.contact-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.contact-form__status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
}

.contact-form__status.is-success {
  color: var(--ink);
}

.contact-form__status.is-error {
  color: var(--accent);
}

.contact-form.is-sent .field,
.contact-form.is-sent .btn {
  display: none;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--slate);
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__links a + a {
  margin-left: 1.25rem;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer__links,
  .contact-form,
  .hero__actions,
  .skip-link {
    display: none !important;
  }

  .hero__text > *,
  .hero__figure {
    opacity: 1;
    animation: none;
  }

  .section {
    break-inside: avoid-page;
  }

  a {
    text-decoration: none;
  }
}
