/* Nassau Barbers — shared site styles
   Palette: ink #0A0A0A on paper #F5F2EC. Strict monochrome. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Roboto+Mono:wght@400;500&display=swap');

/* PP Editorial New / GT Sectra are commercial. Fraunces is the closest
   high-contrast didone-leaning open-source serif we can ship. We disable
   its softer optical settings to push toward Editorial New's tighter,
   sharper feel. Body sets in a neo-grotesque system stack as a
   Söhne/Inter Display fallback (Inter is permitted as body — banned only
   as a headline face per the brief). */

:root {
  --ink: #0A0A0A;
  --paper: #F5F2EC;
  --paper-shade: #ECE7DC;     /* one notch darker for placeholder blocks */
  --ink-soft: #2A2926;        /* for body copy on long passages */
  --rule: rgba(10, 10, 10, 0.18);
  --rule-strong: rgba(10, 10, 10, 0.55);

  --display: 'Fraunces', 'GT Sectra', 'PP Editorial New', 'Canela Deck', Georgia, serif;
  --body: 'Söhne', 'Inter Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Roboto Mono', 'Söhne Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============== TYPE ============== */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.92;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}

.display-tight {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 0.88;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}

.smallcap {
  font-family: var(--body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.smallcap-lg {
  font-family: var(--body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.body-prose {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 62ch;
}

.body-prose p + p { margin-top: 1.1em; }

.meta {
  font-size: 14px;
  line-height: 1.7;
  font-feature-settings: "tnum" 1;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ============== LAYOUT ============== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
}

.gutter {
  padding-left: 56px;
  padding-right: 56px;
}

@media (max-width: 768px) {
  .gutter { padding-left: 24px; padding-right: 24px; }
}

main { flex: 1; }

/* ============== NAV ============== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 5;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
.wordmark img {
  height: 30px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .wordmark, .wordmark img { height: 22px; }
}

.nav-links {
  display: flex;
  gap: 38px;
}

.nav-links a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 180ms ease;
}

.nav-links a:hover { opacity: 0.6; }

/* Per-page nav active marker — small polygon mark to the LEFT of the link text.
   Only renders when the link has aria-current="page". */
.nav-mark {
  display: none;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: invert(1);
  flex-shrink: 0;
}
.nav-links a[aria-current="page"] .nav-mark { display: inline-block; }

.nav-links a .crest-tick {
  display: none;
}

/* Hamburger button — hidden by default, visible below 768px. */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin: -10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: square;
}
.nav-toggle .ico-close { display: none; }

/* Mobile menu overlay — solid cream, no blur, no dim. */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 1000;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu[aria-hidden="false"] { display: flex; }

.mobile-menu .mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu .mm-top .wordmark,
.mobile-menu .mm-top .wordmark img { height: 22px; }

.mobile-menu .mm-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 40px;
  padding-bottom: 32px;
  list-style: none;
  margin: 0;
}
.mobile-menu .mm-links a {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.mobile-menu .mm-links a[aria-current="page"] {
  font-style: italic;
}

.mobile-menu .mm-rule {
  height: 1px;
  background: var(--rule);
  margin: 8px 0 32px;
}

.mobile-menu .mm-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 48px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Toggle state: when open, swap the icons + lock body scroll. */
body.menu-open { overflow: hidden; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 768px) {
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ============== FOOTER ============== */

.footer {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  padding-top: 44px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer .footer-crest {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0.85;
}
.footer .footer-crest:empty { display: none; margin: 0; }
.footer-wordmark-link {
  display: inline-block;
  line-height: 0; /* prevent stray descender space around the img */
  transition: opacity 200ms ease;
}
.footer-wordmark-link:hover,
.footer-wordmark-link:focus-visible { opacity: 0.7; }
.footer-wordmark-link:focus-visible { outline: none; }
.footer-wordmark {
  width: 140px;
  height: auto;
  display: block;
  opacity: 0.85;
}

.footer h4 {
  margin: 0 0 14px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer .meta { font-size: 13px; }

.hours-mini {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.colophon {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .footer { grid-template-columns: 1fr 1fr; gap: 32px; }
  .colophon { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ============== PHOTO PLACEHOLDERS ============== */

.photo {
  background: var(--paper-shade);
  position: relative;
  overflow: hidden;
}

/* Real photo content */
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hide the hatch placeholder once a real image is in the slot */
.photo:has(> img)::before { display: none; }

.photo::before {
  /* subtle 45° hatch so the placeholder reads as a photo slot, not a flat block */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 14px,
    rgba(10,10,10,0.035) 14px,
    rgba(10,10,10,0.035) 15px
  );
}

.photo .photo-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.62;
  line-height: 1.45;
  text-wrap: balance;
  z-index: 2;
}

.photo .photo-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  z-index: 2;
}

/* When a photo slot holds a real image, lift labels above the image and
   recolor them for legibility against the warm-sepia photography. */
.photo:has(> img) .photo-tag,
.photo:has(> img) .photo-label {
  color: #F5F2EC;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  mix-blend-mode: normal;
}

/* ============== MENU TYPESETTING ============== */

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36;
}

.menu-row .leader {
  border-bottom: 1px dotted rgba(10, 10, 10, 0.5);
  transform: translateY(-5px);
  height: 0;
}

.menu-row .price {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}

.menu-note {
  font-family: var(--body);
  font-size: 12.5px;
  font-style: italic;
  opacity: 0.75;
  margin: 6px 0 0;
}

.menu-section + .menu-section { margin-top: 56px; }

.menu-section h3 {
  margin: 0 0 18px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.menu-section h3 .num {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: 0.1em;
}

/* ============== UTILITIES ============== */

.divider-crest {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 0;
}

/* Quiet hairline section break — short, centered, generous buffer above/below.
   Matches .divider-hairline exactly. */
.divider-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 0;
}
.divider-rule > span {
  display: block;
  width: 35%;
  height: 1px;
  background: var(--ink);
  opacity: 0.85;
}
@media (max-width: 768px) {
  .divider-rule > span { width: 60%; }
}

/* One-off chapter-break wordmark divider — Home only, mid-page. */
.divider-wordmark img {
  width: 140px;
  height: auto;
  display: block;
  opacity: 0.85;
}

/* Hairline chapter-break divider — short centered stroke. */
.divider-hairline {
  width: 35%;
  height: 1px;
  background: var(--ink);
  margin: 88px auto;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .divider-hairline { width: 60%; margin: 56px auto; }
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-up.in { opacity: 1; transform: none; }

a.underline-link {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap 220ms ease;
}
a.underline-link:hover { gap: 16px; }

/* Dark plate inversion (used for House rules on Home).
   Bleeds full-viewport-width regardless of the .page max-width container,
   while content within still respects the standard gutter. */
.dark-plate {
  background: var(--ink);
  color: var(--paper);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(56px, calc((100vw - 1440px) / 2 + 56px));
  padding-right: max(56px, calc((100vw - 1440px) / 2 + 56px));
}
.dark-plate .rule-item { border-bottom-color: rgba(245, 242, 236, 0.18); }
.dark-plate .rules-head { border-bottom-color: rgba(245, 242, 236, 0.45); }
.dark-plate .rule-explain { opacity: 0.8; }
@media (max-width: 768px) {
  .dark-plate {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ============== POLYGON BRAND MARKS ==============
   Source PNGs: white facets, black facet lines, transparent BG.
   On cream paper we invert; on dark plates we use as-is. */

.poly-mark {
  display: inline-block;
  vertical-align: middle;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.poly-mark.on-paper { filter: invert(1); }
.poly-mark.on-dark  { /* render as-is */ }

.poly-stag     { background-image: url('mark-stag.png'); }
.poly-tiger    { background-image: url('mark-tiger.png'); }
.poly-bison    { background-image: url('mark-bison.png'); }
.poly-elephant { background-image: url('mark-elephant.png'); }
.poly-ram      { background-image: url('mark-ram.png'); }

.poly-mark.size-28 { width: 28px;  height: 28px; }
.poly-mark.size-32 { width: 32px;  height: 32px; }
.poly-mark.size-40 { width: 40px;  height: 40px; }
.poly-mark.size-48 { width: 48px;  height: 48px; }
.poly-mark.size-56 { width: 56px;  height: 56px; }
.poly-mark.size-60 { width: 60px;  height: 60px; }
.poly-mark.size-64 { width: 64px;  height: 64px; }

/* ============== ENGRAVING WATERMARKS ============== */

.engraving-watermark {
  position: absolute;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Make sure all foreground content sits above watermarks. Apply to the
   parents that host a watermark; we add `has-watermark` to those sections. */
.has-watermark { position: relative; overflow: hidden; }
.has-watermark > *:not(.engraving-watermark) { z-index: 1; }
.has-watermark > *:not(.engraving-watermark):not([class*="-corner-mark"]):not([style*="position:absolute"]):not([style*="position: absolute"]) {
  position: relative;
}

.engr-stag     { background-image: url('engraving-stag.png'); }
.engr-tiger    { background-image: url('engraving-tiger.png'); }
.engr-bison    { background-image: url('engraving-bison.png'); }
.engr-elephant { background-image: url('engraving-elephant.png'); }
.engr-ram      { background-image: url('engraving-ram.png'); }


/* ============== MOTION ============== */

/* 1 — Scroll-reveal fade-in. Sections start invisible and are revealed by an
   IntersectionObserver. Sections marked .is-visible-immediately (already in
   viewport on load) skip the transition entirely. */
.fade-in {
  opacity: 0;
  transition: opacity 500ms ease-out;
  will-change: opacity;
}
.fade-in.is-visible { opacity: 1; }
.fade-in.is-visible-immediately {
  opacity: 1;
  transition: none;
}

/* 2 — Photo hover. Subtle scale; cursor stays default. */
.photo {
  transition: transform 400ms ease-out;
  transform-origin: center;
}
.photo:hover { transform: scale(1.02); }

/* 3 — Map pin pulse. Slow breathing on the highlighted plot only. */
@keyframes nb-pin-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}
.map-pin { animation: nb-pin-pulse 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-pin:hover { animation-play-state: paused; }

/* Reduced-motion override — strip all three motion treatments. */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transition: none; }
  .photo { transition: none; }
  .photo:hover { transform: none; }
  .map-pin { animation: none; opacity: 1; }
}
