/* Bajo el Azul — almerisub.com
   Revista de fotografia submarina en Almeria. Prefixe baz-.
   Palette : cuaderno de inmersion mediterraneo (azul de mar profundo, blanco de
   caliza, verde de alcaparra, arena ocre, negro de neopreno, laton de manometro). */

:root {
  --baz-abyss: #0b1f2d;
  --baz-deep: #10344a;
  --baz-sea: #1c6685;
  --baz-shallow: #4d9fb4;
  --baz-foam: #eff4f5;
  --baz-limestone: #fbfaf6;
  --baz-sand: #d8c49c;
  --baz-sand-soft: #efe6d2;
  --baz-caper: #4a6b4f;
  --baz-brass: #b7893a;
  --baz-ink: #15242e;
  --baz-muted: #5a6b74;
  --baz-line: #d5dee1;
  --baz-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --baz-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --baz-wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--baz-limestone);
  color: var(--baz-ink);
  font-family: var(--baz-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--baz-sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--baz-abyss); }

h1, h2, h3 { font-family: var(--baz-serif); line-height: 1.18; color: var(--baz-abyss); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.05em; }

.baz-wrap { width: 100%; max-width: var(--baz-wrap); margin: 0 auto; padding: 0 1.25rem; }

.baz-skip {
  position: absolute; left: -9999px; top: 0; background: var(--baz-abyss); color: #fff;
  padding: .7rem 1rem; z-index: 40;
}
.baz-skip:focus { left: 0; }

/* ---------- masthead ---------- */
.baz-mast {
  background: var(--baz-abyss);
  color: var(--baz-foam);
  border-bottom: 4px solid var(--baz-brass);
}
.baz-mast__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1.25rem; }
.baz-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.baz-brand__mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border: 2px solid var(--baz-brass); border-radius: 50%;
  font-family: var(--baz-serif); font-size: 1.05rem; letter-spacing: .04em; color: var(--baz-sand);
}
.baz-brand__name { display: block; font-family: var(--baz-serif); font-size: 1.32rem; letter-spacing: .01em; }
.baz-brand__tag { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--baz-shallow); }

