/* ============================================================
   fridgespy — public design system
   Palette: deep green-charcoal / bone / single amber accent
   Type: Space Grotesk (display) + JetBrains Mono (meta) + CJK fallback
   ============================================================ */

:root {
  --bg: #0a0d0b;
  --bg-soft: #0e120e;
  --surface: #121610;
  --surface-2: #161b14;
  --line: rgba(236, 231, 219, 0.10);
  --line-soft: rgba(236, 231, 219, 0.055);
  --text: #ece7db;
  --text-strong: #fbf7ec;
  --muted: #a3a99b;
  --accent: #e5a457;
  --accent-strong: #f3bb72;
  --on-accent: #17120a;
  --radius: 14px;
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas,
    monospace;
  --nav-h: 68px;
  --container: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(229, 164, 87, 0.28);
  color: var(--text-strong);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #23291f;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #313a2c;
}

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

ul,
ol {
  list-style-position: inside;
}

strong {
  color: var(--text-strong);
  font-weight: 650;
}

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

/* ============ Ambient background layers ============ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 440px at 12% 8%, rgba(229, 164, 87, 0.07), transparent 66%),
    radial-gradient(760px 540px at 90% 94%, rgba(96, 128, 84, 0.11), transparent 66%),
    radial-gradient(520px 420px at 70% 30%, rgba(229, 164, 87, 0.035), transparent 70%);
  animation: ambient-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1.5%, 0) scale(1.04);
  }
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(229, 164, 87, 0.17),
    rgba(229, 164, 87, 0.055) 42%,
    transparent 70%
  );
  filter: blur(56px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  mix-blend-mode: screen;
  will-change: transform;
  z-index: 0;
}

.js .bg-glow.is-active {
  opacity: 1;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

section[id],
article[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* ============ Layout primitives ============ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-top {
  padding-top: 8px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.page-head {
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(28px, 4vw, 44px);
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.page-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.empty-hint {
  color: var(--muted);
  text-align: center;
  padding: 56px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ============ Navigation ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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);
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    transform 0.18s ease, box-shadow 0.22s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--text);
  color: #141008;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(229, 164, 87, 0.18);
}

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

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

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* ============ Hero ============ */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 88px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(3.3rem, 9.5vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--text-strong);
}

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

.hero-desc {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Hero entrance */

.hero-copy .hero-kicker,
.hero-copy .hero-title,
.hero-copy .hero-desc,
.hero-copy .hero-actions,
.hero-panel {
  animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-copy .hero-title {
  animation-delay: 0.05s;
}
.hero-copy .hero-desc {
  animation-delay: 0.12s;
}
.hero-copy .hero-actions {
  animation-delay: 0.2s;
}
.hero-panel {
  animation-delay: 0.22s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-items {
  margin-top: 12px;
}

.panel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 0.22s ease;
}

.panel-item:hover {
  padding-left: 6px;
}

.panel-item-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
}

.panel-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.panel-item:hover .panel-item-title {
  color: var(--accent-strong);
}

.panel-item-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-foot {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ============ About ============ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 62ch;
}

.quote {
  margin-top: 28px;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.8;
}

.facts {
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.facts span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.facts strong {
  text-align: right;
}

.facts strong.ok {
  color: var(--accent-strong);
}

/* ============ Post list ============ */

.post-list {
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.post-row-body h3 {
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.post-row-body h3 a {
  color: var(--text);
  text-decoration: underline transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.post-row-body h3 a:hover {
  color: var(--accent-strong);
  text-decoration-color: rgba(229, 164, 87, 0.55);
}

.post-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-top: 7px;
  max-width: 66ch;
}

.post-row-tags {
  margin-top: 10px;
}

/* ============ Tags ============ */

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
}

/* ============ Project tiles (index) ============ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-tile:hover {
  border-color: rgba(229, 164, 87, 0.45);
  transform: translateY(-3px);
}

.project-tile-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.project-tile h3 {
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.35;
}

.project-tile h3 a {
  color: var(--text);
  transition: color 0.2s ease;
}

.project-tile h3 a:hover {
  color: var(--accent-strong);
}

.project-tile-summary {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
  flex: 1;
}

.project-tile .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ============ Project rows (projects page) ============ */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

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

.project-row-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.project-row-main h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.project-row-summary {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 70ch;
  margin-bottom: 12px;
}

.project-row-main .tags {
  margin-bottom: 12px;
}

.project-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 4px;
  min-width: 200px;
}

.file-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong, var(--line));
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 260px;
  text-align: right;
  overflow-wrap: anywhere;
}

.project-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
  max-width: 72ch;
}

.project-details {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.project-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  user-select: none;
  transition: color 0.2s ease;
}

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

.project-details summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.project-details[open] summary::after {
  transform: rotate(-135deg);
}

.project-details summary:hover {
  color: var(--accent-strong);
}

.project-details .project-desc {
  margin-top: 12px;
}

.project-desc p {
  margin-bottom: 0.8em;
}

.project-desc ul,
.project-desc ol {
  margin-left: 1.2em;
  margin-bottom: 0.8em;
}

.project-desc pre,
.project-desc code {
  font-family: var(--font-mono);
}

/* ============ Contact ============ */

.contact-band {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-text {
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 34px;
  font-size: 1.04rem;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 30px;
  overflow-wrap: anywhere;
}

/* ============ Post page ============ */

.post-container {
  max-width: 780px;
}

.post-head {
  margin-bottom: 40px;
}

.post-head .post-date-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-head .tags {
  margin-top: 18px;
}

.post-content {
  font-size: 1.03rem;
  line-height: 1.95;
  color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.8em 0 0.65em;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.post-content h1 {
  font-size: 1.75rem;
}
.post-content h2 {
  font-size: 1.45rem;
}
.post-content h3 {
  font-size: 1.22rem;
}
.post-content h4 {
  font-size: 1.08rem;
}

.post-content p {
  margin-bottom: 1.25em;
}

.post-content a {
  color: var(--accent-strong);
  border-bottom: 1px solid rgba(229, 164, 87, 0.4);
  transition: border-color 0.2s ease;
}

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

.post-content ul,
.post-content ol {
  margin: 0 0 1.25em 1.3em;
}

.post-content li {
  margin-bottom: 0.45em;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  color: var(--muted);
}

.post-content pre {
  background: #0d110d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.post-content code {
  font-family: var(--font-mono);
  background: rgba(229, 164, 87, 0.1);
  color: var(--accent-strong);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #d8e0cf;
}

.post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.post-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: var(--bg-soft);
  color: var(--text-strong);
}

.post-foot {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.to-top {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

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

/* ============ Reveal ============ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease var(--d, 0s),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */

@media (max-width: 920px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }

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

  .hero-panel {
    max-width: 480px;
  }

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

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row-side {
    align-items: flex-start;
    padding-top: 0;
  }

  .file-chip {
    text-align: left;
    max-width: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 13, 11, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post-date {
    font-size: 0.76rem;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (pointer: coarse) {
  .bg-glow {
    display: none;
  }
}

/* ============ Reduced motion ============ */

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .bg-glow {
    opacity: 0 !important;
  }
}
