/* AVWM static site - generated from the historical site */

/* --------------------------------------------------------------------------
   Global variables and base styles
   -------------------------------------------------------------------------- */
:root {
  --sidebar-width: 206px;
  --line: #d7dbe0;
  --text: #1d252c;
  --muted: #65717c;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --accent: #245f9c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

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

a {
  color: #124f87;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #07345d;
}


/* --------------------------------------------------------------------------
   Main site layout
   -------------------------------------------------------------------------- */
.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.site-sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 8px 9px 24px;
}

.sidebar-inner {
  position: sticky;
  top: 8px;
}

.site-main {
  min-width: 0;
  padding: 30px clamp(22px, 4vw, 62px) 56px;
}

.content-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.legacy-nav {
  width: 186px;
  margin: 0 auto;
}

.legacy-nav a,
.legacy-nav img {
  display: block;
  width: 186px;
  height: auto;
  border: 0;
}

.mobile-brand,
.mobile-nav {
  display: none;
}


/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */
.site-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.site-header h1 {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-header p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}


/* --------------------------------------------------------------------------
   Front-page tiles
   -------------------------------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 34px;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 35, 50, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(20, 35, 50, 0.12);
  color: inherit;
}

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-copy {
  padding: 16px 17px 18px;
}

.tile-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tile h2 {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tile p {
  margin: 8px 0 0;
  color: #4e5963;
  font-size: 0.94rem;
}


/* --------------------------------------------------------------------------
   Home-page supporting content
   -------------------------------------------------------------------------- */
.home-intro {
  max-width: 850px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.quick-link {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
}

.quick-link strong {
  display: block;
  margin-bottom: 4px;
}


/* --------------------------------------------------------------------------
   Legacy article content
   -------------------------------------------------------------------------- */
.legacy-content {
  max-width: 1000px;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.2;
}

.legacy-content h1 {
  margin-top: 0;
  font-size: 2rem;
}

.legacy-content h2 {
  margin-top: 1.6em;
  font-size: 1.45rem;
}

.legacy-content h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
}

.legacy-content table {
  max-width: 100%;
  border-collapse: collapse;
}

.legacy-content td,
.legacy-content th {
  padding: 5px 7px;
  vertical-align: top;
}

.legacy-content figure {
  max-width: 100%;
  margin: 20px 0;
}

.legacy-content figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}


/* --------------------------------------------------------------------------
   Image galleries
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.gallery a {
  display: block;
  overflow: hidden;
}

.gallery img {
  display: block;
  width: 100%;
  height: 180px;
  max-width: none;
  object-fit: cover;
  border: 0;
}


/* --------------------------------------------------------------------------
   Notes and footer
   -------------------------------------------------------------------------- */
.privacy-note {
  margin-top: 26px;
  padding: 13px 15px;
  background: #f7f7f7;
  border-left: 4px solid #8a949d;
  color: #47525c;
}

footer.site-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}


/* --------------------------------------------------------------------------
   Responsive layout
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile:last-child {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .site-shell {
    display: block;
  }

  .site-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .sidebar-inner {
    position: static;
  }

  .legacy-nav {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .mobile-brand img {
    width: 58px;
    height: auto;
  }

  .mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.91rem;
  }

  .mobile-nav a {
    text-decoration: none;
  }

  .site-main {
    padding: 24px 18px 42px;
  }

  .tile-grid,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .tile:last-child {
    grid-column: auto;
  }
}
