@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/gallery/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #192d26;
  --muted: #56655c;
  --line: #dcded2;
  --green: #253f33;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid #4b765e; outline-offset: 5px; }
section { scroll-margin-top: 26px; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font: 400 30px/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.015em;
}
.brand-mark {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  border: 1px solid #d9e1c8;
}
.brand-mark::before { width: 16px; height: 16px; border-radius: 50%; }
.brand-mark::after { width: 20px; height: 8px; border-radius: 50%; transform: rotate(-36deg); }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3.5vw, 48px); }
.site-header nav a {
  padding-block: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}
.site-header nav a:hover, .page-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.intro {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 13px 30px;
  padding-block: clamp(34px, 4.1vw, 63px) clamp(26px, 2.6vw, 39px);
}
.intro h1, .aquarium-copy h2, .section-heading h2, .rabbit-copy h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.15;
}
.intro h1 { font-size: clamp(38px, 4.6vw, 68px); }
.intro p, .section-heading p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.aquarium-feature {
  --art-width: 85%;
  --fade-edge: calc(100% - var(--art-width) + 10%);
  --tank-shade: #0b1b30;
  position: relative;
  display: flex;
  min-height: clamp(365px, 33.4vw, 485px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 17px;
  background: var(--tank-shade);
  color: #f6f6ed;
}
.aquarium-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: var(--art-width);
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}
.aquarium-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--tank-shade) 0, var(--tank-shade) var(--fade-edge), transparent 46%);
  pointer-events: none;
}
.aquarium-copy { width: 34%; padding: 36px 0 36px clamp(30px, 5.35vw, 80px); }
.aquarium-copy h2 { font-size: clamp(34px, 4.1vw, 60px); white-space: nowrap; }
.aquarium-copy p, .rabbit-copy p {
  max-width: 17em;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
}
.aquarium-copy p { color: #d7e4d9; }
.entry {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 0 17px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .18s ease;
}
.entry span, .card-arrow { font: 400 18px/1 system-ui, sans-serif; }
.entry-light { color: #1f362b; background: #e5edd6; }
.entry-light:hover { background: #fbf9e7; }
.entry-light:focus-visible { outline-color: #e5edd6; }

.fish-section { margin-top: clamp(43px, 5vw, 70px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.section-heading h2 { font-size: clamp(28px, 3.3vw, 44px); }
.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 25px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fish-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcf7;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fish-card:hover { border-color: #8f9d8d; box-shadow: 0 8px 22px #1b342416; }
.fish-image {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.fish-image.arowana { background: radial-gradient(ellipse at 50% 34%, #394f50, #16282e 80%); }
.fish-image.guppy { background: radial-gradient(ellipse at 48% 34%, #2a4b56, #142833 82%); }
.fish-image.school { background: radial-gradient(ellipse at 46% 38%, #425749, #162e27 80%); }
.fish-image img {
  width: 85%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: transform .35s ease;
}
.fish-image.guppy img { width: 70%; }
.fish-image.school img { width: 83%; }
.fish-card:hover img { transform: scale(1.045); }
.fish-copy {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 17px clamp(12px, 1.6vw, 24px) 19px;
}
.fish-copy h3 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 650; line-height: 1.35; }
.fish-copy p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-arrow {
  display: grid;
  flex: 0 0 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: background-color .18s ease, color .18s ease;
}
.fish-card:hover .card-arrow { background: var(--green); color: #f7f6f0; }

.rabbit-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(49%, 460px);
  align-items: center;
  overflow: hidden;
  margin-top: clamp(53px, 6.4vw, 87px);
  border: 1px solid #e8dbcc;
  border-radius: 17px;
  background: #eee3d5;
  color: #513b32;
}
.rabbit-copy { padding: clamp(30px, 5.4vw, 80px); }
.rabbit-copy h2 { font-size: clamp(33px, 4.5vw, 62px); }
.rabbit-copy p { max-width: 23em; color: #604c42; }
.entry-warm { background: #654638; color: #fffaf3; }
.entry-warm:hover { background: #462f26; }
.entry-warm:focus-visible { outline-color: #654638; }
.rabbit-image { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 4vw, 61px);
  padding-block: 20px 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.page-footer a { padding-block: 4px; }
.page-footer span { margin-left: 4px; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .aquarium-feature { --art-width: 83%; }
  .aquarium-copy { width: 38%; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-content { min-height: 65px; }
  .wordmark { font-size: 26px; }
  .site-header nav { gap: 20px; }
  .aquarium-feature { display: grid; align-items: end; min-height: 0; }
  .aquarium-image { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
  .aquarium-feature::after { background: linear-gradient(0deg, var(--tank-shade) 45%, transparent 57%); }
  .aquarium-copy { width: auto; padding: 23px 25px 26px; }
  .aquarium-copy p { max-width: 27em; margin-top: 10px; }
  .entry { margin-top: 19px; }
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rabbit-feature { grid-template-columns: minmax(0, 1fr) 48%; }
}
@media (max-width: 510px) {
  .header-content { align-items: flex-start; flex-direction: column; gap: 3px; padding-top: 15px; }
  .brand-mark { width: 27px; height: 27px; }
  .site-header nav { width: 100%; gap: 26px; }
  .intro { padding-top: 30px; row-gap: 8px; }
  .intro p { font-size: 13px; }
  .fish-grid { grid-template-columns: 1fr; }
  .fish-card { flex-direction: row; min-height: 107px; }
  .fish-image { flex: 0 0 40%; aspect-ratio: auto; }
  .fish-copy { padding: 12px; }
  .fish-copy p { font-size: 12px; }
  .card-arrow { flex-basis: 29px; height: 29px; font-size: 15px; }
  .rabbit-feature { grid-template-columns: 1fr; }
  .rabbit-copy { padding: 25px; }
  .rabbit-copy p { font-size: 14px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
