/* The Access Sicily look, laid over the town guide styles: The Sicily Project's black, white and
   neutral greys, Helvetica Neue, fine lines and square corners. Colours and fonts come from
   engine/skin.json; this file settles shapes, weights and the Access Sicily logo.
   The landing map keeps its own colours, which are drawn in flight.js. */
:root {
  --clay: #000000; --clay-soft: #EFEFEF; --teal: #4A4A4A; --teal-soft: #F2F2F2; --sage: #797979; --sage-soft: #F5F5F5;
  --r-lg: 0px; --r-md: 0px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px -14px rgba(0, 0, 0, .16);
  --bounce: cubic-bezier(.2, .8, .2, 1);
  --caps: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #111111; --bg-2: #1B1B1B; --surface: #1B1B1B; --ink: #F5F5F5; --ink-2: #C9C9C9; --ink-3: #9A9A9A; --line: #333333;
  --panel: #2A2A2A; --panel-deep: #F5F5F5; --panel-soft: #222222; --accent-ink: #F5F5F5; --on-panel: #F5F5F5;
  --clay: #F5F5F5; --clay-soft: #262626; --teal: #C9C9C9; --teal-soft: #222222; --sage: #9A9A9A; --sage-soft: #1F1F1F;
}

/* light headings with one bold phrase, as on the home page */
h1, h2, .foot .foot-call, .message { font-weight: 300; letter-spacing: -.035em; }
h1 em, h2 em, .tagline em, .foot-call em { font-family: inherit; font-style: normal; font-weight: 700; letter-spacing: inherit; font-size: 1em; }
.tagline { font-weight: 300; }
.kicker { font-size: .7rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.hero-region { font-size: .7rem !important; font-weight: 400 !important; letter-spacing: .18em; text-transform: uppercase; }

/* buttons take The Sicily Project's cut corner */
.btn, .skip-flight, .to-guide, .chip { border-radius: 20px 0; font-weight: 500; }
.btn:hover { scale: 1; }
.btn-ink { background: #000; color: #fff; }
.btn-ink:hover { background: #4A4A4A; }
.btn-call { background: #000; color: #fff; }
.btn-call:hover { background: #4A4A4A; }
:root[data-theme="dark"] .btn-ink, :root[data-theme="dark"] .btn-call { background: #F5F5F5; color: #000; }
.to-guide { background: #000; color: #fff; }
.chip, .to-guide { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }

/* a plain bar across the top, with the Access Sicily logo leading back to the map of towns */
.topbar { top: 0; padding: 0; }
.bar { max-width: none; border-radius: 0; padding: 4px clamp(14px, 2.8vw, 40px); gap: 4px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 1px 0 var(--line); }
.as-logo { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-right: 16px; margin-right: 14px; border-right: 1px solid var(--line); text-decoration: none; color: var(--ink); flex: none; }
.as-logo .mark { position: static; transform: none; border-radius: 0; width: 46px; height: auto; overflow: visible; }
.as-logo span { font-family: var(--caps); font-weight: 300; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.as-logo:hover span { color: var(--ink-3); }
:root[data-theme="dark"] .mark-isle { stroke: #BDBDBD; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.links a { font-size: .72rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; padding: 0 12px; }
.links a.active { color: var(--ink); }
.ind { top: auto; bottom: 4px; height: 1px; border-radius: 0; background: var(--ink); }
.bar-btn { border-radius: 0; background: none; }
.bar-btn:hover { background: var(--bg-2); color: var(--ink); scale: 1; }
@media (max-width: 1239px) { .as-logo span { display: none; } .as-logo { padding-right: 12px; margin-right: 10px; } }

.sheet { background: var(--bg); color: var(--ink); }
.sheet a { font-weight: 300; }
.sheet .sheet-back { font: 400 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; padding: 0 0 22px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

/* the home page below the map: no postcard, no tilted ribbon */
.marquee { rotate: none; scale: 1; background: var(--bg-2); color: var(--ink); }
.marquee-track { font-weight: 300; }
.marquee-track span::after { content: "/"; color: var(--ink-3); }
.back { box-shadow: inset 0 0 0 1px var(--line); }
.back-addr { border-top: 1px solid var(--line); }
@media (min-width: 880px) { .back-addr { border-left: 1px solid var(--line); } }
.franking, .postmark, .head > .postmark { display: none; }
.doors a { border-bottom: 1px solid var(--line); }
.doors b { font-weight: 400; }
.when { background: var(--bg-2) !important; }

/* landing: titles and tools over the map */
.word, .word-fit { font-weight: 700; }
.hud-to { font-family: var(--font-body); font-style: normal; font-weight: 300; }
.spot-txt h3, .spot-all b { font-weight: 700; }
.spot-txt small { font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; }
.spot-links { font-weight: 500; }
.spot-pic { background: var(--bg-2); }
.rail-stops button { font-weight: 500; }
.rail-mark { background: #fff; }
.map-tools button { border-radius: 0; }
.pin-dot { background: #000; }
.pin.on .pin-dot { background: #000; }
.pin-tag { font-weight: 500; }
.pin.home .pin-tag { background: #000; color: #fff; }

/* footer: quiet grey, the logo, and the way back */
.foot { border-radius: 0; background: var(--bg-2); color: var(--ink); }
.foot-as { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px 0 30px; margin-top: 44px; border-top: 1px solid var(--line); }
.foot-as .as-full { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.foot-as .mark { position: static; transform: none; border-radius: 0; width: 150px; height: auto; margin-left: -3px; overflow: visible; }
.foot-as .as-name { font-family: var(--caps); font-weight: 300; font-size: 19px; letter-spacing: .3em; text-transform: uppercase; line-height: 1; margin-top: 14px; }
.foot-as .as-by { font-family: var(--caps); font-weight: 300; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; line-height: 1; margin-top: 11px; color: var(--ink-3); }
.foot-as .as-back { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.foot-as .as-back:hover { color: var(--ink-3); border-color: var(--ink-3); }
.foot-word { opacity: .08; }

/* square corners throughout; small controls keep the cut corner */
.note, .field, .ph figcaption, .when-ev, .card-post, .card-post .pic, .row, .jump button, .ev-date, .trip, .tip, .link-row, .palette-box, .pal-item, .lightbox img, .leaflet-popup-content-wrapper, .rail-stops span, .search-trigger kbd, .fav, .drawer-close, .switch, .switch button { border-radius: 0; }
.pill, .tag, .next-when, .next-row .next-when, .toast { border-radius: 10px 0; }
.pill, .tag { font-weight: 500; }
