/* Take Care of the Island — landing theme: island / nature / strategy */

:root {
  --bg: #f6fbf5;
  --primary: #7abf9b;
  --primary-deep: #4f9271;
  --line: #d6eadf;
  --shadow: 0 14px 30px rgba(78, 121, 101, 0.14);

  --ocean-deep: #0a2530;
  --ocean-mid: #134e5e;
  --ocean-light: #1f6f7a;
  --lagoon: #2a8f9d;
  --sand: #d4c4a8;
  --sand-bright: #efe6d7;
  --canopy: #1e3d2f;
  --fern: #3d6b4f;
  --mist: rgba(239, 230, 215, 0.08);
  --text-on-dark: #f4efe6;
  --text-muted-dark: rgba(244, 239, 230, 0.72);
  --text-body: #1c2a26;
  --text-muted-body: #4a5c55;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.25);
  --grid-line: rgba(19, 78, 94, 0.12);
  --shadow-soft: 0 18px 50px rgba(10, 37, 48, 0.35);
  --radius-card: 12px;
  --radius-lg: 20px;
  --nav-h: 4rem;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-body);
  background: linear-gradient(180deg, #f3fbff 0%, #f6fbf5 55%, #f9fff8 100%);
  font-family:
    Nunito,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "PingFang SC",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--ocean-mid);
  text-decoration-skip-ink: auto;
}

a:hover {
  color: var(--ocean-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--sand-bright);
  border: 1px solid var(--grid-line);
  color: var(--text-body);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(239, 230, 215, 0.94) 0%,
    rgba(239, 230, 215, 0.82) 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid-line);
}

.site-header--glass {
  background: rgba(246, 251, 245, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 28px rgba(38, 52, 44, 0.06);
}

.header-inner {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.65rem;
}

.header-nav-menu-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.brand {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--canopy);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ocean-mid);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted-body);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--ocean-deep);
  background: rgba(19, 78, 94, 0.08);
}

.lang-switch button[aria-current="true"] {
  color: var(--ocean-deep);
  background: rgba(255, 252, 247, 0.95);
  border-color: var(--grid-line);
}

.lang-switch span {
  opacity: 0.4;
  color: var(--text-muted-body);
  font-size: 0.75rem;
  user-select: none;
}

/* Glass nav pill (hero + site header) */
.glass-nav-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 26px rgba(38, 52, 44, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.glass-nav-pill a {
  color: rgba(26, 40, 34, 0.9);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.42rem;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}

.glass-nav-pill > a:not(.glass-nav-studio):hover {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.45);
}

