/* Luffy — hero

   The plate is bright: white hair and cloud, a gold hat brim and sparks on a
   near-black ground, lit edge to edge. Scene median luminance is 0.40, so a
   dark ink is the one that has anything to work with — measured per cell it
   reaches 8-10:1 across the upper right and falls to 1.0 over the black gaps.
   The plate runs full bleed all the same, and the letters carry their own
   cream halo instead — a shadow on the glyphs, not a scrim over the footage,
   so the plate keeps every bit of its quality. The copy sits left on the
   centre line, and the button is filled so it stands on its own footprint. */

:root {
  --sun:   #F0A81E;   /* the hat brim */
  --straw: #F4C14A;
  --red:   #C4281E;   /* the hat band */
  --ink:   #170A02;   /* the plate's own warm black */
  --dim:   rgba(23, 10, 2, .82);
  --cream: #FFF4DC;

  /* dark letters on busy art: a tight opaque core plus two soft falls, so
     each glyph sits in its own pool of light */
  --halo:  0 0 1px rgba(255, 248, 231, 1), 0 0 2px rgba(255, 248, 231, 1),
           0 0 4px rgba(255, 248, 231, 1), 0 0 9px rgba(255, 248, 231, .98),
           0 0 20px rgba(255, 248, 231, .92), 0 0 44px rgba(255, 248, 231, .8);

  --gutter: clamp(1.5rem, 4vw, 4rem);
  --ease:   cubic-bezier(.2, .7, .2, 1);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text:    "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--cream);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;   /* the face is centred in the frame */
  z-index: 0;
}

.topbar, .copy { position: relative; z-index: 1; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1rem, 2.4vh, 1.6rem) var(--gutter);
  text-shadow: var(--halo);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  line-height: 1;
}
/* no plate behind it, so the hat carries the same cream halo as the type */
.mark { width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 0 2px rgba(255, 248, 231, 1)) drop-shadow(0 0 7px rgba(255, 248, 231, .95)) drop-shadow(0 0 16px rgba(255, 248, 231, .8)); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: .92rem;
  font-weight: 600;
}
.nav__link { color: var(--ink); transition: color .25s var(--ease); }

/* ---------- copy ---------- */

.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;      /* left, on the vertical centre line */
  max-width: min(32rem, 44%);
  padding: 2rem var(--gutter);
  text-shadow: var(--halo);
}

.title {
  margin: 0;
  max-width: 13ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.9vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.035em;
}

/* filled, so it stands on its own footprint rather than on the art */
.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: .78rem 1.45rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--cream);
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(23, 10, 2, .45);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #3A1C06; }
.btn:active { transform: translateY(1px); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .brand, .nav__link, .title, .btn {
    opacity: 0;
    animation: rise .9s var(--ease) forwards;
  }
  .nav__link:nth-child(1) { animation-delay: .08s; }
  .nav__link:nth-child(2) { animation-delay: .12s; }
  .nav__link:nth-child(3) { animation-delay: .16s; }
  .nav__link:nth-child(4) { animation-delay: .2s; }
  .title { animation-delay: .3s; }
  .btn   { animation-delay: .46s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 899px) {
  .title { font-size: clamp(2.3rem, 5.4vw, 3rem); max-width: 12ch; }
}

/* ---------- phones ---------- */
@media (max-width: 599px) {
  /* cropped to a phone the copy lands on the dark chin band, 3.1:1. Panning
     the plate right puts it on the lit cheek instead, 9.7:1. */
  .hero__plate { object-position: 70% 50%; }

  .copy  { justify-content: flex-end; max-width: 24rem; padding-bottom: clamp(2rem, 6vh, 3rem); }
  .title { font-size: clamp(2.2rem, 9vw, 3rem); max-width: 11ch; }
  .topbar { flex-wrap: wrap; row-gap: .75rem; }
  .nav { gap: .5rem 1.1rem; flex-wrap: wrap; font-size: .85rem; }
  .btn { margin-top: 1.5rem; padding: .7rem 1.3rem; }
}

/* ---------- a phone on its side ---------- */
@media (max-height: 460px) and (orientation: landscape) {
  .copy  { padding-block: .5rem 1.1rem; }
  .title { font-size: clamp(1.6rem, 5.4vh, 2.2rem); max-width: 13ch; }
  .btn   { margin-top: .9rem; padding: .58rem 1.1rem; font-size: .88rem; }
  .topbar { padding-block: .5rem; }
}

@media (max-width: 360px) {
  .title { font-size: 2rem; }
  .brand { font-size: 1.15rem; }
}
