@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-bg: #0a0d12;
  --color-surface: #12161d;
  --color-ink: #f2f5f8;
  --color-text: #aeb8c4;
  --color-muted: #7b8593;
  --color-faint: #565f6b;
  --color-line: rgba(255, 255, 255, 0.07);
  --color-line-strong: rgba(255, 255, 255, 0.14);
  --color-accent: #44d62c;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: radial-gradient(1100px 620px at 78% -8%, rgba(43, 108, 214, 0.12), transparent 62%), var(--color-bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

::selection {
  background: rgba(68, 214, 44, 0.22);
  color: #fff;
}

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

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

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

/* Navigation */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 22px 32px;
  border-bottom: 1px solid var(--color-line);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.site-nav .brand .brand-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--color-ink);
}

.site-nav .links {
  display: flex;
  gap: 34px;
}

.site-nav .links a {
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--color-muted);
  transition: color 0.18s ease;
}

.site-nav .links a:hover {
  color: var(--color-ink);
}

.site-nav .links a.active {
  color: var(--color-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 3px;
}

@media (max-width: 460px) {
  .site-nav {
    padding: 16px 18px;
  }
  .site-nav .brand .brand-name {
    font-size: 16px;
  }
  .site-nav .links {
    gap: 18px;
  }
  .site-nav .links a {
    font-size: 14px;
  }
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 72px 32px 56px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero .avatar {
  width: 34%;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-line);
}

.hero .hero-text {
  flex: 1;
}

.hero .intro {
  font-size: 19px;
  color: var(--color-text);
  margin-top: 0;
  line-height: 1.75;
  max-width: 640px;
}

.hero .intro .accent {
  color: var(--color-ink);
  font-weight: 600;
}

.hero-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-contacts a,
.hero-contacts button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  appearance: none;
  font: inherit;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hero-contacts a:hover,
.hero-contacts a:focus-visible,
.hero-contacts button:hover,
.hero-contacts button:focus-visible {
  color: var(--color-accent);
  background: rgba(68, 214, 44, 0.07);
  border-color: rgba(68, 214, 44, 0.38);
  transform: translateY(-1px);
}

.hero-contacts svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.copy-status {
  min-height: 19px;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 19px;
  color: var(--color-faint);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.copy-status.is-visible {
  opacity: 1;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 32px 40px;
  }
  .hero .avatar {
    width: 100%;
  }
}

/* Bio */

.bio {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 32px 64px;
  border-top: 1px solid var(--color-line);
}

.bio p {
  font-size: 19px;
  color: var(--color-text);
  line-height: 1.75;
  margin-top: 32px;
}

.bio p a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

.bio p a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Section label */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-faint);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Field Notes grid */

.field-notes {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 72px;
  border-top: 1px solid var(--color-line);
}

.field-notes .section-label {
  margin-top: 40px;
}

.fn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 720px) {
  .fn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .fn-grid {
    grid-template-columns: 1fr;
  }
}

.fn-card img,
.fn-card .no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.fn-card:hover img,
.fn-card:hover .no-image {
  border-color: rgba(68, 214, 44, 0.45);
  box-shadow: 0 14px 40px -18px rgba(68, 214, 44, 0.5);
  filter: saturate(1.05) brightness(1.05);
  transform: translateY(-3px);
}

.fn-card .no-image {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-faint);
  font-size: 11px;
}

.fn-card .title {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-ink);
  margin-top: 14px;
}

.fn-card .desc {
  font-size: 15px;
  color: var(--color-muted);
  margin-top: 6px;
  line-height: 1.55;
}

.fn-card .read-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-top: 12px;
  display: inline-block;
  transition: color 0.18s ease;
}

.fn-card:hover .read-link {
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--color-line);
  font-size: 11px;
  color: var(--color-faint);
}

/* List rows (Projects / Blog) */

.list-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 32px 24px;
}

.list-page > h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-ink);
  margin: 0 0 28px;
}

.list-row {
  display: grid;
  grid-template-columns: clamp(140px, 22vw, 220px) minmax(0, 1fr);
  gap: 36px;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-line);
}

.list-row:last-child {
  border-bottom: none;
}

.list-row.no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.list-row .cover img,
.list-row .cover .no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.list-row:hover .cover img,
.list-row:hover .cover .no-image {
  border-color: rgba(68, 214, 44, 0.45);
  box-shadow: 0 14px 40px -18px rgba(68, 214, 44, 0.5);
  filter: saturate(1.05) brightness(1.05);
  transform: translateY(-3px);
}

.list-row .cover .no-image {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.list-row .title {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--color-ink);
  margin-top: 8px;
}

