/* Little Trees website styles.
   Plain, readable, high contrast, and the same in light and dark mode.
   Colours live in the variables at the top so they are easy to change. */

:root {
  --bg: #fdfdfa;
  --text: #1b1f1b;
  --muted: #4a524a;
  --accent: #b3101a;        /* the logo red; on --bg: about 6.9:1 */
  --accent-text: #ffffff;
  --border: #d6cfcf;
  --surface: #f5efef;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141212;
    --text: #efecec;
    --muted: #c0b8b8;
    --accent: #ff9c9c;      /* on --bg: about 9.3:1 */
    --accent-text: #1a0c0c;
    --border: #443a3a;
    --surface: #221c1c;
  }
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Skip link: the first thing a keyboard reaches. Hidden until focused. */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: bold;
  text-decoration: none;
  transform: translateY(-150%);
  z-index: 100;
}
.skip-link:focus { transform: none; }

/* Visible focus on everything. Never remove this. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header, main, .site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header { padding-top: 1.5rem; }

.site-name {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}
.site-name a { color: var(--text); text-decoration: none; display: inline-block; }
.site-name a:hover, .site-name a:focus-visible { text-decoration: underline; }
/* The logo is a JPEG with its own off-white background, so it sits on a matching tile. */
.site-name img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 12px;
  background: #f4f4f2;
}
@media (prefers-color-scheme: dark) {
  .site-name img { outline: 1px solid var(--border); }
}

/* Band photo on the home page */
.band-photo { margin: 0.5rem 0 1.5rem; }
.band-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 12px;
}
.band-photo figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.handle { font-weight: normal; }

/* Pictures inside posts and releases */
.artwork, .post-photo { margin: 1rem 0; }
.artwork img { display: block; width: 100%; max-width: 24rem; height: auto; border-radius: 12px; }
.post-photo img { display: block; width: 100%; max-width: 32rem; height: auto; border-radius: 12px; }
.artwork figcaption, .post-photo figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.address { color: var(--muted); }

blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--accent);
  font-size: 1.05rem;
}
blockquote p { margin: 0.5rem 0; }
blockquote cite { display: block; margin-top: 0.5rem; font-style: normal; color: var(--muted); font-size: 0.95rem; }

nav[aria-label="Main"] ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
nav[aria-label="Main"] a {
  display: inline-block;
  padding: 0.6rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
nav[aria-label="Main"] a:hover { text-decoration: underline; }
/* The current page is marked by a thick underline and bold weight, not colour alone. */
nav[aria-label="Main"] a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  font-weight: 800;
}

main { padding-bottom: 2rem; }

h1 { font-size: 2.2rem; line-height: 1.15; margin: 0.5rem 0 0.5rem; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 0.25rem; }
.lead { font-size: 1.25rem; color: var(--muted); margin-top: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

ul.inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.button {
  display: inline-block;
  padding: 0.7em 1.3em;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.button:hover { filter: brightness(1.1); text-decoration: underline; }

/* Lists of gigs and posts: one card per item, headings carry the meaning. */
ul.gigs, ul.posts { list-style: none; padding: 0; margin: 0; }
.gig, .post {
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.gig h3, .post h3, .post h2 { margin-top: 0; }
.gig p, .post p { margin: 0.25rem 0; }

/* Release countdown */
.countdown {
  padding: 1rem 1.25rem;
  margin: 1rem 0 0;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 10px;
}
.countdown h2 { margin-top: 0; }
.countdown-live { font-weight: 700; }

/* Embedded players */
.embed { margin: 1rem 0; }
.embed iframe { border: 0; border-radius: 12px; display: block; }
.embed-fallback { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* Contact form */
.contact-form .field { margin: 1rem 0; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--muted);
  border-radius: 6px;
}
.contact-form .hint { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.botcheck { position: absolute; left: -9999px; }

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Respect reduced-motion settings. There is no animation on the site anyway. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
