:root {
  color-scheme: light;
  --ink: #18332f;
  --ink-soft: #45615b;
  --paper: #f3f0e7;
  --paper-deep: #e7e1d4;
  --accent: #c8a96a;
  --line: rgb(24 51 47 / 18%);
  font-family:
    Inter, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: white;
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem clamp(1.25rem, 5vw, 5rem);
  color: white;
}

.site-logo {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.035em;
}

.site-logo span {
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.5rem);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-nav a {
  position: relative;
  padding-block: 0.4rem;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(52rem, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 8vw, 8rem) 5rem;
  color: white;
  background-color: #38534f;
  background-image: url("../images/hero-cast-again.png");
  background-position: center right;
  background-size: cover;
}

/* Keep the copy legible without covering the fisherman on the right. */
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 29 34 / 88%) 0%, rgb(8 29 34 / 68%) 38%, rgb(8 29 34 / 12%) 72%),
    linear-gradient(0deg, rgb(5 20 23 / 30%), transparent 45%);
  content: "";
}

.hero__content {
  width: min(100%, 43rem);
}

.hero__eyebrow,
.section-label {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: rgb(255 255 255 / 72%);
}

.hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.28;
  text-wrap: balance;
}

.hero__copy {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  color: rgb(255 255 255 / 85%);
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 2;
}

.button {
  display: inline-flex;
  min-width: 12rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 0.9rem 1.15rem 0.9rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 70%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: gap 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: #f2d59d;
  gap: 2.5rem;
}

.hero__scroll {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 2.2rem;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
}

.introduction,
.categories,
.journal,
.contact {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 8rem);
}

.introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.section-label {
  color: #6f817c;
}

.introduction h2,
.categories h2,
.journal h2,
.contact h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.introduction > p,
.journal > p:last-child,
.contact > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 2.1;
}

.journal {
  border-block: 1px solid var(--line);
  background: #faf8f2;
}

.journal h2 {
  margin-bottom: 1.5rem;
}

.categories {
  background: var(--ink);
  color: var(--paper);
}

.categories__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.categories .section-label {
  color: #a9bbb5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.category-card {
  min-height: 16rem;
  padding: 1.5rem;
  border-right: 1px solid rgb(255 255 255 / 22%);
}

.category-card:last-child {
  border-right: 0;
}

.category-card__number {
  margin: 0 0 4rem;
  color: #92a7a1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
}

.category-card h3 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.category-card > p:last-child {
  margin: 0;
  color: #b9c6c2;
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 1.5rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: #61736e;
  font-size: 0.7rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.site-logo--footer {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero {
    min-height: 48rem;
    background-position: 68% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgb(8 29 34 / 90%) 0%, rgb(8 29 34 / 70%) 52%, rgb(8 29 34 / 20%) 100%);
  }

  .hero__content {
    width: min(82%, 38rem);
  }

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

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card:nth-child(2) {
    border-right: 0;
  }

  .category-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:first-of-type {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.35rem;
    font-size: 0.62rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 47rem;
    padding-top: 9rem;
    background-position: 72% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgb(8 29 34 / 89%), rgb(8 29 34 / 48%)),
      linear-gradient(0deg, rgb(5 20 23 / 52%), transparent 52%);
  }

  .hero__content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
  }

  .hero__scroll {
    display: none;
  }

  .categories__heading {
    display: block;
  }

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

  .category-card,
  .category-card:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .category-card:last-child {
    border-bottom: 0;
  }

  .category-card__number {
    margin-bottom: 2.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer p:last-child {
    justify-self: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