.baz-nav__toggle { position: absolute; opacity: 0; pointer-events: none; }
.baz-nav__handle {
  display: none; cursor: pointer; padding: .5rem .9rem; border: 1px solid var(--baz-shallow);
  border-radius: 2px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--baz-foam);
}
.baz-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.baz-nav a {
  color: var(--baz-foam); text-decoration: none; font-size: .86rem; text-transform: uppercase;
  letter-spacing: .09em; padding-bottom: .2rem; border-bottom: 2px solid transparent;
}
.baz-nav a:hover { border-bottom-color: var(--baz-brass); color: #fff; }
.baz-nav a[aria-current="page"] { border-bottom-color: var(--baz-brass); color: #fff; }

@media (max-width: 46rem) {
  .baz-nav { width: 100%; }
  .baz-nav__handle { display: inline-block; }
  .baz-nav ul { display: none; flex-direction: column; gap: .1rem; margin-top: .6rem; border-top: 1px solid #24455a; padding-top: .5rem; }
  .baz-nav__toggle:checked ~ ul { display: flex; }
  .baz-nav a { display: block; padding: .45rem 0; }
}

/* ---------- hero ---------- */
.baz-hero { background: linear-gradient(180deg, var(--baz-abyss) 0%, var(--baz-deep) 100%); color: var(--baz-foam); }
.baz-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.4rem; align-items: center; padding: 3rem 0 3.2rem; }
.baz-hero__kicker {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--baz-sand);
  margin: 0 0 .9rem; border-left: 3px solid var(--baz-brass); padding-left: .7rem;
}
.baz-hero h1 { color: #fff; }
.baz-hero__deck { font-size: 1.12rem; color: #cfe0e6; max-width: 34rem; }
.baz-hero__fig { margin: 0; }
.baz-hero__fig img { border-radius: 3px; border: 1px solid #2b536b; }
.baz-hero__fig figcaption { font-size: .8rem; color: var(--baz-shallow); margin-top: .6rem; }
.baz-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.baz-btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 2px; text-decoration: none;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; border: 2px solid transparent;
}
.baz-btn--solid { background: var(--baz-brass); color: var(--baz-abyss); }
.baz-btn--solid:hover { background: var(--baz-sand); color: var(--baz-abyss); }
.baz-btn--ghost { border-color: var(--baz-shallow); color: var(--baz-foam); }
.baz-btn--ghost:hover { border-color: var(--baz-brass); color: #fff; }

@media (max-width: 52rem) {
  .baz-hero__grid { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.2rem 0 2.4rem; }
}

/* ---------- bands ---------- */
.baz-band { padding: 3rem 0; border-top: 1px solid var(--baz-line); }
.baz-band--tint { background: var(--baz-foam); }
.baz-band--night { background: var(--baz-deep); color: var(--baz-foam); }
.baz-band--night h2 { color: #fff; }
.baz-band--night .baz-kicker { color: var(--baz-sand); }
.baz-band--night .baz-card { background: #123c53; border-color: #24566f; }
.baz-band--night .baz-card h3 a { color: #fff; }
.baz-band--night .baz-card__note { color: #c3d7de; }
.baz-band--night .baz-card__caption { color: var(--baz-shallow); }

.baz-kicker {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--baz-sea);
  margin: 0 0 .5rem; font-family: var(--baz-sans);
}
.baz-standfirst { font-size: 1.05rem; color: var(--baz-muted); max-width: 46rem; }
.baz-band--night .baz-standfirst { color: #bcd2da; }
.baz-more { margin-top: 1.2rem; }
.baz-more a { font-weight: 600; }

/* section tick rule: petit repere de sonde */
.baz-band > .baz-wrap > h2::before {
  content: ""; display: block; width: 3.4rem; height: 6px; margin-bottom: .7rem;
  background-image: repeating-linear-gradient(90deg, var(--baz-brass) 0 2px, transparent 2px 7px);
}

/* ---------- tiles ---------- */
.baz-tiles { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.baz-tile { background: #fff; border: 1px solid var(--baz-line); border-top: 3px solid var(--baz-sea); }
.baz-tile:nth-child(2) { border-top-color: var(--baz-caper); }
.baz-tile:nth-child(3) { border-top-color: var(--baz-brass); }
.baz-tile:nth-child(4) { border-top-color: var(--baz-abyss); }
.baz-tile figure { margin: 0; }
.baz-tile img { aspect-ratio: 4 / 3; object-fit: cover; }
.baz-tile > div { padding: 1rem 1rem 1.2rem; }
.baz-tile__no { display: block; font-family: var(--baz-serif); font-size: 1.5rem; color: var(--baz-sand); }
.baz-tile h3 { margin: .2rem 0 .4rem; }
.baz-tile h3 a { text-decoration: none; color: var(--baz-abyss); }
.baz-tile__note { font-size: .92rem; color: var(--baz-muted); }
.baz-tile__meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--baz-sea); margin: 0; }

@media (max-width: 60rem) { .baz-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .baz-tiles { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.baz-cards { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.baz-card { background: #fff; border: 1px solid var(--baz-line); display: flex; flex-direction: column; }
.baz-card__fig { margin: 0; }
.baz-card__fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.baz-card__body { padding: 1rem 1.1rem 1.25rem; }
.baz-card__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--baz-sea); margin: 0 0 .35rem; }
.baz-card h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.baz-card h3 a { text-decoration: none; color: var(--baz-abyss); }
.baz-card h3 a:hover { text-decoration: underline; }
.baz-card__note { font-size: .9rem; color: var(--baz-muted); margin: 0 0 .6rem; }
.baz-card__caption { font-family: var(--baz-serif); font-style: italic; font-size: .9rem; color: var(--baz-caper); margin: 0; }

@media (max-width: 60rem) { .baz-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .baz-cards { grid-template-columns: 1fr; } }

/* ---------- departures (archive) ---------- */
.baz-departs { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.6rem; }
.baz-depart { display: flex; gap: .9rem; align-items: baseline; border-bottom: 1px dotted var(--baz-line); padding-bottom: .7rem; }
.baz-depart__tag { flex: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--baz-brass); width: 7.5rem; margin: 0; }
.baz-depart h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.baz-depart__amorce { font-size: .88rem; color: var(--baz-muted); margin: 0; }
@media (max-width: 46rem) { .baz-departs { grid-template-columns: 1fr; } }

/* ---------- breadcrumb ---------- */
.baz-crumb { padding-top: 1.3rem; }
.baz-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .8rem; color: var(--baz-muted); }
.baz-crumb li + li::before { content: "/"; margin-right: .4rem; color: var(--baz-sand); }
.baz-crumb a { color: var(--baz-muted); }

/* ---------- article ---------- */
.baz-page { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; padding: 1.6rem 0 3.4rem; align-items: start; }
.baz-article { min-width: 0; }
.baz-article h1 { margin-bottom: .35em; }
.baz-article__standfirst { font-family: var(--baz-serif); font-size: 1.22rem; line-height: 1.55; color: var(--baz-deep); max-width: 42rem; }
.baz-article__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 1.6rem; padding: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--baz-muted); border-top: 1px solid var(--baz-line); border-bottom: 1px solid var(--baz-line); padding: .6rem 0; }
.baz-article__hero { margin: 0 0 1.8rem; }
.baz-article__hero img { border-radius: 3px; }
.baz-article__hero figcaption { font-size: .8rem; color: var(--baz-muted); margin-top: .55rem; }

.baz-body { max-width: 44rem; }
.baz-body h2 { margin-top: 2.1rem; padding-top: .2rem; }
.baz-body h2::before { content: ""; display: block; width: 2.6rem; height: 4px; margin-bottom: .55rem; background: var(--baz-brass); }
.baz-body p { font-size: 1.06rem; }
.baz-body em { color: var(--baz-caper); font-style: italic; }

.baz-onward { margin-top: 2.6rem; border-top: 3px solid var(--baz-abyss); padding-top: 1rem; }
.baz-onward h2 { font-size: 1.2rem; }
.baz-onward ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.4rem; }
.baz-onward a { text-decoration: none; }
.baz-onward a:hover { text-decoration: underline; }

/* ---------- sidebar ---------- */
.baz-side { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 1.2rem; }
.baz-side__box { background: var(--baz-foam); border: 1px solid var(--baz-line); border-left: 3px solid var(--baz-sea); padding: 1rem 1.1rem 1.2rem; }
.baz-side__box h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--baz-sans); color: var(--baz-deep); margin-bottom: .7rem; }
.baz-side__box ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.baz-side__box li + li { margin-top: .45rem; }
.baz-side__box a { text-decoration: none; }
.baz-side__box a:hover { text-decoration: underline; }
.baz-side__toc { counter-reset: baztoc; }
.baz-side__toc li { counter-increment: baztoc; }
.baz-side__toc a::before { content: counter(baztoc) ". "; color: var(--baz-brass); font-family: var(--baz-serif); }

.baz-v2 { border-left-color: var(--baz-caper); }
.baz-v3 { border-left-color: var(--baz-brass); }
.baz-v4 { border-left-color: var(--baz-abyss); }

@media (max-width: 56rem) {
  .baz-page { grid-template-columns: 1fr; gap: 2rem; }
  .baz-side { position: static; }
}

/* ---------- 404 ---------- */
.baz-404 { padding: 4rem 0 5rem; max-width: 40rem; }
.baz-404 h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }

/* ---------- footer ---------- */
.baz-foot { background: var(--baz-abyss); color: #bcd2da; border-top: 4px solid var(--baz-brass); margin-top: 0; }
.baz-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 2.6rem 0 1.6rem; }
.baz-foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.baz-foot p { font-size: .92rem; }
.baz-foot ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.baz-foot li + li { margin-top: .4rem; }
.baz-foot a { color: #d8e6ea; text-decoration: none; }
.baz-foot a:hover { color: #fff; text-decoration: underline; }
.baz-foot__base { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; border-top: 1px solid #24566f; padding: 1rem 0 1.4rem; font-size: .82rem; color: var(--baz-shallow); }
@media (max-width: 52rem) { .baz-foot__grid { grid-template-columns: 1fr; gap: 1.4rem; } }
