/*
Theme Name: The Cabo 100
Theme URI: https://cabo100.com
Author: JK Web Service
Description: The editorial theme for The Cabo 100 — the best of Los Cabos, one hundred and not one more.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cabo100
*/

:root {
  --ink: #0B0B0C;
  --ink-2: #131210;
  --panel: #1A1815;
  --line: #26231F;
  --line-2: #3A352F;
  --fg: #EDE8DF;
  --fg-2: #B8B0A4;
  --muted: #8F877C;
  --gold: #C9A96E;
  --gold-2: #D8BC86;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #F1DDB4; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); }
.serif-it { font-style: italic; color: var(--gold-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--ink); background: var(--gold); cursor: pointer; }
.btn:hover { background: var(--gold-2); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(11,11,12,.94); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 18px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand .the { font-family: var(--display); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--fg-2); }
.brand .name { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: .03em; line-height: 1; }
.brand .name i { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav a { color: #CFC8BC; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.header-cta { padding: 12px 20px; border: 1px solid var(--gold); color: var(--gold); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 760px) { .header-cta { display: none; } .nav { gap: 6px 18px; font-size: 11px; } .brand .name { font-size: 26px; } }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: .94; letter-spacing: -.01em; }
.hero .lede { max-width: 540px; font-size: 18px; color: var(--fg-2); }
.hero .stack { display: flex; flex-direction: column; gap: 28px; }
.hero-index { border-top: 1px solid var(--line); }
.hero-index a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.hero-index a:hover { color: var(--gold-2); }
.hero-index .n { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 20px; }
.hero-index .t { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.hero-index .c { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Numbers band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 36px; text-align: center; }
.band .big { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--gold); }
.band .label { margin-top: 8px; display: block; }
@media (max-width: 640px) { .band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); margin-top: 14px; }
.section.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Entry cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--fg); }
.card:hover { color: var(--fg); }
.card:hover h3 { color: var(--gold-2); }
.card .plate { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel); border: 1px solid #2C2823; overflow: hidden; }
.card .plate img { width: 100%; height: 100%; object-fit: cover; }
.card .plate .num { position: absolute; top: 14px; left: 18px; font-family: var(--display); font-style: italic; font-size: 46px; line-height: 1; color: var(--gold); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.card .plate .mono { position: absolute; inset: auto 18px 16px auto; font-family: var(--display); font-size: 120px; line-height: .8; color: #26231F; }
.card .plate.empty { aspect-ratio: auto; height: 132px; }
.card .plate.empty .mono { font-size: 96px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.card h3 { font-size: 30px; font-weight: 500; transition: color .2s; }
.card .why { font-size: 15px; color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { .card h3 { transition: none; } }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat-grid a { display: flex; flex-direction: column; gap: 10px; padding: 32px 26px; min-height: 160px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg); }
.cat-grid a:hover { background: var(--ink-2); color: var(--fg); }
.cat-grid .n { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
.cat-grid .t { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.cat-grid .s { font-size: 13px; color: var(--fg-2); }

/* Criteria */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: start; }
.split h2 { font-size: clamp(40px, 5vw, 60px); margin: 14px 0 24px; }
.split .copy { font-size: 17px; color: var(--fg-2); max-width: 60ch; }
.criteria { list-style: none; margin: 0; padding: 0; }
.criteria li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid #2C2823; }
.criteria li:last-child { border-bottom: 1px solid #2C2823; }
.criteria .r { font-family: var(--display); font-size: 24px; color: var(--gold); }
.criteria strong { display: block; font-weight: 600; margin-bottom: 4px; }
.criteria span.d { font-size: 15px; color: var(--fg-2); }

/* Own */
.own-art { min-height: 420px; background: var(--panel); border: 1px solid #2C2823; display: flex; align-items: flex-end; padding: 28px; }
.own-art .big { font-family: var(--display); font-size: clamp(64px, 10vw, 140px); line-height: .85; color: #2E2A25; }
.own h2 { font-size: clamp(40px, 5vw, 60px); margin: 14px 0 22px; }
.own p { font-size: 17px; color: var(--fg-2); margin-bottom: 26px; max-width: 56ch; }

/* Insider */
.insider { border-top: 1px solid var(--line); }
.insider .wrap { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: clamp(72px, 9vw, 112px); }
.insider h2 { font-size: clamp(38px, 5vw, 56px); }
.insider p { color: var(--fg-2); }
.signup { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 560px; justify-content: center; margin-top: 8px; }
.signup input[type=email] { flex: 1 1 260px; min-height: 52px; padding: 0 18px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--fg); font: 15px var(--body); border-radius: 0; }
.signup .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border: 1px solid var(--gold); color: var(--gold-2); font-size: 14px; }

/* Page / list */
.page-head { padding-block: clamp(56px, 8vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); margin-top: 14px; }
.page-head .lede { margin-top: 20px; max-width: 62ch; font-size: 18px; color: var(--fg-2); }
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--fg-2); }
.list-group { padding-block: 56px; border-bottom: 1px solid var(--line); }
.list-group h2 { font-size: clamp(34px, 4vw, 48px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.list-group h2 a { color: var(--fg); }
.list-group h2 .more { font-family: var(--body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--fg); align-items: baseline; }
.row:hover { color: var(--fg); }
.row:hover .t { color: var(--gold-2); }
.row .n { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--gold); }
.row .t { font-family: var(--display); font-size: 28px; line-height: 1.1; transition: color .2s; }
.row .w { grid-column: 2; font-size: 15px; color: var(--fg-2); }
.row .a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .row { grid-template-columns: 40px minmax(0, 1fr); } .row .a { grid-column: 2; text-align: left; } }

/* Single entry */
.entry { padding-block: 56px 96px; }
.entry .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
.entry .big-num { font-family: var(--display); font-style: italic; font-size: clamp(80px, 12vw, 160px); line-height: .85; color: var(--gold); }
.entry h1 { font-size: clamp(48px, 6vw, 88px); margin: 18px 0 24px; }
.entry .why { font-size: 21px; line-height: 1.55; color: var(--fg); max-width: 56ch; }
.entry .body { margin-top: 28px; color: var(--fg-2); font-size: 17px; max-width: 62ch; }
.entry .body p + p { margin-top: 1.1em; }
.entry .body h2, .entry .body h3 { margin: 1.7em 0 .5em; line-height: 1.2; }
.entry .body ul, .entry .body ol { margin: 1em 0 1em 1.2em; }
.entry .body li + li { margin-top: .4em; }
.entry .body a { color: var(--gold, #C9A96E); }
.entry .body pre { white-space: pre-wrap; word-break: break-all; background: #151517; padding: 14px; font-size: 13px; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt, .facts .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts .v { color: var(--fg); overflow-wrap: anywhere; }
.aside-box { margin-top: 32px; padding: 28px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.aside-box h3 { font-size: 28px; }
.aside-box p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) { .entry .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Prose pages */
.prose { padding-block: 56px 96px; }
.prose .inner { max-width: 68ch; font-size: 17px; color: var(--fg-2); }
.prose .inner h2 { font-size: 36px; color: var(--fg); margin: 48px 0 16px; }
.prose .inner h3 { font-size: 26px; color: var(--fg); margin: 32px 0 10px; }
.prose .inner p { margin: 0 0 1.1em; }
.prose .inner ul, .prose .inner ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose .inner li { margin-bottom: .5em; }
.prose .inner a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 56px; font-size: 14px; color: var(--muted); }
.site-footer h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--fg-2); }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
/* Images: category heroes, home hero, category tiles */
.page-head.has-img { background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.88) 100%), var(--hero) center / cover no-repeat; padding-block: clamp(96px, 14vw, 180px) 56px; }
.hero.has-img { background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.7) 50%, rgba(11,11,12,.45) 100%), var(--hero) center / cover no-repeat; }
.cat-grid a.has-img { background: linear-gradient(180deg, rgba(11,11,12,.25) 0%, rgba(11,11,12,.9) 75%), var(--bg) center / cover no-repeat; min-height: 240px; justify-content: flex-end; }
.cat-grid a.has-img:hover { background: linear-gradient(180deg, rgba(11,11,12,.1) 0%, rgba(11,11,12,.8) 75%), var(--bg) center / cover no-repeat; }
.cat-grid a.has-img .s { color: var(--fg); }
/* Own in Cabo community grid */
.prose .inner:has(.comm-grid) { max-width: none; }
.prose .inner:has(.comm-grid) > p, .prose .inner:has(.comm-grid) > h2 { max-width: 68ch; }
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 32px; margin: 20px 0 56px; }
.comm .ph { display: block; overflow: hidden; border: 1px solid #2C2823; }
.comm .ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.comm .ph:hover img { transform: scale(1.03); }
.comm .label { margin: 16px 0 6px !important; }
.prose .inner .comm h3 { margin: 0 0 8px; font-size: 30px; }
.comm p { font-size: 15px; }
.comm .acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 14px; }
.prose .inner .comm .btn { text-decoration: none; min-height: 44px; padding: 0 20px; font-size: 11px; color: var(--ink); }
.prose .inner .comm .lnk { color: var(--gold); font-size: 13px; letter-spacing: .08em; }
/* Journal cards */
.jcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 48px 32px; }
.jcard { display: flex; flex-direction: column; gap: 12px; color: var(--fg); }
.jcard .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); border: 1px solid #2C2823; }
.jcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jcard:hover .ph img { transform: scale(1.03); }
.jcard h3 { font-size: 30px; line-height: 1.1; font-weight: 500; }
.jcard:hover h3 { color: var(--gold-2); }
.jcard .w { font-size: 15px; color: var(--fg-2); }
.jcard.lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.jcard.lead h3 { font-size: clamp(36px, 4vw, 54px); }
@media (max-width: 860px) { .jcard.lead { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.post-hero { margin: 0; }
.post-hero img { display: block; width: 100%; max-height: 72vh; object-fit: cover; }
.post-hero figcaption { padding: 10px var(--gutter, 24px) 0; }
.prose pre { white-space: pre-wrap; word-break: break-all; background: #151517; border: 1px solid #2C2823; padding: 16px; font-size: 13px; line-height: 1.5; color: var(--fg); max-width: 100%; overflow-x: auto; }
.prose img { max-width: 100%; height: auto; }

/* 1.4.0 audit updates */
@media (min-width: 1000px) {
  .cards.cards-5 { grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
  .cards.cards-5 .card { display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 10px; align-content: start; padding-bottom: 32px; border-bottom: 1px solid #2C2823; }
  .cards.cards-5 .card .plate { grid-column: 1; grid-row: 1 / span 3; }
  .cards.cards-5 .card > :not(.plate) { grid-column: 2; margin: 0; }
  .cards.cards-5 .card .label { margin-top: 4px; }
  .cards.cards-5 .card h3 { font-size: 28px; line-height: 1.15; }
  .cards.cards-5 .card .plate .num { font-size: 34px; }
}
@media (min-width: 700px) and (max-width: 999px) { .cards.cards-5 { grid-template-columns: repeat(2, 1fr); } }
.own-art.has-img { background: linear-gradient(to top, rgba(10,10,10,.78), rgba(10,10,10,.05) 60%), var(--own) center / cover no-repeat; border-color: #2C2823; }
.own-art.has-img .big { color: rgba(245,240,230,.94); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.watch-group + .watch-group { margin-top: 72px; }
.watch-head { font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 14px; }
.watch-head .label { color: var(--gold); }
.nominate { max-width: 560px; margin-top: 24px; }
.nominate label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--muted, #A79F92); margin-bottom: 8px; }
.nominate input[type=text], .nominate input[type=email], .nominate select, .nominate textarea { width: 100%; min-height: 50px; padding: 12px 16px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--fg); font: 15px var(--body); border-radius: 0; }
.nominate textarea { min-height: 120px; resize: vertical; }
.nominate input[type=checkbox] { margin-right: 8px; accent-color: var(--gold); }
.nominate .hp { position: absolute; left: -9999px; }
.watch-head .label { font-family: var(--body); font-size: 14px; font-style: normal; letter-spacing: .14em; color: var(--gold); }
