/* The Mākaha Sons · site stylesheet
   One file, no framework. Colors and fonts are set once in :root below. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-condensed-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-condensed-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #474747;
  --bg-header: #000;
  --bg-footer: #111;
  --text: #ccc;
  --heading: #ddd;
  --link: #fff;
  --accent: #e8554e;
  --rule: #777;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --max: 1200px;
  --header-h: 70px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
}

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

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }

h1, h2, h3 {
  margin: 0 0 15px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}
h1 strong, h2 strong, h3 strong { font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 38px); }
h2 { font-size: clamp(28px, 3.5vw, 34px); }
h3 { font-size: clamp(22px, 3vw, 28px); }

p { margin: 0 0 1.5em; }
.content p a { border-bottom: 1px solid currentColor; }

hr {
  height: 1px;
  margin: 2.5em 0;
  border: 0;
  background: var(--rule);
}

.wrapper {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

.center { text-align: center; }
.right  { text-align: right; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px;
  background: #000;
  color: #fff;
}
.skip-link:focus { left: 10px; z-index: 100; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header + navigation ----------
   The header sits on top of the hero image with no bar of its own; a soft
   gradient behind the links keeps them readable over the photo. */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: var(--header-h);
}
/* Pages without a hero need room under the overlaid header. */
body.no-hero .content { padding-top: calc(var(--header-h) + 20px); }

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 24px 15px;
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  transition: color .3s;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] { color: var(--accent); }

.menu-toggle { display: none; }

@media (max-width: 909px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 14px;
    min-height: 44px;
    background: rgba(0,0,0,.75);
    border: 1px solid #666;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle:hover, .menu-toggle:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: #000;
    outline: 0;
  }
  .menu-toggle-icon { position: relative; width: 22px; height: 16px; }
  .menu-toggle-icon span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .25s, opacity .25s, top .25s;
  }
  .menu-toggle-icon span:nth-child(1) { top: 0; }
  .menu-toggle-icon span:nth-child(2) { top: 7px; }
  .menu-toggle-icon span:nth-child(3) { top: 14px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .site-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .site-nav.open {
    max-height: 80vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height .3s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; background: rgba(0,0,0,.95); border-radius: 4px; }
  .site-nav a { text-shadow: none; }
  .site-nav li { border-top: 1px solid #333; }
  .site-nav a { padding: 16px 20px; }
}

/* ---------- Hero image ---------- */

.hero { margin-bottom: 35px; text-align: center; background: #000; }
.hero img { margin: 0 auto; }

/* ---------- Content ---------- */

.content { padding: 35px 0 15px; }
.content section { margin-bottom: 1.5em; }
.content h1:first-child { margin-bottom: 1em; }

.intro h3 { margin-bottom: 20px; }

figure { margin: 0 0 1.5em; }
figure.poster img { margin: 0 auto; max-width: min(100%, 900px); }
figcaption {
  margin-top: .75em;
  font-size: 15px;
  text-align: center;
  color: #bbb;
}

audio { display: block; width: 100%; max-width: 600px; margin: 0 auto 1.5em; }

/* ---------- Album grid ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px 0;
}
.album-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
  transition: transform .3s, box-shadow .3s;
}
.album-grid a:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.album-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.album-grid span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}
.album-grid a:hover span, .album-grid a:focus span { opacity: 1; }
@media (max-width: 768px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}
/* No hover on touch screens, so keep captions visible there. */
@media (hover: none) {
  .album-grid span { opacity: 1; }
}

/* ---------- Videos (click-to-play YouTube) ---------- */

.videos { padding: 35px 0; }
.videos h2 { text-align: center; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.yt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.yt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yt img, .yt iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.yt::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55C3.97 2.33 2.27 4.81 1.48 7.74 0 13.05 0 24 0 24s0 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C68 34.95 68 24 68 24s0-10.95-1.48-16.26z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .9;
  transition: opacity .2s;
  pointer-events: none;
}
.yt:hover::after { opacity: 1; }
.yt.playing::after { display: none; }

/* ---------- Contact form ---------- */

.contact-form { max-width: 600px; }
.contact-form label { display: block; margin-bottom: 4px; color: var(--heading); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1.25em;
  border: 1px solid #666;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-form button {
  padding: 12px 32px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.contact-form button:hover { background: #d0443d; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 1em; color: var(--accent); }

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

.site-footer {
  margin-top: 10px;
  padding: 30px 0;
  background: var(--bg-footer);
  font-size: 13px;
  text-align: center;
}
