/* justinliva.com, Build 2: a property map, not a résumé. Survey-plat line work, a measured 12-column grid, and one
   working color (Tape) used only on the map markers, the focus ring, the link hover underline and the primary button. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* size-adjusted fallbacks (measured against Archivo in Chromium): text at width 100 / weight 400, display at 125 / 850 */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 97.6%; ascent-override: 90%; descent-override: 21.5%; line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Wide Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 700 900;
  size-adjust: 130.8%; ascent-override: 67.1%; descent-override: 16.1%; line-gap-override: 0%;
}
:root {
  --ink: #14213D;
  --paper: #EEF1F4;
  --white: #FFFFFF;
  --plat: #9FB3C8;
  --tape: #F2C230;
  --slate: #4A5A6E;
  --text: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --display: "Archivo", "Archivo Wide Fallback", Arial, sans-serif;
  --gutter: 24px;
  --pad: 24px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-weight: 400; font-stretch: 100%; font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: tabular-nums; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
h1, h2, h3 { margin: 0; color: inherit; }
h1 { font-family: var(--display); font-stretch: 125%; font-weight: 850; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-family: var(--display); font-stretch: 108%; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
h3 { font-family: var(--display); font-stretch: 104%; font-weight: 700; line-height: 1.25; font-size: 1.1875rem; }

/* links: always underlined in a Plat hairline; on hover, the one Tape underline */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--plat); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tape); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { left: var(--s2); top: var(--s2); }

