/* =========================================================
   Base variables
   ========================================================= */

:root {
  --max-width: 760px;

  --bg-color: #fafafa;
  --text-color: #1f1f1f;
  --muted-color: #666;

  --accent-color: #2f5d50;
  --border-color: #ddd;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   Global reset & body
   ========================================================= */

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

body {
  margin: 0;
  padding: 1rem;

  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;

  color: var(--text-color);
  background-color: var(--bg-color);
}

/* =========================================================
   Layout
   ========================================================= */

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);

  font-size: 0.9rem;
  color: var(--muted-color);
}

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

p {
  margin: 0 0 1.1rem 0;
}

strong {
  font-weight: 600;
}

ul {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem 0;
}

li {
  margin-bottom: 0.4rem;
}

/* =========================================================
   Navigation
   ========================================================= */

nav {
  margin-top: 0.5rem;
}

nav a {
  margin-right: 1rem;

  font-size: 0.95rem;
  font-weight: 600;

  color: var(--accent-color);
  text-decoration: none;
}

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

/* =========================================================
   Links
   ========================================================= */

a {
  color: var(--accent-color);
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================================================
   Images
   ========================================================= */

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

/* =========================================================
   Image Gallery
   ========================================================= */

.gallery {
  margin: 2rem 0;
}

.gallery img {
  display: none;
  border-radius: 4px;
}

.gallery img.active {
  display: block;
}

.gallery-controls {
  margin-top: 0.6rem;
  text-align: center;
}

.gallery-controls button {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);

  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;

  padding: 0.35rem 0.9rem;
  margin: 0 0.25rem;

  border-radius: 3px;
  cursor: pointer;
}

.gallery-controls button:hover,
.gallery-controls button:focus {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* =========================================================
   Tables (for maintenance notes)
   ========================================================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 700;
}

/* =========================================================
   Forms / Buttons (future-safe)
   ========================================================= */

button {
  font-family: var(--font-main);
}

/* =========================================================
   Private section hint (optional)
   ========================================================= */

.private-note {
  font-size: 0.9rem;
  color: var(--muted-color);
  border-left: 3px solid var(--accent-color);
  padding-left: 0.75rem;
  margin: 1.5rem 0;
}

/* =========================================================
   Accessibility & polish
   ========================================================= */

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}