:root {
  --bg: #1b1c1d;
  --bg-header: #232426;
  --line: #34363a;
  --text: #eeeeee;
  --muted: #babcc1;
  --accent: #009295;
  --accent-light: #29dfeb;
  --box-bg: rgba(0, 0, 0, 0.85);

  --font-body: "Poppins", system-ui, sans-serif;
  --font-brand: "Clarity City", ui-monospace, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: url("Images/background.png");
  background-repeat: repeat;
  background-size: 128px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  image-rendering: auto;
}

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

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

.body-full-height{
  min-height: 100%;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.brand {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand::before {
  content: "> ";
  color: var(--accent);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Homescreen ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
}

.hero-box {
  padding: 3rem 3.5rem;
  background: var(--box-bg);
  border: 1px solid var(--accent);
  border-radius: 5px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  margin: 0.75rem 0 2rem;
  font-size: 1.15rem;
  color: var(--accent-light);
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.social a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.social a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Mobile ---------- */

@media (max-width: 40rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-box {
    padding: 2rem 1.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Interior pages ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 65rem;
  margin: 0 auto 3rem auto;
  padding: 3rem;
  background: var(--box-bg);
  border: 1px solid var(--accent);
  border-style: none solid solid;
  border-radius: 0px 0px 5px 5px;
}

.page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.page h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.page p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.text-link,
.entries h2 a {
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

.text-link:hover,
.entries h2 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.entries {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.entries li {
  padding: 0 0 0 1.25rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--line);
}

.entries h2 {
  margin: 0 0 0.25rem;
}

.entries p {
  margin: 0 0 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.tags li {
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.page h2.centered {
  text-align: center;
}

.icon-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.icon-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--muted);
  border-radius: 50%;
  transition: color 0.15s;
}

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

.icon-links svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ---------- Interior pages (mobile) ---------- */

@media (max-width: 40rem) {
  .page {
    padding: 2rem 1.5rem;
  }
}

/* ---------- Dropdown menu (mobile) ---------- */
 
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
 
.nav-toggle {
  display: none;
}
 
@media (max-width: 40rem) {
  .js-nav .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
 
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s;
  }
 
  .nav-toggle:hover {
    border-color: var(--accent);
  }
 
  .nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
 
  .nav-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
 
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
 
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
 
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
 
  .js-nav .header-inner nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
  }
 
  .js-nav .header-inner nav.is-open {
    display: block;
  }
 
  .js-nav .nav-list {
    flex-direction: column;
    gap: 0;
  }
 
  .js-nav .nav-list a,
  .js-nav .nav-list a:hover,
  .js-nav .nav-list a[aria-current="page"] {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
 
  .js-nav .nav-list li + li a {
    border-top: 1px solid var(--line);
  }
 
  .js-nav .nav-list a:hover,
  .js-nav .nav-list a[aria-current="page"] {
    border-left-color: var(--accent);
  }
}

/* ---------- Portfolio cards ---------- */
 
.card-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
 
.card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-header);
  border: 1px solid var(--line);
  border-radius: 8px;
}
 
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  image-rendering: auto;
}
 
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}
 
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 55%);
}
 
.card .card-title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
 
.card .card-desc {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}
 
.card:hover img,
.card:focus-visible img {
  transform: scale(1.07);
}
 
.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}
 
.card:hover .card-desc,
.card:focus-visible .card-desc {
  max-height: 8rem;
  margin-top: 0.5rem;
  opacity: 1;
}
 
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
 
@media (hover: none) {
  .card::before {
    opacity: 0.55;
  }
 
  .card .card-desc {
    max-height: 8rem;
    margin-top: 0.5rem;
    opacity: 1;
  }
}
 
@media (max-width: 40rem) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Posts list ---------- */
 
.post-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
 
.post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s;
}
 
.post:hover,
.post:focus-visible {
  background-color: rgba(255, 255, 255, 0.04);
}
 
.post:focus-visible {
  outline-offset: -2px;
}
 
.post .post-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.15s;
}
 
.post .post-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
 
.post:hover .post-title,
.post:focus-visible .post-title {
  color: var(--accent);
}
 
.post-side {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
 
.post-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.15s, color 0.15s;
}
 
.post:hover .post-arrow,
.post:focus-visible .post-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
 
@media (max-width: 40rem) {
  .post {
    gap: 1rem;
    padding: 1rem 0.25rem;
  }
 
  .post-side {
    gap: 0.5rem;
    font-size: 0.85rem;
  }
}

/* ---------- Hroject header ---------- */
 
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
 
.page .page-header h1 {
  margin: 0;
}
 
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
 
.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.04);
}
 
.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---------- Page transition ---------- */
 
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
 
main {
  animation: page-fade-in 0.15s ease backwards;
}

html.is-leaving main {
  opacity: 0;
  transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

/* ---------- Button group ---------- */
 
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Subtitle ---------- */
 
.page .subtitle {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
 
.page .subtitle::before {
  content: "# ";
  color: var(--accent);
}

/* ---------- Lists ---------- */
 
.page .list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
 
.page .list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
}
 
.page .list li::before {
  content: ">";
  position: absolute;
  left: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Image gallery ---------- */
 
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
 
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-header);
  border: 1px solid var(--line);
  border-radius: 8px;
}
 
