/* Fisher2026 — 林予川的个人站 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --deep: #0a3d4a;
  --teal: #1a6b7c;
  --aqua: #3db8c4;
  --aqua-light: #7dd3dc;
  --foam: #e8f4f6;
  --sand: #f5ebe0;
  --sand-dark: #e8dcc8;
  --coral: #e07a5f;
  --coral-dark: #c4614a;
  --ink: #1c2b33;
  --ink-soft: #4a5f6b;
  --white: #fefefe;
  --shadow: 0 8px 32px rgba(10, 61, 74, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 61, 74, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Source Sans 3', 'PingFang SC', sans-serif;
  --nav-h: 72px;
  --max-w: 1120px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(61, 184, 196, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(224, 122, 95, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--ink-soft); }

.container {
  width: min(var(--max-w), 92vw);
  margin-inline: auto;
}

/* ── Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(232, 244, 246, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 61, 74, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep);
}

.logo:hover { color: var(--teal); }

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--deep);
  background: rgba(61, 184, 196, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--deep);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 61, 74, 0.88) 0%,
    rgba(26, 107, 124, 0.72) 45%,
    rgba(10, 61, 74, 0.55) 100%
  );
}

.hero-content {
  padding: 4rem 0 6rem;
  color: var(--white);
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--aqua-light);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--aqua);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.5rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 { margin-bottom: 0.5rem; }

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.card-link:hover::after { transform: translateX(4px); }

/* ── Feature split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.split-img img { width: 100%; }

.split-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid rgba(61, 184, 196, 0.3);
  pointer-events: none;
}

.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; }

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-dark);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--teal);
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--aqua), var(--coral));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--aqua);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

.timeline-item h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.timeline-item p { font-size: 0.95rem; }

/* ── Embed grid (DrawAFish etc.) ── */
.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.embed-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.embed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.embed-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 61, 74, 0.85), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay span {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ── Tank cards ── */
.tank-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--aqua);
}

.tank-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.tank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--foam);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}

/* ── Journal entries ── */
.journal-list { display: flex; flex-direction: column; gap: 1.5rem; }

.journal-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.journal-entry:hover { box-shadow: var(--shadow-lg); }

.journal-date {
  text-align: center;
  padding: 0.75rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
  align-self: start;
}

.journal-date .day {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.journal-date .month {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.journal-body h3 { margin-bottom: 0.5rem; }
.journal-body p { font-size: 0.95rem; }

/* ── Links page ── */
.link-section { margin-bottom: 3rem; }

.link-section h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aqua);
  display: inline-block;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.link-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--foam);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.link-card h4 { font-size: 1rem; margin-bottom: 0.15rem; color: var(--deep); }
.link-card p { font-size: 0.85rem; }

/* ── Page header (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(61, 184, 196, 0.12), transparent);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── About profile ── */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 { margin-bottom: 0.25rem; }
.profile-subtitle {
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 1rem;
}

.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fact {
  padding: 0.75rem 1rem;
  background: var(--foam);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.fact strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.15rem;
}

/* ── Quote block ── */
.quote-block {
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ── CTA band ── */
.cta-band {
  background: var(--sand);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { margin-bottom: 1.5rem; max-width: 480px; margin-inline: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
  color: var(--aqua-light);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--aqua-light); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 61, 74, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── 404 ── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--aqua);
  line-height: 1;
  opacity: 0.5;
}

.error-page h1 { margin: 1rem 0; }
.error-page p { margin-bottom: 2rem; max-width: 400px; margin-inline: auto; }

/* ── Utilities ── */
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .split,
  .profile-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-reverse { direction: ltr; }

  .journal-entry {
    grid-template-columns: 1fr;
  }

  .journal-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .journal-date .day { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(232, 244, 246, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .stat-row { flex-wrap: wrap; gap: 1rem; }
  .profile-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
