@font-face {
  font-family: "Agrandir Variable";
  src: local("Agrandir Variable"),
       local("Agrandir"),
       url("../fonts/AgrandirVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 150%;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #c3ffc1;
  --ink: #000;
  --paper: #f5f6f1;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: var(--green);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background: var(--green);
  font-family: "Agrandir Variable", Agrandir, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
}

.hero-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.hero-frame {
  position: relative;
  height: 100%;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow: visible;
  color: #000;
  font-family: "Agrandir Variable", Agrandir, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 1;
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
}

.hero-band {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 30vh;
  height: 30dvh;
  padding: 0.55rem 0.85rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  background: var(--green);
  color: var(--ink);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.hero-meta span,
.hero-meta a,
.hero-nav span,
.hero-nav a {
  display: block;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
}

.hero-nav {
  text-align: right;
}

.hero-nav span,
.hero-nav a {
  letter-spacing: 0.04em;
}

.hero-meta a:hover,
.hero-nav a:hover {
  opacity: 0.55;
}

@media (max-width: 800px) {
  .hero-meta span,
  .hero-meta a,
  .hero-nav span,
  .hero-nav a {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* Safari 26: cream under Dynamic Island, green behind the bottom bar. */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    height: 4px;
    background: var(--paper);
    pointer-events: none;
  }
}

@media (min-width: 801px) {
  html,
  body {
    overflow: hidden;
    background: #fff;
  }

  .hero {
    display: grid;
    grid-template-rows: 7fr 3fr;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .hero-visual {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .hero-visual img {
    position: absolute;
    left: 50%;
    top: 0;
    width: auto;
    height: 142.8%;
    max-width: none;
    transform: translate(-50%, -11.1%);
  }

  .hero-band {
    height: auto;
    min-height: 0;
    padding: clamp(1rem, 2.2vh, 1.7rem) clamp(1rem, 2.4vw, 2.1rem);
  }
}

