/* bennguyen.work — the only file that differs from the Bentoji design system.
   Everything else (site.css, home.css, pages.css, case.css, type.css) is
   carried over unchanged, so a fix there can be copied between the two sites.

   This file does two things:
   1. a text wordmark in place of the Bentoji logo image
   2. a second button style for the close section, which Bentoji doesn't use */

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* .brand inherits color:var(--white), which is #1d1d1f at root. Bentoji's
   logo is an <img> with filter:invert(1), so that never mattered there; a
   text wordmark would come out near-black on the dark nav. The footer scopes
   --white to #f0f0f0 itself, so only the nav needs setting. */
.site-nav .brand-text { color: #f5f5f7; }

.footer-brand .brand-text {
  display: inline-block;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .brand-text { font-size: 1.05rem; }
}

/* The close section has two buttons here (contact + resume); Bentoji's has
   one, so give the secondary one an outline treatment on the grey panel.
   Alignment is left, matching the heading and lead above it — .h-actions
   has no justify-content of its own, so it just needs leaving alone. */
.h-close .h-actions { justify-content: flex-start; }

/* The close heading sits on its own above a short line of text, so the
   shared .h-title size reads too large here. */
.home .h-close .h-title { font-size: clamp(1.5rem, 2.1vw, 2rem); }

/* The intro is the hero on this site, so it carries the h1 and the about
   copy side by side. The work section follows it with its own heading. */
.home .bn-work { padding-top: clamp(56px, 7vw, 96px); }
.home .bn-work-grid { margin-top: clamp(36px, 4.5vw, 64px); }

/* Footer decoration. Bentoji puts its planet here, which belongs to the space
   theme running through that site's hero. There is no space theme here, so the
   slot takes the concentric "O" from the Toi o Tamaki typeface instead: it is
   already square and already circular, so it drops into the same position. */
.home .site-footer::after {
  background-image: url(/assets/img/work/toi-o-tamaki/decor-o.webp);
  opacity: .55;
  /* Pushed further right than the planet was, so the keystone at the top of
     the glyph sits off-screen and what shows is the arc sweep. Cropped at the
     edge the keystone reads as a stray wedge rather than part of a letter. */
  right: max(-32vw, -440px);
  bottom: calc(min(62vw, 820px) * -0.58);
}

/* The stars belong to the same space theme as the planet. With the planet
   gone they are the only thing left pointing at it, so the footer is a plain
   dark field behind the arcs. */
.home .site-footer::before { background-image: none; }

.h-close .h-btn:not(.h-btn-primary) {
  background: transparent;
  border: 1px solid var(--line-strong, rgba(0, 0, 0, 0.18));
  color: inherit;
}

.h-close .h-btn:not(.h-btn-primary):hover { background: rgba(0, 0, 0, 0.04); }
