/* =============================================================
   SITENAME.COM — TEMPLATE STYLES
   Lightweight, no framework, pure CSS (Grid/Flexbox only).
   Mobile-first. Desktop grid caps out around 540px wide,
   which is 3 columns of 180px images + gaps + borders.
   ============================================================= */

:root {
  --color-bg: #0d0d0d;
  --color-accent: #F27324;   /* main orange accent (borders, title, text) */
  --color-accent-hover: #ffffff; /* border color on hover (desktop) */
  --color-text-on-accent: #000000; /* bold black text inside buttons */
  --color-link: #ffffff;     /* bottom links color */
  --image-w: 180px;
  --image-h: 240px;
  --gap: 8px;
  --wrapper-max: 560px; /* ~540px content + a little side padding */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps 3:4 ratio while filling the box */
}

a {
  text-decoration: none;
}

/* Page wrapper: centers everything, caps width on desktop */
.wrapper {
  max-width: var(--wrapper-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =============================================================
   BLOCK: HEADER / TITLE
   ============================================================= */
.site-header {
  text-align: center;
  padding: 20px 10px 16px;
}

.site-title {
  margin: 0;
  color: var(--color-accent);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================================
   BLOCK: IMAGE GRID (3x3)
   Repeat this block markup as many times as needed.
   Images auto-resize to device width, ratio stays 3:4 (180x240).
   ============================================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 0 var(--gap);
}

.image-item {
  display: block;
  aspect-ratio: 3 / 4;   /* keeps 180x240 proportion at any width */
  border: 2px solid var(--color-accent);
  background: #111111;
  overflow: hidden;
}

/* Hover effect only on devices with a real mouse (desktop) */
@media (hover: hover) and (pointer: fine) {
  .image-item:hover {
    border-color: var(--color-accent-hover);
  }
}

/* =============================================================
   BLOCK: BUTTONS (2 buttons in a row)
   Each button is a full clickable link.
   ============================================================= */
.button-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin: 0 0 var(--gap);
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  padding: 12px 8px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .button-link:hover {
    border-color: var(--color-accent-hover);
    opacity: 0.9;
  }
}

/* =============================================================
   BLOCK: TEXT
   ============================================================= */
.text-block {
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 4px;
}

.text-block p {
  margin: 0 0 14px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* =============================================================
   BLOCK: LINKS (bottom list, white, separated by " | ")
   ============================================================= */
.links-block {
  text-align: center;
  padding: 10px 4px 30px;
  font-size: 14px;
  font-weight: 700;
}

.links-block a {
  color: var(--color-link);
}

.links-block .sep {
  color: var(--color-link);
  padding: 0 6px;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .links-block a:hover {
    text-decoration: underline;
  }
}

/* =============================================================
   Small screens: tighten side padding a bit further
   ============================================================= */
@media (max-width: 380px) {
  :root {
    --gap: 6px;
  }
  .site-title {
    font-size: 22px;
  }
}