@media (max-width: 40rem) {
  .gallery {
    gap: 0.5rem;
  }
}

/* ---------- Image visor (lightbox) ---------- */
 
.gallery img {
  cursor: zoom-in;
  transition: border-color 0.15s;
}
 
.gallery img:hover,
.gallery img:focus-visible {
  border-color: var(--accent);
}
 
.gallery img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
 
html.lightbox-open {
  overflow: hidden;
}
 
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
 
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
 
.lightbox-figure {
  position: relative;
}
 
.lightbox-figure img {
  display: block;
  width: min(calc(100vw - 2rem), 1600px, calc((100vh - 6rem) * var(--ar, 1.6)));
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
 
.lightbox.is-open .lightbox-figure img {
  transform: none;
}
 
.lightbox-close {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text);
  background: var(--bg-header);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
 
.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}
 
.lightbox-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- "See post" list element ---------- */
 
.page .list li.has-post .btn {
  margin-left: 0.75rem;
  vertical-align: middle;
}
 
.btn-sm {
  padding: 0.1rem 0.7rem;
  font-size: 0.85rem;
}
 
.btn-sm svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s;
}
 
.btn-sm:hover svg,
.btn-sm:focus-visible svg {
  transform: translateX(3px);
}

/* ---------- Post labels ---------- */
 
.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
 
.post-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}
 
.tag {
  --tag: #9a9ca0;
  --tag-bg: #2a2c30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--tag-bg);
  border: 1px solid var(--tag);
  border-radius: 50%;
}
 
.tag::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: var(--tag);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
 
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
 
.tag-solo {
  --tag: #f0a35e;
  --tag-bg: #48311c;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-3.9 3.1-7 7-7s7 3.1 7 7'/%3E%3C/svg%3E");
}
 
.tag-team {
  --tag: #4da3ff;
  --tag-bg: #17314d;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6.5 19c0-3 2.5-5.5 5.5-5.5s5.5 2.5 5.5 5.5'/%3E%3Ccircle cx='5' cy='9.5' r='2.2'/%3E%3Cpath d='M1.5 17c0-2.2 1.6-4 3.5-4'/%3E%3Ccircle cx='19' cy='9.5' r='2.2'/%3E%3Cpath d='M22.5 17c0-2.2-1.6-4-3.5-4'/%3E%3C/svg%3E");
}
 
.tag-graphics {
  --tag: #b57bee;
  --tag-bg: #362547;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Z'/%3E%3Cpath d='M4 7.5 12 12l8-4.5M12 12v9'/%3E%3C/svg%3E");
}
 
.tag-gameplay {
  --tag: #6fcf6f;
  --tag-bg: #213e21;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='7' width='19' height='11' rx='5'/%3E%3Cpath d='M7 10.5v4M5 12.5h4M15.5 11.5h.01M17.5 13.5h.01'/%3E%3C/svg%3E");
}
 
.tag-engine {
  --tag: #ef6b6b;
  --tag-bg: #482020;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2.5v3M15 2.5v3M9 18.5v3M15 18.5v3M2.5 9h3M2.5 15h3M18.5 9h3M18.5 15h3'/%3E%3C/svg%3E");
}
 
.tag-audio {
  --tag: #e8c547;
  --tag-bg: #463b15;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5v5h3.5L12 19V5L7.5 9.5H4Z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");
}

.tag-handoff {
  --tag: #f06eaa;
  --tag-bg: #482133;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13h8M7 10l3 3-3 3'/%3E%3Ccircle cx='18' cy='8' r='3'/%3E%3Cpath d='M13 20c0-3 2.2-5.5 5-5.5s5 2.5 5 5.5'/%3E%3C/svg%3E");
}
 
@media (max-width: 40rem) {
  .tag {
    width: 1.5rem;
    height: 1.5rem;
  }
 
  .tag::before {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* ---------- Section separator ---------- */

.page .subtitle ~ .subtitle {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Gallery variants ---------- */
 
.gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}
 
.gallery-1 {
  grid-template-columns: minmax(0, 40rem);
  justify-content: center;
}

/* ---------- Caption on gallery images ---------- */
 
.gallery figure {
  position: relative;
  margin: 0;
}
 
.gallery figcaption {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  border-radius: 0 0 7px 7px;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  pointer-events: none;
}
 
@media (max-width: 40rem) {
  .gallery figcaption {
    padding: 1.5rem 0.6rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* ---------- Gallery responsive ---------- */
 
@media (max-width: 40rem) {
  .gallery,
  .gallery-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
 
  .gallery figcaption {
    padding: 2.5rem 1rem 0.85rem;
    font-size: 1.05rem;
  }
}

/* ---------- Links inside text ---------- */
 
.page a.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
 
.page a.link:hover,
.page a.link:focus-visible {
  color: var(--text);
}

/* ---------- Ordered list ---------- */
 
.page .list-ordered {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
 
.page .list-ordered li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.75rem;
}
 
.page .list-ordered li::before {
  content: counter(list-item) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--accent);
}