/* Warm & Glad site styles, version 2.0
   Dark olive, IBM Plex Mono for text, LINE Seed JP for headings.
   Colours, fonts and spacing are set once here in :root. */

:root {
  --gold: #E1C953;
  --coral: #E16553;
  --maroon: #8C3326;
  --olive: #212700;
  --sage: #84AF7B;

  --bg: var(--olive);
  --ink: #EDEADB;                         /* main text, a warm off-white */
  --soft: rgba(237, 234, 219, 0.72);      /* secondary text */
  --faint: rgba(237, 234, 219, 0.5);      /* breadcrumbs, small print */
  --line: rgba(237, 234, 219, 0.16);      /* hairlines */
  --panel: rgba(237, 234, 219, 0.07);     /* flat boxes (nav, chips) */
  --panel-hi: rgba(237, 234, 219, 0.13);

  --font-head: "LINE Seed JP", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --wide: 1240px;
  --text: 700px;
  --gutter: 28px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, iframe, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--olive); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Small caps labels: dates, tags, meta */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--olive); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Outlined chip, like a file tag */
.chip {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 10px;
  line-height: 1.5;
  text-decoration: none;
}

/* Flat buttons, square corners */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: var(--gold); color: var(--olive);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 12px 20px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--coral); border-color: var(--coral); color: var(--olive); }
  .btn--line:hover { background: transparent; border-color: var(--coral); color: var(--coral); }
}
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

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

.site-header { padding: 22px 0 0; }

.bar { display: flex; align-items: center; gap: 28px; }

.logo { display: block; flex: none; color: var(--gold); transition: color 0.3s; }
.logo svg { height: 34px; width: auto; }
@media (hover: hover) and (pointer: fine) { .logo:hover { color: var(--coral); } }
.logo:focus-visible { color: var(--coral); outline: none; }

.nav { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 10px;
  background: var(--panel);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: color 0.2s, background 0.2s;
}
.nav a[aria-current="page"] { background: var(--gold); color: var(--olive); }
.nav .ext::after { content: "\00a0\2197"; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--coral); background: var(--panel-hi); }
  .nav a[aria-current="page"]:hover { color: var(--olive); background: var(--coral); }
}
.nav a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- Home: hero ---------- */

.hero { padding-top: 28px; }

.hero-frame { position: relative; }

.hero-frame > img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%;
  background: var(--panel);
}

.sessions-btn {
  position: absolute; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center;
  background: var(--olive);
  border: 1px solid var(--gold);
  padding: 12px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.sessions-btn img { height: 40px; width: auto; }

@media (hover: hover) and (pointer: fine) {
  .sessions-btn:hover { border-color: var(--coral); background: #2c3300; }
}
.sessions-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- Sections ---------- */

.section { padding: 64px 0 0; }

.section-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 16px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px;
}
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; color: var(--ink); }
.section-head h2.chip { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.5; }
.section-head a { text-decoration: none; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .section-head a:hover { color: var(--coral); border-color: var(--coral); } }

/* Featured (home) */

.featured {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px;
  align-items: start;
}

.featured-img { display: block; }
.featured-img img { width: 100%; height: auto; background: var(--panel); transition: opacity 0.2s; }

.featured-meta { list-style: none; padding: 0; margin: 0 0 22px; color: var(--soft); }
.featured-meta li { border-bottom: 1px solid var(--line); padding: 7px 0; }
.featured-meta li:first-child { border-top: 1px solid var(--line); }

.featured h3 {
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05;
  color: var(--gold); margin: 0 0 18px;
}
.featured h3 a { text-decoration: none; transition: color 0.2s; }
.featured p { margin: 0 0 24px; max-width: 520px; }
.featured .actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (hover: hover) and (pointer: fine) {
  .featured h3 a:hover { color: var(--coral); }
  .featured-img:hover img { opacity: 0.85; }
}

/* Music */

.mixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mixes iframe { width: 100%; height: 300px; border: 0; background: var(--panel); }

/* ---------- Post grid (Benji B style) ---------- */

.toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin: 0 0 22px;
}
.toolbar .chip { color: var(--soft); }

.view-toggle { display: flex; gap: 0; }
.view-toggle button {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 34px; padding: 0;
  background: var(--panel); color: var(--soft); border: 0; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-toggle button + button { margin-left: 2px; }
.view-toggle button[aria-pressed="true"] { background: var(--panel-hi); color: var(--ink); }
.view-toggle svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .view-toggle button:hover { color: var(--coral); } }
.view-toggle button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }

.card { display: block; text-decoration: none; text-align: center; }
.card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--panel);
  transition: opacity 0.2s;
}
.card h3 { font-size: 16px; line-height: 1.3; margin: 14px 0 6px; color: var(--ink); transition: color 0.2s; }
.card .card-meta { font-size: 13px; line-height: 1.5; color: var(--soft); margin: 0; }

@media (hover: hover) and (pointer: fine) {
  .card:hover h3 { color: var(--coral); }
  .card:hover .card-img { opacity: 0.82; }
}
.card:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

/* List view */

.post-index.is-list .grid { display: block; border-top: 1px solid var(--line); }
.post-index.is-list .card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 130px; gap: 20px;
  align-items: center; text-align: left;
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.post-index.is-list .card-img { width: 64px; }
.post-index.is-list .card h3 { margin: 0; font-size: 18px; }
.post-index.is-list .card-meta { display: contents; }
.post-index.is-list .card-meta span { display: block; }
.post-index.is-list .card-meta br { display: none; }

/* ---------- Page heads (Posts, About) ---------- */

