/* ==========================================================================
   engineerakash.com
   Plain CSS, no build step. Order: fonts, tokens, base, layout, components.
   Colors live in the tokens below; change them there, not in components.
   ========================================================================== */

/* Fonts: self-hosted, SIL Open Font License (see fonts/OFL-*.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Tokens. Dark values are repeated for the OS setting and the manual toggle.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-sunken: #f2f0ea;
  --text: #1b1b18;
  --text-muted: #5b5a54;
  --border: #e4e1d8;
  --border-strong: #cfcbbf;
  --accent: #0b7a4b;
  --accent-hover: #08643d;
  --accent-contrast: #ffffff;
  --accent-soft: #e2f1e8;
  --accent-soft-text: #0a5c39;
  --shadow: 0 1px 2px rgb(27 27 24 / 0.05), 0 18px 40px -24px rgb(27 27 24 / 0.25);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --radius: 12px;
  --radius-lg: 22px;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f100e;
  --bg-elev: #161714;
  --bg-sunken: #1c1d1a;
  --text: #ecebe6;
  --text-muted: #a8a79f;
  --border: #2a2b27;
  --border-strong: #3c3e38;
  --accent: #5fd394;
  --accent-hover: #82e0ac;
  --accent-contrast: #08160e;
  --accent-soft: #15301f;
  --accent-soft-text: #95e8b9;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -28px rgb(0 0 0 / 0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f100e;
    --bg-elev: #161714;
    --bg-sunken: #1c1d1a;
    --text: #ecebe6;
    --text-muted: #a8a79f;
    --border: #2a2b27;
    --border-strong: #3c3e38;
    --accent: #5fd394;
    --accent-hover: #82e0ac;
    --accent-contrast: #08160e;
    --accent-soft: #15301f;
    --accent-soft-text: #95e8b9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -28px rgb(0 0 0 / 0.8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

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

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

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

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

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

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

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-intro {
  color: var(--text-muted);
  text-wrap: pretty;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-title em {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn[hidden] {
  display: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.link-arrow:hover {
  border-color: currentColor;
  color: var(--accent);
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
}

.nav {
  display: none;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.nav a:hover {
  background: var(--bg-sunken);
  color: var(--text);
}

@media (min-width: 56rem) {
  .nav {
    display: flex;
    gap: 0.15rem;
    margin-right: 0.75rem;
  }
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero__photo {
  order: -1;
  width: 5.5rem;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
    gap: clamp(3rem, 7vw, 6.5rem);
  }

  .hero__photo {
    position: relative;
    isolation: isolate;
    order: 0;
    width: 100%;
  }

  .hero__photo::before {
    content: "";
    position: absolute;
    inset: 1.1rem -1.1rem -1.1rem 1.1rem;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
  }

  .hero__photo img {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.pill__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .pill__dot {
    animation: pulse 2.4s ease-out infinite;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

.hero__name {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 2rem + 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__role {
  margin-top: 0.85rem;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.hero__role em {
  font-family: var(--font-serif);
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}

.hero__lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

.hero__lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Highlights
   -------------------------------------------------------------------------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--border);
}

.stat:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.stat:nth-child(n + 3) {
  border-top: 1px solid var(--border);
}

.stat dd {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat dt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 52rem) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat,
  .stat:nth-child(odd) {
    padding: 2rem 1.75rem;
    border-left: 1px solid var(--border);
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Shared lists: bullet points and tags
   -------------------------------------------------------------------------- */
.points {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 1.5rem;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Selected work
   -------------------------------------------------------------------------- */
.work-list {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.work {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

@media (min-width: 56rem) {
  .work {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .work:nth-child(even) .work__media {
    order: 2;
  }
}

.work__media {
  display: grid;
  place-items: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) 1.5rem;
  background-color: var(--bg-sunken);
  background-color: color-mix(in srgb, var(--brand, var(--accent)) 10%, var(--bg-sunken));
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
}

.work__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

.work__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 1px var(--border);
}

.work__title {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.work__summary {
  color: var(--text-muted);
}

.work__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.5rem;
}

.work--shiprocket,
.work--quickpartner,
.work--rider {
  --brand: #5b2ee0;
}

.work--quick {
  --brand: #c2d400;
}

/* Three store screenshots fanned out, the middle one on top */
.shots {
  display: grid;
  place-items: center;
  width: 100%;
}

.shots img {
  grid-area: 1 / 1;
  width: clamp(8.5rem, 24vw, 12.5rem);
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 24px 40px -24px rgb(0 0 0 / 0.6);
}

.shots img:first-child {
  transform: translateX(-62%) rotate(-6deg) scale(0.86);
}

.shots img:nth-child(2) {
  z-index: 1;
}

.shots img:last-child {
  transform: translateX(62%) rotate(6deg) scale(0.86);
}

/* Screenshot that backs up a metric */
.proof {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.proof figcaption {
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.retired {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.retired__title {
  font-size: 1rem;
  font-weight: 650;
}

.retired ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.retired strong {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Experience
   -------------------------------------------------------------------------- */
.jobs {
  padding: 0;
  list-style: none;
}

.job {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
}

.job:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 52rem) {
  .job {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
}

.job__company {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.job__info {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.roles {
  position: relative;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}

.roles--progression::before {
  content: "";
  position: absolute;
  left: 0.29rem;
  top: 1.1em;
  bottom: 1.1em;
  width: 2px;
  background: var(--border-strong);
}

.role {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  padding-left: 1.4rem;
}

.role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.role:first-child::before {
  background: var(--accent);
}

.role__title {
  font-weight: 650;
}

.role__dates {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.duration:not(:empty)::before {
  content: "· ";
}

.education {
  display: grid;
  gap: 0.35rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.education__degree {
  font-weight: 650;
}

.education__school {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */
.skills {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 40rem) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .skills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skill-group h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   Side projects
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--text-muted);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card__title a {
  text-decoration: none;
}

/* The title link covers the whole card; other links sit above it */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__repo {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card .eyebrow {
  font-size: 0.8125rem;
}

/* Featured product: full width, with a screenshot beside the text */
.card__content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card__shot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card--feature .card__title {
  font-size: 1.5rem;
}

@media (min-width: 40rem) {
  .card--feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56rem) {
  .card--feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }
}

.card .tags {
  margin-top: auto;
  padding-top: 0.35rem;
}

.card__extra {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Community (YouTube, loaded only when clicked)
   -------------------------------------------------------------------------- */
.videos {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-sunken);
}

.video > a,
.video > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: auto;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.7);
  color: #ffffff;
  transition: background-color 0.15s;
}

.video > a:hover .video__play {
  background: #cc0000;
}

.video__title {
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.community__more {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--bg-elev);
}

.contact__inner {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
}

.contact__email {
  justify-self: start;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  line-height: 1.15;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

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

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.social {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.not-found {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  min-height: 50vh;
  align-content: center;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
