/* Minimal, readable styles for the NORMA 2027 landing page */
:root {
  --bg: #e5e5e5; /* page background per request */
  --bg-alt: #f0f0f0;
  --text: #111827;
  --muted: #6b7280;
  --accent: #c8102e; /* Tallinn University red (approx.) */
  --accent-2: #8a1020; /* darker red for hovers */
  --card: #ffffff;
  --border: #e5e7eb;
  --logo-gray: #6b7280; /* match gray logo tone */
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font:
    16px/1.6 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: #323232; /* menu background per request */
  backdrop-filter: saturate(130%) blur(6px);
  border-bottom: 1px solid #2a2a2a;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  height: 48px;
  width: auto;
  display: block;
  filter: none;
}
/* Ensure no default image borders when wrapped in a link */
.logo-link img {
  border: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-title {
  font-size: 22px;
  margin: 10px 0;
  color: #ffffff;
}
.host {
  color: #d1d5db;
  font-size: 12px;
}
.site-nav a {
  color: #e5e7eb;
  margin-left: 14px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 48px 0;
  text-align: center;
  color: #fff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("./assets/A%20view%20at%20the%20Old%20Town.png");
  background-size: cover;
  background-position: center;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.event-tag {
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 18px; /* a bit bigger */
  margin: 2px 0 8px;
}
.hero h2 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.hero .kicker {
  color: #e5e7eb;
  margin-top: -4px;
}
.hero .lede {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 14px;
}
.hero .note {
  color: #e5e7eb;
  font-size: 14px;
}

/* Subtle text shadow for readability over the photo */
.hero h2,
.hero .event-tag,
.hero .kicker,
.hero .lede,
.hero .note {
  text-shadow: 0 10px 10px rgba(0, 0, 0, 1);
}

.section {
  padding: 40px 0;
}
.section.alt {
  background: linear-gradient(0deg, var(--bg-alt), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h3 {
  margin-top: 0;
  font-size: 22px;
}

.cta-row {
  margin: 24px 0 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  margin-right: 10px;
}
.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(200, 16, 46, 0.2);
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.btn:hover {
  border-color: var(--accent);
}

/* Hero-specific button styling: use neutral white buttons on dark photo */
.hero .btn,
.hero .btn.primary {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-right: 0;
}
.hero .btn:hover,
.hero .btn.primary:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
}
.topics-grid ul {
  margin: 0;
  padding-left: 20px;
}

.smallprint {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 30px 0 60px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.gallery figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Links */
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-2);
}
