/*
Theme Name: Länsiväylä
Theme URI: https://lansivayla.band
Author: Länsiväylä
Description: Kevyt teema bändin esittelyyn, keikkakalenteriin ja lehdistökuviin.
Version: 0.4.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: lansivayla
*/

:root {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --text: #111111;
  --muted: #4a4a4a;
  --line: #111111;
  --red: #d0121a;
  --accent: var(--red);
  --accent-ink: #ffffff;
  --wrap: 72rem;
  --measure: 38rem;
  --sans: Futura, "Futura PT", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

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

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  min-height: 3.15rem;
  background: var(--text);
  padding: 0 max(1.25rem, calc((100vw - var(--wrap)) / 2));
}

.logo,
.custom-logo-link {
  margin-right: auto;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  line-height: 1;
}

.custom-logo {
  width: auto;
  max-height: 36px;
}

.site-nav .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
}

.site-nav a {
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .current-menu-item a,
.site-nav .current_page_item a,
.site-nav a:hover {
  color: var(--red);
}

.cover {
  padding: 1rem 0 0.25rem;
}

.cover .wrap {
  container-type: inline-size;
}

.issue {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.swatch {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--red);
}

.hero-title,
.page-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.hero-title {
  font-family: "Avenir Next", "Helvetica Neue", "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 14.2cqi;
  line-height: 1.15;
  max-width: 100%;
  padding-top: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 1rem 2.25rem;
  align-items: start;
  margin-top: 0.65rem;
}

.cover-intro {
  margin-top: 0.85rem;
}

.home-listen {
  margin-top: 1.15rem;
}

.cover-side .issue {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.cover-side .swatch {
  width: 1.35rem;
  height: 1.35rem;
}

.hero-lead {
  margin: 0 0 1.35rem;
  max-width: 22rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cover-gigs {
  border-top: 2px solid var(--text);
}

.cover-gig {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 2px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.2;
}

.cover-gig time,
.cover-city {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cover-city {
  text-transform: uppercase;
}

.cover-gig:hover {
  color: var(--red);
}

.cover-tickets {
  margin-top: 1.15rem;
}

.cover-poster {
  margin: 0 0 1.1rem;
  border: 3px solid var(--text);
}

.cover-poster img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center 54%;
}

.keikka-poster {
  max-width: 22rem;
  margin-top: 1.5rem;
  border: 3px solid var(--text);
}

.hero-figure {
  position: relative;
  margin: 0;
  border: 3px solid var(--text);
  background: var(--text);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 24rem;
  object-fit: cover;
  object-position: center 20%;
}

.shape-red {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 4.4rem;
  height: 4.4rem;
  background: var(--red);
}

.section {
  padding: 3rem 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
}

.kicker.later {
  margin-top: 3rem;
}

.entry-content {
  max-width: var(--measure);
}

.entry-content > * + * {
  margin-top: 1rem;
}

.entry-content h2,
.entry-content h3 {
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 2rem 0 0;
}

.entry-content ul {
  padding-left: 1.1rem;
}

.gig-list {
  margin: 0;
  padding: 0;
}

.gig {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 2px solid var(--text);
  color: inherit;
}

.gig:last-child {
  border-bottom: 2px solid var(--text);
}

.gig time {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.gig-title {
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gig-title:hover {
  color: var(--red);
}

.gig-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.gig-tickets {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.more-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.more-link:hover {
  color: var(--red);
}

.empty {
  margin: 0;
  color: var(--muted);
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--text);
  color: var(--bg);
}

.spotify {
  margin-top: 1rem;
}

.spotify iframe {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: var(--measure);
  margin-top: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 2px solid var(--text);
  padding: 0.75rem 0.8rem;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  max-width: var(--measure);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  border: 2px solid var(--text);
}

.notice-ok {
  border-color: var(--text);
}

.editor-hint {
  max-width: var(--measure);
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--text);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 8px solid var(--text);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.site-footer p {
  margin: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text);
}

.social-links svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--red);
}

@media (min-width: 801px) {
  .split-page .split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.8fr);
    gap: 1.25rem 2.5rem;
    align-items: start;
  }

  .split-page .entry-content {
    display: contents;
    max-width: none;
  }

  .split-page .entry-content > * {
    grid-column: 1;
  }

  .split-page .entry-content > :is(p, figure):has(img),
  .split-page .page-photo {
    grid-column: 2;
    grid-row: 1 / span 20;
    margin: 0;
  }

  .split-page .page-photo img,
  .split-page .entry-content img {
    width: 100%;
    border: 3px solid var(--text);
  }
}

@media (max-width: 800px) {
  .bar .logo,
  .bar .custom-logo-link {
    display: none;
  }

  .bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0.35rem 1rem;
  }

  .site-nav .menu {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 11.2cqi;
    letter-spacing: -0.06em;
  }

  .hero-image {
    max-height: none;
  }

  .cover-grid {
    display: flex;
    flex-direction: column;
  }

  .cover-main {
    display: contents;
  }

  .hero-figure {
    order: 1;
  }

  .cover-intro {
    order: 2;
  }

  .cover-side {
    order: 3;
  }

  .gig {
    grid-template-columns: 1fr auto;
  }

  .gig time {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