.glass-nav-studio {
  margin-left: 0.12rem;
  padding: 0.38rem 0.92rem !important;
  background: rgba(56, 76, 68, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.glass-nav-studio:hover {
  background: rgba(46, 64, 56, 0.62);
  color: #fff !important;
}

.lang-switch--glass {
  gap: 0.2rem;
  padding: 0.32rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    0 2px 22px rgba(38, 52, 44, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.lang-switch--glass button {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.52rem;
  border: 1px solid transparent;
  color: rgba(26, 40, 34, 0.82);
  background: transparent;
}

.lang-switch--glass button:hover {
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.4);
}

.lang-switch--glass button[aria-current="true"] {
  color: #142924;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(122, 191, 155, 0.4);
  box-shadow: 0 1px 6px rgba(38, 52, 44, 0.08);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-nav-pill,
  .lang-switch--glass {
    background: rgba(255, 255, 255, 0.82);
  }

  .glass-nav-studio {
    background: rgba(72, 92, 82, 0.88);
  }
}

/* ---------- Hero (full viewport banner) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  padding-inline: clamp(1rem, 3vw, 2.4rem);
  padding-block: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #f7fcf9;
  background-image: url("Assets/island_hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transform-origin: center;
  filter: brightness(1.38) saturate(0.74);
  -webkit-mask-image: radial-gradient(
    ellipse 105% 95% at 50% 44%,
    #000 22%,
    rgba(0, 0, 0, 0.52) 52%,
    transparent 88%
  );
  mask-image: radial-gradient(
    ellipse 105% 95% at 50% 44%,
    #000 22%,
    rgba(0, 0, 0, 0.52) 52%,
    transparent 88%
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(142, 210, 223, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(122, 191, 155, 0.18) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(249, 251, 250, 0.02), rgba(249, 251, 250, 0.02)),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 56%,
      rgba(246, 251, 245, 0.55) 78%,
      var(--bg) 100%
    );
}

.hero-nav {
  position: relative;
  z-index: 3;
  align-self: start;
  justify-self: stretch;
  padding-block: clamp(0.85rem, 2.2vh, 1.35rem) 0;
}

.hero-nav-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero-brand.brand {
  font-weight: 700;
  font-size: clamp(0.92rem, 2.4vw, 1.06rem);
  letter-spacing: 0.03em;
  color: #15251c;
  text-decoration: none;
  justify-self: start;
  text-shadow:
    0 0 10px rgba(252, 253, 252, 0.95),
    0 0 22px rgba(248, 252, 249, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 5px rgba(38, 52, 44, 0.12);
}

.hero-brand.brand:hover {
  color: var(--primary-deep);
  text-decoration: none;
}

.hero-nav-menu-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-self: center;
  max-width: 100%;
}

.hero-nav .lang-switch--glass {
  margin-left: 0;
  justify-self: end;
}

@media (max-width: 900px) {
  .hero-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-nav-inner .hero-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-nav-inner .lang-switch--glass {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .hero-nav-menu-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
  }

  .hero-nav-menu-wrap .glass-nav-pill {
    width: max-content;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-inner .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-inner .lang-switch--glass {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-nav-menu-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
  }

  .header-nav-menu-wrap .glass-nav-pill {
    width: max-content;
    max-width: none;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: start;
  width: 100%;
  max-width: 680px;
  margin-block: clamp(1rem, 6vh, 5rem);
  padding-bottom: clamp(1.75rem, 4vh, 2.75rem);
  text-align: left;
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  display: inline-flex;
  align-items: center;
  padding: 0.42em 1em 0.38em;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2d6a4d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(122, 191, 155, 0.42);
  border-radius: 999px;
  text-shadow:
    0 0 6px rgba(252, 253, 252, 0.98),
    0 0 14px rgba(248, 252, 249, 0.88),
    0 0 24px rgba(248, 252, 249, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 3px rgba(38, 52, 44, 0.14);
}

.hero h1 {
  margin: 0 0 0.95rem;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #15251c;
  text-shadow:
    0 0 12px rgba(252, 253, 252, 0.98),
    0 0 28px rgba(248, 252, 249, 0.92),
    0 0 52px rgba(248, 252, 249, 0.68),
    0 2px 0 rgba(255, 255, 255, 0.85),
    0 2px 10px rgba(38, 52, 44, 0.18),
    0 3px 14px rgba(38, 52, 44, 0.1);
}

.hero-subtitle {
  margin: 0 0 1.85rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.62;
  max-width: 58ch;
  color: #2a3d34;
  text-shadow:
    0 0 6px rgba(252, 253, 252, 0.97),
    0 0 16px rgba(248, 252, 249, 0.85),
    0 0 30px rgba(248, 252, 249, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 4px rgba(38, 52, 44, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.hero .hero-cta:not(.hero-cta--ghost) {
  color: #071912;
  background-image: linear-gradient(130deg, var(--primary), #89c8a9);
  border: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(248, 252, 249, 0.48),
    0 0 38px rgba(248, 252, 249, 0.22),
    var(--shadow);
}

.hero .hero-cta:not(.hero-cta--ghost):hover {
  transform: translateY(-2px);
  color: #071912;
  text-decoration: none;
  filter: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52),
    0 0 22px rgba(248, 252, 249, 0.58),
    0 0 44px rgba(248, 252, 249, 0.32),
    0 16px 28px rgba(78, 121, 101, 0.22);
}

.hero .hero-cta--ghost {
  color: #1e4734;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(122, 191, 155, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 12px rgba(248, 252, 249, 0.35);
  text-shadow:
    0 0 8px rgba(252, 253, 252, 0.92),
    0 1px 3px rgba(38, 52, 44, 0.12);
}

.hero .hero-cta--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.4);
  color: var(--primary-deep);
  text-decoration: none;
  filter: none;
}

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

.section {
  padding: 4rem 1.25rem;
}

.section--muted {
  background: linear-gradient(180deg, #e9dfd0 0%, var(--sand-bright) 100%);
}

.section__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section__head {
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.section__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ocean-deep);
}

.section__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted-body);
}

/* Features */

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--grid-line);
  box-shadow: 0 12px 30px rgba(19, 78, 94, 0.06);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lagoon), var(--fern));
  border-radius: 4px 0 0 4px;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--canopy);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted-body);
  font-size: 0.96rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  border: 1px dashed rgba(19, 78, 94, 0.28);
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(212, 196, 168, 0.35),
      rgba(212, 196, 168, 0.35) 12px,
      rgba(245, 240, 230, 0.6) 12px,
      rgba(245, 240, 230, 0.6) 24px
    );
  display: grid;
  place-items: center;
  color: rgba(26, 42, 38, 0.45);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Development log — landing preview */

