/* Vic Malvolti Mastering — styles repris du site Squarespace
   Titres : Anton. Texte : Epilogue. Fond : #F4F4F3. */

:root {
  --bg: #f4f4f3;
  --ink: #101010;
  --heading: #383838;
  --muted: #5a5a58;
  --rule: #c9c9c6;
  --maxw: 44rem;
  --wide: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Epilogue, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 2.4rem 1.25rem 0;
}

.wordmark {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  letter-spacing: .04em;
  color: var(--heading);
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2.1rem;
  margin-top: 1.6rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a.is-current { border-bottom-color: var(--ink); }

/* ---------- Menu mobile ---------- */

.nav-toggle {
  display: none;
  margin: 1.4rem auto 0;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 0;
  padding: .5rem .2rem;
  cursor: pointer;
  font-family: Epilogue, sans-serif;
  font-size: 1rem;
  color: var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 48rem) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.6rem;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.1rem; }
}

/* ---------- Layout ---------- */

main { padding: 3.5rem 1.25rem 5rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; }
.wrap-wide { max-width: var(--wide); margin-inline: auto; }

.centered { text-align: center; }

.stack > * + * { margin-top: 1.1rem; }

section + section { margin-top: 5rem; }

h1, h2, h3 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--heading);
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 1.1rem;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.1rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6rem auto; max-width: 20rem; }

.rule-top { border-top: 1px solid var(--rule); padding-top: 2.2rem; }

a.link, main p a, main li a { color: inherit; text-underline-offset: 3px; }

.email-link {
  font-family: Epilogue, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-underline-offset: 4px;
}

/* ---------- Home ---------- */

.home-figure { max-width: 34rem; margin: 0 auto 1.6rem; }
.home-intro { max-width: 34rem; margin-inline: auto; }

/* ---------- Grids ---------- */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.4rem;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.6rem;
  align-items: start;
}

/* ---------- Mastering ---------- */

.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 2rem;
  align-items: start;
  max-width: 40rem;
  margin-inline: auto;
}
@media (max-width: 40rem) {
  .intro-split { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; text-align: center; }
  .intro-split img { max-width: 13rem; }
}

/* la premiere section apres l'intro a besoin du meme souffle que les autres */
main > .intro-split + section { margin-top: 5rem; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .9rem;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: #111 center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.video::after {
  content: "";
  position: absolute; inset: 0;
  background: no-repeat center/3.2rem 2.25rem
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'><path fill='%23f00' d='M66.5 7.7a8.6 8.6 0 0 0-6-6C55 0 34 0 34 0S13 0 7.5 1.6a8.6 8.6 0 0 0-6 6A90 90 0 0 0 0 24a90 90 0 0 0 1.5 16.3 8.6 8.6 0 0 0 6 6C13 48 34 48 34 48s21 0 26.5-1.7a8.6 8.6 0 0 0 6-6A90 90 0 0 0 68 24a90 90 0 0 0-1.5-16.3z'/><path fill='%23fff' d='M27 34l18-10-18-10z'/></svg>");
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing::after { display: none; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem 3rem;
}
blockquote {
  margin: 0;
  font-style: italic;
  text-align: center;
}
blockquote cite { display: block; margin-top: .7rem; font-style: normal; color: var(--muted); }

.gear-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

details {
  border-bottom: 1px solid var(--rule);
  padding: .95rem 0;
}
details summary {
  cursor: pointer;
  font-family: Anton, Impact, sans-serif;
  text-transform: uppercase;
  color: var(--heading);
  font-size: .95rem;
  letter-spacing: .02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "\203A"; transform: rotate(90deg); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { transform: rotate(-90deg); }
details .answer { padding-top: .8rem; }

.price-row { margin-bottom: 1.4rem; }
.price-row strong { font-weight: 600; }
.price-row .note { display: block; font-style: italic; color: var(--muted); font-size: .95rem; }

.spec { border-bottom: 1px solid var(--rule); padding-bottom: .9rem; margin-bottom: .9rem; }
.spec:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--rule); padding: .7rem .8rem; text-align: center; vertical-align: top; }
th { font-weight: 600; }

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 3rem 2.5rem;
}
.post-card { text-align: center; }
.post-card img { margin-bottom: 1.1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.post-card a.title-link { text-decoration: none; }
.post-card a.title-link:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.post-meta { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.more { display: inline-block; margin-top: .3rem; text-underline-offset: 4px; }

.post-body h2 { margin-top: 2.6rem; }
.post-body h3 { margin-top: 2rem; font-size: 1rem; }
.post-body ul { padding-left: 1.2rem; }
.post-body li { margin-bottom: .4rem; }
.post-body figure { margin: 2rem 0; }
.post-body figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; text-align: center; }
.post-header { text-align: center; margin-bottom: 2.6rem; }
.tags { margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.post-nav { margin-top: 3.5rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
  font-size: .98rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 1.1rem; align-items: center; }
@media (max-width: 34rem) {
  .site-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