.page-head { padding: 52px 0 26px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0; color: var(--sage); }
.page-head p { color: var(--soft); max-width: var(--text); margin: 16px 0 0; }

/* ---------- Post page ---------- */

.post { max-width: calc(var(--text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.post-head { padding: 52px 0 28px; }
.post-head h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; margin: 0 0 20px; color: var(--sage); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.post-tags .chip { color: var(--soft); }
.post-excerpt { font-size: 17px; line-height: 1.6; margin: 0 0 14px; color: var(--ink); }
.post-date { color: var(--faint); margin: 0; }

.post-feature { margin: 0; }
.post-feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% var(--focus, 40%); background: var(--panel); }
.post-feature--full { max-width: 520px; }
.post-feature--full img { aspect-ratio: auto; height: auto; }

.post-feature figcaption, .post-body figcaption {
  font-size: 12px; color: var(--faint); margin-top: 10px;
}

.post-body { padding: 36px 0 0; }
.post-body p, .post-body ul { margin: 0 0 1.25em; }
.post-body strong { color: var(--gold); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body h2 { font-size: 26px; margin: 1.8em 0 0.6em; }
.post-body h3 { font-size: 20px; margin: 1.8em 0 0.6em; }
.post-body a { text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
@media (hover: hover) and (pointer: fine) { .post-body a:hover { color: var(--coral); text-decoration-color: var(--coral); } }
.post-body a.btn { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-body a.btn:hover { color: var(--olive); } }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body figure { margin: 2.2em 0; }
.post-body figure img { width: 100%; height: auto; background: var(--panel); }
.post-body .figure-square { max-width: 460px; }
.post-body .embed { margin: 1.4em 0; }
.post-body .embed iframe { width: 100%; height: 300px; border: 0; background: var(--panel); }

.links-box { border: 1px solid var(--gold); padding: 22px 24px; margin: 2.6em 0 0; }
.links-box h2 { font-size: 22px; margin: 0 0 12px; color: var(--gold); }
.links-box p { margin: 0 0 6px; }

.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 18px;
}
.share .label { color: var(--faint); margin-right: 8px; }
.share a, .share button {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--panel); border: 0; padding: 7px 12px; color: var(--ink);
  cursor: pointer; text-decoration: none; transition: color 0.2s, background 0.2s;
}
@media (hover: hover) and (pointer: fine) { .share a:hover, .share button:hover { color: var(--coral); background: var(--panel-hi); } }

.more { padding-top: 80px; }

/* ---------- Sign-up strip ---------- */

.signup { padding: 88px 0 72px; }
.signup-box {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center;
}
.signup h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; margin: 0 0 10px; color: var(--gold); }
.signup p { margin: 0; color: var(--soft); }

.signup-form { display: flex; gap: 8px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); color: var(--ink);
}
.signup-form input[type="email"]::placeholder { color: var(--faint); }
.signup-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.signup-form .hp { position: absolute; left: -9999px; }
.signup-msg { min-height: 1.6em; margin: 10px 0 0 !important; font-size: 13px; }
.signup-msg.ok { color: var(--sage) !important; }
.signup-msg.err { color: var(--coral) !important; }

/* ---------- About ---------- */

.about-body { max-width: var(--text); padding-bottom: 8px; }
.about-body img { width: 100%; height: auto; margin: 0 0 36px; background: var(--panel); }
.about-body p { margin: 0 0 1.1em; }
.about-body h2 { font-size: 24px; margin: 1.8em 0 0.5em; color: var(--gold); }
.about-body a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .about-body a:hover { color: var(--coral); } }

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

.site-footer { padding: 0 0 36px; }
.footer-peachy { display: block; width: min(560px, 100%); height: auto; margin: 0 0 30px; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; background: var(--panel); padding: 7px 12px; transition: color 0.2s, background 0.2s;
}
@media (hover: hover) and (pointer: fine) { .site-footer nav a:hover { color: var(--coral); background: var(--panel-hi); } }
.site-footer small { font-size: 12px; color: var(--faint); }
.footer-end { display: flex; align-items: center; gap: 18px; }
.footer-toothy { width: 34px; height: auto; }

/* ---------- 404 ---------- */

.notfound { padding: 100px 0 20px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); color: var(--sage); }
.notfound p { color: var(--soft); }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { gap: 32px; }
  .signup-box { grid-template-columns: 1fr; }
  .post-index.is-list .card { grid-template-columns: 56px minmax(0, 1fr) 150px; }
  .post-index.is-list .card-img { width: 56px; }
  .post-index.is-list .card-meta span:last-child { display: none; }
}

/* ---------- Phone ---------- */

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .logo svg { height: 28px; }
  .nav { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .nav a { min-height: 38px; }
  .hero { padding-top: 18px; }
  .hero-frame > img { aspect-ratio: 4 / 3; }
  .sessions-btn { right: 10px; bottom: 10px; padding: 8px 12px; }
  .sessions-btn img { height: 28px; }
  .featured { grid-template-columns: 1fr; gap: 24px; }
  .featured-img { max-width: 300px; }
  .section { padding-top: 52px; }
  .mixes { grid-template-columns: 1fr; }
  .mixes iframe { height: 220px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card h3 { font-size: 15px; }
  .card .card-meta { font-size: 12px; }
  .post-index.is-list .card { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .post-index.is-list .card-img { width: 48px; }
  .post-index.is-list .card h3 { font-size: 16px; }
  .post-index.is-list .card-meta span { display: none; }
  .signup { padding-top: 64px; }
  .signup-form { flex-direction: column; }
  .post-excerpt { font-size: 16px; }
  .post-body .embed iframe { height: 260px; }
}
