/* Jeppo Tower / OH6LEI — shared styles */

:root {
  --bg: #f8f9fb;
  --surface: #fff;
  --text: #1a1a1e;
  --muted: #5c5f66;
  --accent: #b30000;
  --accent-hover: #8f0000;
  --border: #d8dce3;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 56rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1c1f26;
    --text: #e8eaef;
    --muted: #9aa0ab;
    --accent: #ff6b6b;
    --accent-hover: #ff8585;
    --border: #353a45;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--bg);
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.site-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.site-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

main {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem 1.75rem;
}

.intro {
  margin: 0 0 1.25rem;
}

.intro p {
  margin: 0 0 0.65rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--surface);
  background: var(--accent);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.site-nav a:hover {
  background: var(--accent-hover);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .site-nav a {
    color: #111;
  }
}

.media-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.media-block h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.media-block > img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.photo-row img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.back-row {
  margin-top: 1rem;
}

.back-row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--surface);
  background: var(--accent);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.back-row a:hover {
  background: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .back-row a {
    color: #111;
  }
}

/* —— Home page (index.html) —— */

.hero {
  text-align: center;
  padding: 0.25rem 0 1.5rem;
  margin: 0 0 0.25rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.15;
}

.hero-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

.clock-card {
  margin: 0.75rem auto 0;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  line-height: 0;
}

.photo-grid-triple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  align-items: start;
}

.photo-grid-triple img,
.tower-season-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

.spotlight-block .section-lead {
  margin: -0.2rem 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.random-spotlight {
  min-height: 2rem;
}

.random-spotlight a {
  display: block;
  max-width: 100%;
}

.random-spotlight img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.solar-section {
  text-align: center;
  margin-top: 0.5rem;
}

.solar-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.solar-section > p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.solar-chart-link {
  display: inline-block;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 0;
}

.solar-chart-link img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-footer--extended {
  margin-top: 2rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
  margin: 1.25rem 0 1rem;
}

.site-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--surface);
  background: var(--accent);
  border-radius: 8px;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-link-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.site-link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-link-btn--ghost {
  background: transparent;
  color: var(--accent);
}

.site-link-btn--ghost:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .site-link-btn {
    color: #111;
  }

  .site-link-btn--ghost {
    color: var(--accent);
  }
}

.contact-line {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-line a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.video-countdown-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.tm-video {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0a0c;
  vertical-align: bottom;
}

.countdown-embed {
  max-width: 100%;
  border-radius: 8px;
}
