:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --bg-soft: #15171b;
  --panel: rgba(24, 26, 31, 0.78);
  --panel-strong: rgba(33, 36, 43, 0.92);
  --text: #f4efe6;
  --muted: #b8b0a3;
  --dim: #80786e;
  --line: rgba(244, 239, 230, 0.13);
  --accent: #3fc6b3;
  --accent-2: #f3b35a;
  --accent-3: #ef6f6c;
  --accent-4: #9b8cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-soft: #fffaf2;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #211d1a;
  --muted: #5f5750;
  --dim: #8b8175;
  --line: rgba(33, 29, 26, 0.13);
  --shadow: 0 22px 58px rgba(74, 62, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

mark {
  padding: 0.1em 0.32em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--text);
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 42%),
    var(--bg);
}

.ambient__wash,
.ambient__grid,
.ambient__grain {
  position: absolute;
  inset: 0;
}

.ambient__wash {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.16) 100%);
}

.ambient__grid {
  opacity: 0.2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}

.ambient__grain {
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-width: max-content;
}

.brand-photo {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101112;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
}

.brand-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-photo img.is-missing,
.portrait img.is-missing {
  display: none;
}

.avatar-fallback {
  font-size: 0.78rem;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  font-size: 0.88rem;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav__links a span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-right: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 180ms ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__theme {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: clamp(58px, 9vw, 104px) 0;
}

.hero__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero__name {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__name span {
  display: block;
}

.hero__name-sub {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 68%, transparent);
  font-size: clamp(2.25rem, 5.2vw, 5rem);
}

.hero__role {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 22px 0 18px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
}

.hero__role-arrow {
  color: var(--accent);
}

.type-caret {
  animation: blink 900ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__lede {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.hero__lede a {
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 700;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101112;
  border-color: transparent;
}

.btn--ghost {
  background: var(--panel);
  color: var(--text);
}

.btn--lg {
  min-height: 54px;
  padding: 0 22px;
}

.btn__shine {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: transform 450ms ease;
}

.btn:hover .btn__shine {
  transform: translateX(120%);
}

.hero__socials {
  display: flex;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero__socials a {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
}

.hero__socials a::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.hero__socials a:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero__card {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.portrait {
  position: relative;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, white 8%), var(--accent-2) 62%, var(--accent-3));
  color: #111;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 10vw, 7rem);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 22px 48px rgba(0, 0, 0, 0.24);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.portrait__ring {
  position: absolute;
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.portrait__orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: 50% 50%;
}
.portrait__orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--accent) 55%, transparent 78%);
  box-shadow:
    0 0 10px 2px var(--accent),
    0 0 26px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes spark-orbit {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait__orbit { animation: spark-orbit 8s linear infinite; }
}

.hero__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.chip--teal i { color: var(--accent); }
.chip--gold i { color: var(--accent-2); }
.chip--coral i { color: var(--accent-3); }
.chip--violet i { color: var(--accent-4); }

.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0;
}

.hero__stats div {
  min-height: 108px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
}

.hero__stats dt {
  min-height: 42px;
  color: var(--dim);
  font-size: 0.76rem;
}

.hero__stats dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.hero__stats dd span {
  color: var(--accent);
}

.section {
  padding: clamp(74px, 10vw, 118px) 0;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.section__head--split {
  justify-content: space-between;
  align-items: flex-end;
}

.section__head--split > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.88rem;
}

.section__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.section__title em {
  color: var(--accent-2);
  font-style: normal;
}

.section__title span {
  color: var(--accent-3);
}

.section__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.about__body,
.about__facts,
.skill,
.timeline__body,
.project,
.pub,
.service article,
.hobbies__intro,
.hobby-card,
.contact__intro,
.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.about__body {
  padding: clamp(24px, 4vw, 36px);
}

.about__lede {
  margin-top: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.16;
}

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

.about__facts {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.fact {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact span {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fact strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.skills,
.projects,
.service,
.hobbies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill,
.service article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
}

.skill::after,
.service article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.skill__icon,
.service i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 1.1rem;
}

.skill h3,
.project h3,
.service h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.skill p,
.project p,
.service p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.timeline__date {
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.88rem;
}

.timeline__date span,
.timeline__date small {
  display: block;
}

.timeline__date small {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent);
}

.timeline__body {
  position: relative;
  padding: 22px 24px;
}

.timeline__body::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 28px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}

.timeline__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.timeline__org {
  margin: 4px 0 12px;
  color: var(--accent-2);
  font-weight: 700;
}

.timeline__body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline__body li + li {
  margin-top: 6px;
}

.project {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project__tag,
.pub__tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.project dl {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
}

.project dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project dt {
  color: var(--dim);
  font-size: 0.78rem;
}

.project dd {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  text-align: right;
}

.pubs {
  list-style: none;
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
}

.pub {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 20px;
}

.pub__year {
  color: var(--accent-2);
  font-family: var(--mono);
  font-weight: 700;
}

.pub h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.pub p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.pub p + p {
  margin-top: 4px;
}

.hobbies {
  display: grid;
  gap: 18px;
}

.hobbies__intro {
  padding: clamp(24px, 4vw, 34px);
}

.hobbies__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hobbies__lede {
  max-width: 850px;
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.18;
}

.hobby-card {
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hobby-card__media {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.hobby-card__media--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hobby-card__crop {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hobby-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hobby-card__img--run-action {
  object-position: 62% bottom;
  transform: scale(1.55);
  transform-origin: 62% 100%;
}

.hobby-card__img--marathon {
  object-position: 50% 100%;
}

.hobby-card__img--lift {
  object-position: center;
  transform: translateY(-18%) scale(1.18);
}

.hobby-card__body {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.hobby-card span {
  display: block;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hobby-card h3 {
  margin: 8px 0 8px;
  font-size: 1.12rem;
}

.hobby-card p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
}

.contact__intro {
  padding: 28px;
}

.contact__lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact__card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.contact__card > i:first-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  color: var(--accent-2);
}

.contact__card span {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact__card strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.contact__go {
  color: var(--dim);
  font-size: 0.85rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.footer__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer p span:last-child {
  color: var(--dim);
}

.footer__up {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

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

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

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__card {
    max-width: 560px;
  }

  .skills,
  .projects,
  .service,
  .hobbies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline__date {
    padding-top: 0;
  }

  .timeline__body::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .nav__inner {
    min-height: 66px;
  }

  .nav__brand-text {
    font-size: 0.94rem;
  }

  .hero {
    padding: 42px 0 64px;
  }

  .hero__badge {
    align-items: flex-start;
    border-radius: var(--radius);
  }

  .hero__name {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .hero__name-sub {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero__cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero__stats,
  .skills,
  .projects,
  .service,
  .hobbies__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hobby-card {
    min-height: auto;
  }

  .hobby-card__media {
    height: 300px;
  }

  .section {
    padding: 66px 0;
  }

  .section__head,
  .section__head--split,
  .section__head--split > div {
    align-items: flex-start;
  }

  .section__head,
  .section__head--split {
    display: grid;
    gap: 12px;
  }

  .section__rule {
    width: 100%;
    min-height: 1px;
  }

  .pub {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pub__tag {
    justify-self: start;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