.list-row .date {
  font-size: 12px;
  color: var(--color-faint);
  margin-top: 6px;
}

.list-row .desc {
  font-size: 16px;
  color: var(--color-muted);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 560px;
}

/* Projects list: compact spacing */

.projects-list .list-row {
  padding: 32px 0;
}

/* Blog list: looser spacing, no tag */

.blog-list .list-row {
  padding: 48px 0;
}

@media (max-width: 460px) {
  .list-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Detail pages */

.detail-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 32px 72px;
}

.detail-page .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail-page .title {
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--color-ink);
  margin-top: 14px;
}

.detail-page .date {
  font-size: 13px;
  color: var(--color-faint);
  margin-top: 10px;
}

.detail-page .cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-top: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-line);
}

.detail-page .body {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.8;
  margin-top: 28px;
}

.detail-page .body p {
  margin: 0 0 22px;
}

.detail-page .body a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}

.detail-page .body a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Project case studies */

.project-case {
  margin-top: 32px;
}

.project-note-label {
  font-family: var(--font-mono);
  color: var(--color-faint);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.project-case > h2 {
  margin: 58px 0 20px;
  color: var(--color-ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
  text-wrap: balance;
}

.project-blog-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line-strong);
  border-bottom: 1px solid var(--color-line-strong);
}

.detail-page .project-blog-intro {
  margin: 34px 0 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.8;
}

.project-blog-intro + .project-blog-preview {
  margin-top: 14px;
}

.project-blog-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.project-blog-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.project-blog-preview-copy strong {
  margin-top: 8px;
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.project-blog-preview-copy > span:not(.project-note-label):not(.project-blog-preview-link) {
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.project-blog-preview-link {
  margin-top: 16px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.project-blog-preview:hover img {
  border-color: rgba(68, 214, 44, 0.35);
  transform: translateY(-2px);
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 64px;
}

.detail-page .body .project-media-grid figure {
  min-width: 0;
  margin: 0;
}

.project-media-grid video,
.project-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--color-line-strong);
  border-radius: 4px;
}

.project-media-grid a {
  display: block;
  text-decoration: none;
}

.project-media-grid img {
  object-fit: contain;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.project-media-grid a:hover img {
  border-color: rgba(68, 214, 44, 0.35);
  transform: translateY(-2px);
}

.detail-page .body .project-media-grid figcaption {
  margin-top: 11px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--color-muted);
}

.detail-page .body .project-media-grid figcaption strong {
  color: var(--color-text);
  font-weight: 600;
}

.olfaction-case > h2 {
  max-width: 820px;
}

.project-image-banner {
  display: block;
  margin-bottom: 38px;
}

.project-image-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, outline-color 0.22s ease;
}

.project-image-banner:hover img {
  outline-color: rgba(68, 214, 44, 0.45);
  transform: translateY(-2px);
}

.project-image-banner:active img {
  transform: scale(0.96);
}

.olfaction-result {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.7fr);
  gap: 32px;
  align-items: center;
  margin: 38px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--color-line-strong);
  border-bottom: 1px solid var(--color-line-strong);
}

.detail-page .body .olfaction-result figure {
  min-width: 0;
  margin: 0;
}

.olfaction-result figure a {
  display: block;
}

.detail-page .body .olfaction-result img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, outline-color 0.22s ease;
}

.detail-page .body .olfaction-result a:hover img {
  outline-color: rgba(68, 214, 44, 0.45);
  transform: translateY(-2px);
}

.detail-page .body .olfaction-result figcaption {
  margin-top: 10px;
  color: var(--color-faint);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
}

.olfaction-result-copy {
  min-width: 0;
}

.olfaction-result-copy > strong {
  display: block;
  margin-top: 8px;
  color: var(--color-ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.1;
}

.detail-page .body .olfaction-result-copy p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.65;
}

.motion-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.detail-page .body .motion-media-grid figure {
  min-width: 0;
  margin: 0;
}

.motion-media-grid a {
  display: block;
  text-decoration: none;
}

.motion-media-grid img,
.motion-media-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

.motion-media-grid img {
  object-fit: cover;
  transition: transform 0.22s ease, outline-color 0.22s ease;
}

