/* Linköpings Suzukiförening — shared styles */

:root {
  --accent: #82403e;
  --text: #222;
  --muted: #555;
  --surface: #fff;
  --border: rgba(60, 60, 60, 0.55);
  --max-width: 830px;
}

/* Global reset and box-sizing for easier layout. */

* {
  box-sizing: border-box;
}

/* Header and navigation styles. */

.hero {
  background: var(--accent);
  padding: 14px 0 0;
}

.hero-image,
.footer-image {
  width: 100%;
  object-fit: cover;
}

.desktop-nav {
  margin: 12px 0 0;
}

.desktop-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
  background: var(--accent);
  border-bottom: 1px solid #fff;
}

.desktop-nav a {
  display: block;
  padding: 12px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

a[aria-current="page"] {
  background-color: #fff4;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .desktop-nav ul {
    flex-wrap: wrap;
  }

  .desktop-nav a {
    padding: 10px 14px;
    font-size: 0.97rem;
  }
}

/* Footer style */

footer {
  padding: 36px 0 22px;
  background-color: var(--accent);
}

/* Main layout elements. container for centering content and setting max width. */

.container,
section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.container {
  padding: 0px 12px;
}

section {
  border-bottom: 1px solid var(--border);
  padding: 28px 12px;
}

section:last-of-type {
  /* Remove bottom border from last section. */
  border-bottom: 0px;
}

/* Typography and spacing for content */

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

img {
  display: block;
  width: min(100%, var(--max-width));
  height: auto;
  /* Center images by default. */
  margin: auto;
}

a {
  color: #64A49D;
  text-decoration: none;
}

h1 {
  margin: 2.4rem 0 1.0rem;
  font-size: clamp(2rem, 3.6vw, 2.3rem);
  text-align: center;
}

h2 {
  margin: 2.4rem 0 0.0rem;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}

h3 {
  margin: 2.0rem 0 0.0rem;
  font-weight: 600;
  color: #444;
}

p,
li,
h3 {
  font-size: clamp(1.0rem, 2.0vw, 1.2rem);
}

p,
ul,
ol {
  margin: 0.5rem 0 1rem;
}

ul {
  padding-left: 1.5rem;
}

ul.tags {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

ul.tags li {
  margin: 0;
  padding: 0.22rem 0.68rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #ffffff);
  color: color-mix(in srgb, var(--accent) 80%, #111111);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

ol {
  padding-left: 1.8rem;
}

/* Flexbox layout for columns */
.columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sizes for images in content, based on 6 columns with 2rem total gap */
.size-2,
.size-3,
.size-4,
.size-5 {
  display: block;
  height: auto;
}

.size-1 {
  width: min(100%, calc(var(--max-width) / 6 * 1 - 2rem));
}

.size-2 {
  width: min(100%, calc(var(--max-width) / 6 * 2 - 2rem));
}

.size-3 {
  width: min(100%, calc(var(--max-width) / 6 * 3 - 2rem));
}

.size-4 {
  width: min(100%, calc(var(--max-width) / 6 * 4 - 2rem));
}

.size-5 {
  width: min(100%, calc(var(--max-width) / 6 * 5 - 2rem));
}

/* Crop box for images. Use img style "margin" to adjust the visible area. */

div.crop-box {
  overflow: hidden;
}

/* Notes, author credits and other details. */

.note {
  font-style: italic;
  text-align: center;
}

.author {
  font-style: italic;
}

.image-text {
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 0;
}

/* Styles for archive filter section */

.archive-filter {
  padding-top: 22px;
  padding-bottom: 18px;
}

.archive-filter p {
  font-size: 0.95rem;
}

#archive-filter-status {
  color: var(--muted);
}

#archive-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-filter-button {
  margin: 0;
  padding: 0.32rem 0.82rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--accent) 80%, #111111);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-filter-button:hover {
  background: color-mix(in srgb, var(--accent) 20%, #ffffff);
}

.tag-filter-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, #ffffff);
  outline-offset: 2px;
}

.tag-filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.is-hidden-by-filter {
  display: none;
}