.devlog-cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .devlog-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.devlog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.25rem 1.15rem;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid rgba(19, 78, 94, 0.12);
  box-shadow: 0 10px 28px rgba(19, 78, 94, 0.06);
}

.devlog-card__date {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted-body);
}

.devlog-card__date time {
  text-decoration: none;
}

.devlog-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--canopy);
}

.devlog-card__summary {
  margin: 0;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted-body);
}

.devlog-card__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.devlog-card__details {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--fern);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-align: left;
}

.devlog-card__details:hover {
  color: var(--ocean-mid);
  background: transparent;
}

.devlog-open-full {
  margin: 1.75rem 0 0;
  text-align: left;
}

.devlog-open-full__link {
  display: inline;
  padding: 0;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: var(--fern);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  border: none;
}

.devlog-open-full__link:hover {
  filter: none;
  color: var(--ocean-mid);
  text-decoration: underline;
}

/* Modal — details (native dialog) */

.devlog-dialog {
  width: min(92vw, 40rem);
  max-height: min(88vh, 36rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
}

.devlog-dialog::backdrop {
  background: rgba(10, 37, 48, 0.55);
  backdrop-filter: blur(4px);
}

.devlog-dialog__panel {
  position: relative;
  max-height: min(88vh, 36rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--sand-bright);
  border: 1px solid rgba(19, 78, 94, 0.2);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.devlog-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--grid-line);
  background: #fff;
  color: var(--ocean-deep);
  cursor: pointer;
}

.devlog-dialog__close:hover {
  background: var(--ocean-mid);
  border-color: var(--ocean-mid);
  color: var(--text-on-dark);
}

.devlog-dialog__body {
  overflow: auto;
  padding: 2.75rem 1.35rem 1.35rem;
  color: var(--text-body);
}

.devlog-dialog__date {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-mid);
}

.devlog-detail__lang {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px dashed rgba(19, 78, 94, 0.18);
}

.devlog-detail__lang:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.devlog-detail__lang h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--canopy);
}

.devlog-detail__lang p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted-body);
}

.devlog-detail__lang ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--text-muted-body);
}

.devlog-detail__lang li + li {
  margin-top: 0.35rem;
}

/* Dev log full page */

.sub-main {
  padding: calc(var(--nav-h) + 2rem) 1.25rem 4rem;
  background: linear-gradient(180deg, var(--sand-bright) 0%, #ebe3d6 45%, var(--sand-bright) 100%);
  min-height: 50vh;
}

.devlog-page__title {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
}

.devlog-timeline {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .devlog-timeline {
    grid-template-columns: 11rem 1fr;
    align-items: start;
    gap: 2.25rem;
  }
}

.devlog-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--grid-line);
  box-shadow: 0 8px 22px rgba(19, 78, 94, 0.06);
}

.devlog-toc h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-mid);
}

.devlog-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.devlog-toc a {
  font-weight: 600;
  color: var(--ocean-deep);
  text-decoration: none;
}

.devlog-toc a:hover {
  text-decoration: underline;
}

.devlog-month {
  margin-bottom: 2.5rem;
}

.devlog-month h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ocean-deep);
}

.devlog-full {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.35rem;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--grid-line);
  box-shadow: 0 8px 24px rgba(19, 78, 94, 0.05);
}

.devlog-full__date {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-mid);
}

.devlog-full .devlog-detail__lang h3 {
  font-size: 1.08rem;
}

.devlog-back {
  margin: 2.5rem 0 0;
  text-align: center;
}

.devlog-back a {
  font-weight: 700;
  color: var(--ocean-deep);
}

/* Footer */

.site-footer {
  padding: 1.85rem 1.25rem 2.25rem;
  margin: 0;
  background: linear-gradient(180deg, #e8e0d2 0%, var(--sand-bright) 100%);
  border-top: 1px solid rgba(19, 78, 94, 0.12);
  color: var(--text-muted-body);
}

.footer-bar {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
}

.footer-bar .footer-copy {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.88rem;
  color: var(--text-muted-body);
}

.footer-bar .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-bar .footer-links a {
  color: var(--canopy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-bar .footer-links a:hover {
  color: var(--ocean-mid);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }

  .hero .hero-cta:hover,
  .hero .hero-cta.hero-cta--ghost:hover {
    transform: none;
  }
}