/* header */
.site-header { border-bottom: 1px solid var(--plat); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.site-nav a { display: inline-block; padding: var(--s2) 0; text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* home: hero with the map */
.hero { padding: var(--s8) 0 var(--s9); }
.hero-grid { grid-template-areas: "name name name name name name map map map map map map" "intro intro intro intro intro intro map map map map map map"; grid-template-rows: auto 1fr; row-gap: var(--s6); }
.hero-name { grid-area: name; font-size: clamp(3.5rem, 9.6vw, 8.25rem); font-weight: 900; line-height: .92; letter-spacing: -0.035em; align-self: end; }
.hero-name span { display: block; }
.hero-intro { grid-area: intro; }
.hero-intro .lede { font-size: 1.25rem; line-height: 1.5; }
.hero-links { font-weight: 600; }
.hero-links a + a { margin-left: var(--s5); }
.hero-map { grid-area: map; margin: 0; position: relative; align-self: start; }
.nj-map { display: block; width: 100%; height: auto; overflow: visible; }
/* county lines take their width in map units (non-scaling-stroke breaks the pathLength dash used for the draw-in), set
   per breakpoint so they land near a 1px hairline: about 0.74 px per unit at 1280, 0.46 at 390 */
.nj-map .county { fill: none; stroke: var(--plat); stroke-width: 1.35; stroke-linejoin: round; }
.nj-map .bergen { fill: var(--ink); fill-opacity: .14; stroke: none; }
.nj-map .shore { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.nj-map .leader { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nj-map .dot { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-labels { list-style: none; margin: 0; padding: 0; }
.map-label { position: absolute; left: var(--x); top: var(--y); width: calc(100% - var(--x)); padding-left: 6px; font-size: clamp(.78rem, .55rem + .75vw, .9375rem); line-height: 1.3; max-width: none; transform: translateY(-.65em); }
.map-label--up { transform: translateY(calc(-100% + .65em)); }
.map-label strong { font-weight: 700; }

/* the one orchestrated moment: county lines draw in, then the three markers in sequence */
@media (prefers-reduced-motion: no-preference) {
  .nj-map .county { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(.45, 0, .2, 1) forwards; }
  .mk { opacity: 0; animation: mark .3s ease-out forwards; }
  .mk-hoboken { animation-delay: 1.2s; }
  .mk-bergen { animation-delay: 1.35s; }
  .mk-shore { animation-delay: 1.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark { to { opacity: 1; } }

/* sections */
.section { padding: var(--s9) 0; border-top: 1px solid var(--plat); }
.section-head { margin-bottom: var(--s6); }

/* ventures: ruled rows */
.ventures { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--plat); }
.venture { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding: var(--s6) 0; border-top: 1px solid var(--plat); }
.venture h3 { grid-column: 1 / 5; font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -0.015em; line-height: 1.1; }
.venture .desc { grid-column: 5 / 10; margin: 0; color: var(--slate); }
.venture .go { grid-column: 10 / 13; justify-self: end; margin: 0; font-weight: 600; }
.venture--lead h3 { grid-column: 1 / 10; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; }
.venture--lead .desc { grid-column: 1 / 10; grid-row: 2; margin-top: var(--s3); font-size: 1.25rem; color: var(--ink); }
.venture--lead .go { grid-row: 1; }

/* writing lists */
.ruled { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--plat); }
.ruled > li { padding: var(--s5) 0; border-top: 1px solid var(--plat); }
.ruled h3 a, .ruled h2 a { text-decoration-color: transparent; }
.ruled h3 a:hover, .ruled h2 a:hover { text-decoration-color: var(--tape); }
.site-name { color: var(--slate); margin: var(--s1) 0 0; font-size: .9375rem; }
.start-list h3 { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); }
.more { margin: var(--s6) 0 0; font-weight: 600; }

/* buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-stretch: 105%; line-height: 1.2; padding: 14px 26px; border-radius: 6px; border: 1px solid var(--ink); background: var(--tape); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--white); color: var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { cursor: progress; background: var(--paper); }

/* the Ink contact band */
.band-ink { background: var(--ink); color: var(--paper); padding: var(--s9) 0; }
.band-ink h2 { font-stretch: 125%; font-weight: 850; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: var(--s4); }
.band-ink p { font-size: 1.1875rem; }
.band-ink .btn { border-color: var(--tape); margin-top: var(--s3); }
.band-ink .btn:hover { background: var(--paper); border-color: var(--paper); }

/* inner pages */
.page-head { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--plat); }
.crumbs ol { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; font-size: .9375rem; color: var(--slate); }
.crumbs li + li::before { content: "/"; margin: 0 var(--s2); color: var(--slate); }
.page-lede { font-size: 1.25rem; line-height: 1.5; color: var(--slate); margin: var(--s5) 0 0; }
.content { padding: var(--s8) 0 var(--s9); }
.prose h2 { margin: var(--s7) 0 var(--s4); }
.prose h2:first-child { margin-top: 0; }
.go a { font-weight: 600; }

/* about */
.about-grid { align-items: start; }
.about-story { grid-column: 1 / 8; }
.about-side { grid-column: 9 / 13; position: sticky; top: var(--s6); display: flex; flex-direction: column; gap: var(--s7); }
.about-photo { margin: 0; width: 240px; max-width: 100%; border: 1px solid var(--plat); background: var(--white); }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-resolution: 2dppx) { .about-photo { width: 182px; } }  /* the 360px source never shows past its own pixels */
.margin-note { float: left; margin: 4px var(--s5) var(--s3) 0; background: var(--ink); color: var(--tape); padding: var(--s3) var(--s4) var(--s2); }
.margin-note b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.started::after { content: ""; display: table; clear: both; }
.media h2 { font-size: 1.375rem; margin-bottom: var(--s4); }

/* video (same click-to-load embed as mojohousebuyers.com) */
.video-card { margin: 0; max-width: 240px; }
.video-card figcaption { font-size: .9375rem; line-height: 1.45; color: var(--slate); margin-top: var(--s3); }
.video-note { display: block; font-size: .875rem; }
.video { position: relative; border: 1px solid var(--plat); background: var(--white); padding: 6px; }
.video-poster { display: block; position: relative; }
.video-poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play svg { width: 60px; height: 60px; }
.play circle { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.play path { fill: var(--white); }
.video-poster:hover .play circle { fill: var(--ink); stroke: var(--tape); stroke-width: 3; }
.video-frame { width: 100%; aspect-ratio: 9 / 16; border: 0; display: block; }

/* writing page */
.groups { display: grid; gap: var(--s9); }
.group h2 { margin-bottom: var(--s5); }
.group .ruled > li { padding: var(--s5) 0 var(--s5); }
.entry h3 { font-stretch: 118%; font-weight: 750; font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--s2); }
.entry p { margin: 0; }
.entry .site-name { margin-top: var(--s2); }

/* contact form */
.form-wrap { max-width: 760px; }
.contact-form fieldset { border: 0; margin: 0 0 var(--s6); padding: 0; min-width: 0; }
.contact-form legend, .field label { display: block; font-weight: 700; font-stretch: 105%; margin-bottom: var(--s2); padding: 0; }
.contact-form legend { font-family: var(--display); font-size: 1.375rem; font-stretch: 112%; margin-bottom: var(--s4); }
.topic-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span { display: inline-block; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 6px; background: var(--white); color: var(--ink); font-weight: 500; cursor: pointer; }
.topic span:hover { background: var(--paper); }
.topic input:checked + span { background: var(--ink); color: var(--paper); }
.topic input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-bottom: var(--s6); }
.field-wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 6px; padding: 11px 12px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
.opt { font-weight: 400; color: var(--slate); font-size: .875rem; margin-left: var(--s1); }
.consent { font-size: .875rem; line-height: 1.5; color: var(--slate); margin: calc(-1 * var(--s2)) 0 0; max-width: none; }
.form-error { background: var(--white); border: 1px solid var(--ink); border-left: 6px solid var(--tape); color: var(--ink); padding: var(--s3) var(--s4); margin-bottom: var(--s5); font-weight: 500; }
.contact-form .btn { font-size: 1.125rem; }
.js .contact-form:not(.is-selling) [data-sell-only] { display: none; }   /* hidden before first paint, so nothing shifts when site.js runs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: none; padding: var(--s7) 0; border-top: 1px solid var(--plat); border-bottom: 1px solid var(--plat); }
.thanks.is-on, .thanks:target { display: block; }
.form-wrap:has(.thanks:target) .contact-form { display: none; }
.thanks-text { font-family: var(--display); font-stretch: 125%; font-weight: 850; font-size: clamp(2rem, 5.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 18ch; }

/* 404 */
.notfound { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--plat); max-width: 760px; }
.notfound li { border-top: 1px solid var(--plat); }
.notfound a { display: block; padding: var(--s4) 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.375rem; text-decoration-color: transparent; }
.notfound a:hover { text-decoration-color: var(--tape); }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--s8) 0 var(--s6); }
.band-ink + .site-footer { border-top: 1px solid var(--slate); }
.footer-grid { align-items: start; row-gap: var(--s5); }
.footer-bio { grid-column: 1 / 7; margin: 0; font-size: 1.0625rem; }
.site-footer nav { grid-column: 8 / 13; justify-self: end; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.site-footer a { text-decoration-color: var(--slate); }
.site-footer a:hover { text-decoration-color: var(--tape); }
.footer-fine { margin-top: var(--s7); font-size: .875rem; }
.footer-fine p { margin: 0; }

@media (max-width: 959px) {
  .hero-grid, .about-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-areas: "name" "map" "intro"; grid-template-rows: auto; row-gap: var(--s6); }
  .hero-map { max-width: 680px; }
  .about-story, .about-side, .footer-bio, .site-footer nav { grid-column: 1 / -1; }
  .site-footer nav { justify-self: start; }
  .about-grid { display: flex; flex-direction: column; }
  .about-side { display: contents; }
  .about-photo { order: -1; margin-bottom: var(--s7); }
  .about-story { order: 0; }
  .media { order: 1; margin-top: var(--s8); }
  .venture { grid-template-columns: minmax(0, 1fr); row-gap: var(--s2); }
  .venture h3, .venture .desc, .venture .go, .venture--lead h3, .venture--lead .desc { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .venture--lead .desc { margin-top: 0; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .nj-map .county { stroke-width: 2.1; }
  .margin-note { padding: var(--s2) var(--s3) 6px; margin-right: var(--s4); }
  .margin-note b { font-size: 1.875rem; }
  body { font-size: 1.0625rem; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .section, .band-ink { padding: var(--s8) 0; }
  .site-nav ul { gap: var(--s4); }
  .wordmark { font-size: 1.0625rem; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: var(--s7) 0 var(--s6); }
  .content { padding: var(--s7) 0 var(--s8); }
  .groups { gap: var(--s8); }
}
@media (max-width: 380px) {
  .site-nav ul { gap: var(--s3); }
  .wordmark { font-size: 1rem; }
}
