/* negocio-mexico.com: the explore page. Its own look (editorial, hand drawn),
   separate from the town pages (../public/styles.css) and the sales site. */
@font-face{font-family:"Fraunces";src:url(/fonts/Fraunces-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
/* The font file name carries its version (HandcutStudy-0307): browsers keep fonts for a week, so a new version needs a new name. */
/* Handcut Study (Edition 03, version 0.307): Nate's own hand-cut display face. It has no →, which falls back to Fraunces. */
@font-face{font-family:"Handcut Study";src:url(/fonts/HandcutStudy-0307.woff2) format("woff2");font-weight:400;font-display:swap}
/* The same file for the ornaments, but never drawn in a fallback font (which would show empty boxes). */
@font-face{font-family:"Handcut Ornaments";src:url(/fonts/HandcutStudy-0307.woff2) format("woff2");font-display:block}
@font-face{font-family:"DM Sans";src:url(/fonts/DMSans-latin.woff2) format("woff2");font-weight:100 1000;font-display:swap}
/* Paireeo pink page, everything else in ink and white, like a two-colour print. */
:root{--paper:#ea69a7;--ink:#17120f;--soft:#3d1a2b;--faint:#6e2f4c;--rule:rgba(255,255,255,.55);--line:rgba(23,18,15,.35);--white:#fff;--pink:#ea69a7;--pink-deep:#17120f;--blue:#4f9da7;--orange:#e9953a;--serif:"Fraunces",Georgia,serif;--hand:"Handcut Study","Fraunces",Georgia,serif;--sans:"DM Sans",system-ui,sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
/* overflow-x:clip, not hidden: hidden would turn the page into its own scroll box and stop the search bar pinning. */
html{background:var(--paper);color:var(--ink);-webkit-text-size-adjust:100%;overflow-x:clip}
/* Whitewashed pink paper (paper.webp, made by scripts/make-paper.py); plain pink until it loads. */
/* At least a screen tall, so the paper reaches the bottom on short pages. */
body{min-height:100vh;font-family:var(--sans);font-size:16px;line-height:1.5;background:var(--paper) url(/paper.webp) repeat fixed;background-size:1024px;overflow-x:clip}
a{color:inherit}
img,svg{display:block;max-width:100%}
.shell{width:min(1180px,100%);margin-inline:auto;padding-inline:32px}
.skip-link{position:absolute;left:16px;top:-60px;background:var(--ink);color:var(--paper);padding:12px 16px;z-index:10;text-decoration:none}
.skip-link:focus{top:12px}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* Masthead: a thin newspaper-style band. */
.masthead{border-bottom:1px solid var(--ink)}
/* With home.js the rule under the masthead becomes a row of ornaments, edge to edge. */
.has-glyph-rule .masthead{border-bottom:0}
.masthead-rule{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:26px;font-family:"Handcut Ornaments";font-size:19px;line-height:1;color:var(--ink);overflow:hidden;user-select:none}
.masthead-rule:empty{display:none}
.masthead-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding-block:10px}
.brand-block{display:flex;flex-direction:column;min-width:0}
.wordmark{font-family:var(--hand);font-size:24px;font-weight:400;letter-spacing:-.01em;line-height:1;text-decoration:none;font-variation-settings:"SOFT" 100,"WONK" 1,"opsz" 36;display:inline-flex;align-items:flex-end;min-height:44px;padding-bottom:4px;align-self:flex-start}
/* A dictionary entry for the word "negocio". */
.definition{font-size:12px;line-height:1.35;color:var(--soft)}
.def-word{font-family:var(--serif);font-weight:600;color:var(--ink);font-variation-settings:"opsz" 14}
.def-ipa{margin-inline:4px;letter-spacing:.02em}
.def-pos{font-family:var(--serif);font-style:oblique 10deg;margin-right:4px;color:var(--ink)}
.language{font-size:13px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding-inline:4px;border-bottom:1px solid transparent}
.language:hover{border-bottom-color:currentColor}

/* Heading with a hand-drawn underline. */
.intro{padding-top:56px}
.intro h1{font-family:var(--hand);font-weight:400;font-size:clamp(44px,8.2vw,112px);line-height:.95;letter-spacing:-.035em;font-variation-settings:"SOFT" 100,"WONK" 1,"opsz" 144;max-width:11ch}
/* One line on wide screens. */
@media (min-width:900px){.intro h1{max-width:none;white-space:nowrap;font-size:min(6.9vw,84px)}}
.scribble{position:relative;white-space:nowrap}
.scribble svg{position:absolute;left:-2%;right:-2%;width:104%;max-width:none;bottom:-.14em;height:.32em;overflow:visible;pointer-events:none}
.scribble path{fill:none;stroke:var(--white);stroke-width:7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.lead{margin-top:40px;font-size:17px;color:var(--soft)}

/* The map. */
.map{margin-top:24px;position:relative}
.map svg{width:100%;height:auto}
/* The relief stays grey on the pink, like the grey map on a coloured poster. */
/* A faint ink grid, printed under everything. */
.graticule line{stroke:var(--ink);stroke-width:1;vector-effect:non-scaling-stroke}
.graticule .meridian{stroke:url(#fade)}
/* Meridians and their labels carry their own opacity (attributes set in build.mjs); the parallels are set here. */
.graticule line:not(.meridian){stroke-opacity:.16}
.graticule .parallel-label{fill-opacity:.45}
.map svg{overflow:visible}
.intro{position:relative;z-index:1}
.graticule text{font-family:var(--sans);font-size:22px;fill:var(--ink);letter-spacing:.06em}
.coast{fill:none;stroke:var(--ink);stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.coast-1{stroke-width:1.6}
.coast-2{stroke-width:.8;opacity:.45}
.pin-ring{fill:none;stroke:var(--ink);stroke-width:1.4;vector-effect:non-scaling-stroke}
.pin-line{fill:none;stroke:var(--ink);stroke-width:1.2;stroke-dasharray:2 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pin-label{font-family:var(--hand);font-size:64px;fill:var(--ink);font-variation-settings:"SOFT" 100,"WONK" 1,"opsz" 72}
/* Hovering a name turns it white, and its dot (only the dot, not the ring or
   the dotted line). Towns that share a dot share the highlight. */
a.pin:hover .pin-label,a.pin:focus-visible .pin-label{fill:var(--white)}
.pin-group:has(a:hover) .pin-dot,.pin-group:has(a:focus-visible) .pin-dot{fill:var(--white)}
.pin-dot,.pin-ring,.pin-line,.pin-label{transition:fill .2s,stroke .2s}

/* Town list: one ruled row per town, each with its own dot. */
.towns{margin-top:8px}
.towns-label{text-align:center;font-weight:500;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);padding:14px 0 4px}
/* Thin rules only between towns. */
.town-list{list-style:none}
.town-list li+li{border-top:0}
/* Each town: its name centred, its glyph repeated out to the content edges on both sides. */
.town{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;column-gap:28px;padding:26px 0;text-decoration:none;min-height:44px}
.town{--name:clamp(30px,4.4vw,48px);--dot:30px}
/* The glyphs sit beside the name only; the details below run the full width, so a long
   coordinates line never pushes the glyphs away from a short name. */
.town-text{display:contents}
.town-run-left{grid-area:1/1}
.town-name{grid-area:1/2;text-align:center}
.town-run-right{grid-area:1/3}
.town-where,.town-go,.row-card{grid-column:1/-1;justify-self:center;text-align:center}
.town-run{display:flex;align-items:center;gap:10px;height:var(--name);overflow:hidden;font-family:"Handcut Ornaments";font-size:var(--dot);line-height:1;color:var(--ink);transition:color .2s;user-select:none}
/* Whole glyphs spread so the run runs from the content edge right up to the name. */
.town-run{justify-content:space-between}
.town-run:has(> :only-child).town-run-left{justify-content:flex-end}
.town-run:has(> :only-child).town-run-right{justify-content:flex-start}
.town-run span{flex:none}
.town-soon .town-run{color:var(--faint)}
/* The dot sits beside the name (centred on its line), not in the middle of the row. */
.town-name{font-family:var(--hand);font-size:var(--name);line-height:1;letter-spacing:-.02em;font-variation-settings:"SOFT" 100,"WONK" 1,"opsz" 72}
.town-where{display:block;font-family:var(--sans);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);margin-top:8px}
.town-go{font-size:14px;font-weight:600;white-space:nowrap}
.town-go span{display:inline-block;transition:transform .2s}
a.town:hover .town-name,a.town:focus-visible .town-name{color:var(--white)}
a.town:hover .town-run,a.town:focus-visible .town-run{color:var(--white)}
a.town:hover .town-go span{transform:translateX(4px)}
.town-soon .town-name{color:var(--faint)}
.town-soon .town-go{font-weight:500;color:var(--soft);font-size:12px;letter-spacing:.12em;text-transform:uppercase;margin-top:8px}

/* For business owners, and the footer. */
.owners{margin-top:28px;padding:0 0 28px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px}
.owners p{font-family:var(--hand);font-size:22px;line-height:1.3;font-variation-settings:"SOFT" 100,"opsz" 36;max-width:62ch}
.owners-ask{display:block}
/* Subtext breaks only between phrases (build.mjs, phrases()), and lines are balanced. */
.phrase{white-space:nowrap}
.lead,.owners p,.town-where,.definition{text-wrap:balance}
.owners a{font-weight:600;font-size:15px;display:inline-block;padding-block:12px;text-decoration:underline;text-decoration-color:var(--white);text-decoration-thickness:3px;text-underline-offset:6px}
.owners a:hover{color:var(--white)}
.colophon{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding:22px 0 40px;font-size:12px;color:var(--soft)}
.colophon a{display:inline-flex;align-items:center;min-height:44px}

/* Ornament rows in place of ruled lines. */
.ornaments{font-family:"Handcut Ornaments";line-height:1;display:flex;overflow:hidden;white-space:nowrap;user-select:none;color:var(--ink)}
/* Papel picado from window edge to window edge; home.js fits whole flags only. */
.orn-garland{margin-top:44px;font-size:34px;gap:14px;justify-content:center;width:100vw;margin-left:calc(50% - 50vw);padding-inline:16px;box-sizing:border-box}
.has-garland .orn-garland{justify-content:space-between}
.orn-tri{font-size:40px;gap:4px}
/* The glyph slot machine above the owners line (home.js). */
.slots-wrap{margin-top:48px;display:flex;flex-direction:column;align-items:center}
.slots{display:flex;gap:18px;min-height:44px;padding:6px 14px;border:0;background:none;color:var(--white);font-family:"Handcut Ornaments";font-size:24px;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
.slots:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:6px}
.reel{display:block;width:1.3em;height:1.3em;overflow:hidden}
.reel-strip{display:flex;flex-direction:column}
.reel-strip span{display:flex;align-items:center;justify-content:center;height:1.3em;flex:none}
.slots.is-win .reel{animation:slot-hop .5s ease-in-out 3}
.slots-win{min-height:1.3em;margin-top:4px;font-family:var(--hand);font-size:24px;line-height:1.3;color:var(--ink);text-align:center}
@keyframes slot-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px) rotate(-6deg)}}
.slots.is-win .reel:nth-child(2){animation-delay:.08s}
.slots.is-win .reel:nth-child(3){animation-delay:.16s}
.glyph-rain{position:fixed;left:0;top:0;z-index:60;pointer-events:none;font-family:"Handcut Ornaments";line-height:1;color:var(--white);will-change:transform}
/* Waves in Paireeo blue, edge to edge, whole glyphs only (home.js). */
.orn-waves{margin-top:20px;font-size:18px;gap:6px;justify-content:center;color:#52adb8;width:100vw;margin-left:calc(50% - 50vw);padding-inline:16px;box-sizing:border-box}
.has-garland .orn-waves{justify-content:space-between}
/* Town cards (transparent PNG art: the shadow follows the drawing's own edge, not a box): float by the town's name on the map while it is hovered (home.js),
   and sit under the name in the list on phones. */
.map-card{position:absolute;left:0;top:0;width:200px;height:auto;z-index:3;border-radius:0;filter:drop-shadow(6px 8px 0 rgba(23,18,15,.28));pointer-events:none;opacity:0;visibility:hidden;transform:rotate(-3deg) translateY(8px);transition:opacity .18s,transform .18s,visibility 0s .18s}
.map-card.is-on{opacity:1;visibility:visible;transform:rotate(-2deg);transition:opacity .18s,transform .18s}
.row-card{display:none}
/* The 404 page (404.html): a big slot machine to play while lost. */
.lost{display:flex;flex-direction:column}
.lost-main{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:56px;padding-bottom:40px}
.lost-code{font-size:12px;letter-spacing:.3em;color:var(--soft)}
.lost h1{font-family:var(--hand);font-weight:400;font-size:clamp(46px,7vw,96px);line-height:1;margin-top:14px;text-wrap:balance}
.lost-en{margin-top:30px;font-size:18px;color:var(--soft)}
.lost-slots{margin-top:40px}
.lost-slots .slots{font-size:clamp(56px,10vw,96px);gap:clamp(10px,3vw,28px);padding:18px 26px;border:1.5px solid var(--ink);border-radius:26px;background:rgba(255,255,255,.22);box-shadow:8px 10px 0 rgba(23,18,15,.25)}
.lost-slots .slots:hover{background:rgba(255,255,255,.36)}
.lost-slots .slots-win{font-size:28px;margin-top:14px}
.lost-hint{margin-top:6px;font-size:14px;color:var(--soft);text-wrap:balance}
.lost-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:28px}
.lost-btn{display:inline-flex;align-items:center;min-height:52px;padding:0 24px;border:1.5px solid var(--ink);border-radius:999px;font-weight:600;text-decoration:none}
.lost-btn:hover{background:rgba(255,255,255,.45)}
.lost-btn-main{background:var(--ink);color:var(--white)}
.lost-btn-main:hover{background:var(--white);color:var(--ink)}
.lost .orn-waves{margin-top:0;padding-block:18px}
@media (max-width:640px){
  .map-card{display:none}
  .row-card{display:block;width:min(52vw,190px);height:auto;margin:16px auto 0;border-radius:0;filter:drop-shadow(4px 6px 0 rgba(23,18,15,.25));transform:rotate(-1.5deg)}
  .shell{padding-inline:16px}
  .wordmark{font-size:21px}
  .definition{font-size:11px;white-space:nowrap}
  .def-ipa{display:none}
  .masthead-inner{align-items:flex-start}
  .language{flex:none}
  .intro{padding-top:32px}
  .scribble path{stroke-width:4}
  .intro h1{font-size:clamp(40px,12.5vw,52px)}
  .lead{font-size:15px;margin-top:20px}
  /* The grid is decoration; on a phone it competes with the map, so it goes. */
  .graticule{display:none}
  .map{margin-top:12px}
  /* Map text is drawn in map units, so it shrinks with the map: make it bigger to read at phone size. */
  .pin-label{font-size:120px}
  .map{margin-inline:-16px}
  .coast-1{stroke-width:1.1}
  .coast-2{display:none}
  .lead{margin-top:28px}
  .towns{margin-top:4px}
  .orn-garland{margin-top:28px;font-size:30px}
  .orn-tri{font-size:30px}
  .slots-wrap{margin-top:32px}
  .town{column-gap:12px;padding:20px 0}
  .town{--name:34px;--dot:22px}
  .town-run{gap:6px}
  .owners{margin-top:44px;padding-bottom:20px}
  .owners p{font-size:19px}
}
/* The shared cookie notice (kit/public/t.css), in this page's ink and white.
   Selectors start at body so they win over t.css, which loads after this file. */
body .nm-consent{border-radius:0;border:1.5px solid var(--ink);background:var(--ink);color:var(--white);box-shadow:6px 6px 0 rgba(23,18,15,.25);font:400 14px/1.45 var(--sans);max-width:620px;padding:16px 18px}
body .nm-consent__link{color:var(--white);text-decoration-color:var(--pink);text-decoration-thickness:2px;text-underline-offset:4px}
body .nm-consent__button{border-radius:0;border:1.5px solid var(--white);background:transparent;color:var(--white);font:600 14px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase}
body .nm-consent__button:hover{background:var(--white);color:var(--ink)}
body .nm-consent__button:focus-visible,body .nm-consent__link:focus-visible{outline-color:var(--pink)}
body .nm-consent__close{color:var(--white);border-radius:0}
body .nm-consent__close:focus-visible{outline-color:var(--pink)}
@media (prefers-reduced-motion:reduce){*{transition:none!important}.slots.is-win .reel{animation:none}}