.motion-media-grid a:hover img {
  outline-color: rgba(68, 214, 44, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .detail-page .title {
    font-size: 38px;
  }

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

  .olfaction-result {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-blog-preview {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-blog-preview img {
    max-width: 360px;
  }

  .project-blog-preview-copy strong {
    font-size: 19px;
  }

  .motion-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .motion-project .title {
    font-size: 36px;
    line-height: 1.15;
    text-wrap: balance;
  }
}

/* Technical articles */

.technical-article h2 {
  margin: 64px 0 22px;
  color: var(--color-ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.technical-article > .title {
  margin: 0 0 28px;
}

.technical-article .technical-figure {
  margin: 42px 0 46px;
}

.technical-article .technical-figure > a {
  display: block;
  text-decoration: none;
}

.technical-article .technical-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #080b10;
  border: 1px solid var(--color-line-strong);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.technical-article .technical-figure > a:hover img {
  border-color: rgba(68, 214, 44, 0.35);
  box-shadow: 0 14px 36px -24px rgba(68, 214, 44, 0.45);
}

.detail-page .technical-article .technical-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--color-muted);
}

.detail-page .technical-article .technical-figure figcaption strong {
  color: var(--color-text);
  font-weight: 600;
}

.technical-article h3 {
  margin: 42px 0 18px;
  color: var(--color-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.technical-article ul,
.technical-article ol {
  margin: 0 0 26px;
  padding-left: 28px;
}

.technical-article li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.technical-article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 0.12em 0.34em;
}

.technical-article .table-scroll {
  width: 100%;
  margin: 30px 0 34px;
  overflow-x: auto;
  border-top: 1px solid var(--color-line-strong);
  border-bottom: 1px solid var(--color-line-strong);
  scrollbar-color: var(--color-faint) transparent;
}

.technical-article table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.technical-article th,
.technical-article td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.technical-article th {
  font-family: var(--font-mono);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.technical-article tr:last-child td {
  border-bottom: 0;
}

.technical-article .equation {
  max-width: 100%;
  margin: 30px 0 34px;
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--color-line-strong);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  white-space: nowrap;
}

.technical-article .equation-wrap {
  display: flex;
  flex-direction: column;
  white-space: normal;
}

.technical-article .process-flow {
  margin: 28px 0 30px;
  padding: 18px 20px;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--color-line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.technical-article .references h2 {
  margin-top: 64px;
}

.technical-article .references ol {
  font-size: 14px;
  line-height: 1.65;
}

.technical-article .references li {
  margin-bottom: 13px;
}

@media (max-width: 560px) {
  .technical-article > .title {
    font-size: 32px;
    line-height: 1.15;
  }

  .technical-article h2 {
    margin-top: 52px;
    font-size: 24px;
  }

  .technical-article h3 {
    margin-top: 36px;
    font-size: 19px;
  }

  .technical-article .equation {
    padding: 14px;
    font-size: 13px;
  }

}

.detail-page .body figure {
  margin: 40px 0;
}

.detail-page .body figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--color-line);
  display: block;
}

.detail-page .body figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--color-faint);
  margin-top: 10px;
}

.detail-page .body .figrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 40px 0;
}

.detail-page .body .figrow figure {
  margin: 0;
}

.detail-page .body .figrow figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-page .body .figrow.kth-moments {
  grid-template-columns: repeat(3, 1fr);
}

.detail-page .body .figrow.kth-moments img {
  aspect-ratio: 4 / 3;
}

.detail-page .body .figrow.landscape-moments img,
.detail-page .body .figrow.travel-moments img {
  aspect-ratio: 3 / 2;
}

.detail-page .body .figrow.training-moments img {
  aspect-ratio: 3 / 4;
}

.detail-page .body .figrow.training-moments {
  grid-template-columns: repeat(3, 1fr);
}

.detail-page .body .figrow.travel-moments {
  grid-template-columns: repeat(3, 1fr);
}

.detail-page .body figure.portrait img {
  max-width: 360px;
}

.detail-page .body figure.medium {
  max-width: 640px;
}

.detail-page .body figure.small {
  max-width: 360px;
}

.detail-page .body figure.align-right {
  margin-left: auto;
}

.detail-page .body .photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 40px 0;
}

.detail-page .body .photo-grid figure {
  min-width: 0;
  margin: 0;
}

.detail-page .body .photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 720px) {
  .detail-page .body .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .detail-page .body .figrow.kth-moments {
    grid-template-columns: 1fr;
  }

  .detail-page .body .figrow.travel-moments {
    grid-template-columns: 1fr;
  }

  .detail-page .body .figrow.training-moments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .detail-page .body .figrow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.detail-page .back-link {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.detail-page .back-link a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-faint);
  transition: color 0.18s ease;
}

.detail-page .back-link a:hover {
  color: var(--color-accent);
}

/* Not found */

.not-found {
  display: flex;
  min-height: calc(100vh - 152px);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.not-found-code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
}

.not-found h1 {
  margin: 14px 0 0;
  color: var(--color-ink);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.not-found p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--color-text);
  font-size: 18px;
}

.not-found-link {
  margin-top: 30px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
}
