/* ============================================
   Master thesis website – base stylesheet
   Plain CSS only, no frameworks, no JavaScript.
   ============================================ */

:root {
  --color-bg: #f4ead9;          /* warm cream, matches app header */
  --color-text: #2e2117;        /* dark brown */
  --color-muted: #6b5c4a;
  --color-accent: #b5551e;      /* rust / terracotta orange */
  --color-accent-dark: #7a3712; /* deep brown, matches darkest risk class */
  --color-gold: #c1652f;        /* warm accent for hero highlights */
  --color-accent-light: #ece0cc;
  --color-border: #ddcdb0;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Verdana, Arial, sans-serif;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

a:hover,
a:focus {
  color: #1c3128;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 100px 20px;
  background-color: #26160a;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(180deg, rgba(38, 22, 10, 0.72) 0%, rgba(38, 22, 10, 0.5) 45%, rgba(38, 22, 10, 0.82) 100%),
    url("../pics/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.hero .eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
}

.hero h2 {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  margin: 0 auto 22px;
  max-width: 44rem;
  color: #fff;
  opacity: 0.88;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.5;
}

.hero .byline {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.hero .supervisor {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  opacity: 0.75;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hint:hover,
.scroll-hint:focus {
  opacity: 1;
  color: #fff;
}

/* Gallery page header (for subpages, smaller than the hero) */

.page-header {
  background: var(--color-accent-dark);
  color: #fff;
  padding: 40px 0 30px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header h2 {
  font-family: var(--font-body);
  font-weight: 400;
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

.page-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.back-link:hover,
.back-link:focus {
  opacity: 1;
  text-decoration: underline;
  color: var(--color-gold);
}

/* Map gallery grid */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 20px 0 10px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.gallery a {
  display: block;
}

/* Navigation */
 
.site-nav {
  background: var(--color-accent-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
}
 
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
 
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--color-accent);
}
 
.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
}
 
/* Main content */
 
main {
  padding: 40px 20px 20px;
}
 
section {
  margin-bottom: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
 
section:last-of-type {
  border-bottom: none;
}
 
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}
 
figure {
  margin: 20px 0;
}
 
figcaption {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 6px;
}
 
/* Buttons */
 
.button {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
 
.button:hover,
.button:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
 
.button-primary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
 
.button-primary:hover,
.button-primary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
 
/* Buttons used outside the hero (dark text on light background) */
main .button {
  border-color: var(--color-accent);
  color: var(--color-accent);
  white-space: normal;
}
 
main .button:hover,
main .button:focus {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
 
main .button-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
 
main .button-primary:hover,
main .button-primary:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
 
/* Downloads list */
 
.downloads {
  padding-left: 20px;
}
 
.downloads li {
  margin-bottom: 6px;
}
 

/* Footer */
 
.site-footer {
  background: var(--color-accent-light);
  border-top: 1px solid var(--color-border);
  padding: 32px 0 24px;
  text-align: center;
}
 
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
}
 
.footer-logos img {
  height: 50px;
  width: auto;
  opacity: 0.85;
}
 
.footer-text {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
 
.footer-links {
  margin: 0;
  font-size: 0.85rem;
}
 
.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
}
 
.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 700px) {
  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 90vh;
    padding: 80px 20px;
  }

  .site-nav ul {
    gap: 4px 12px;
  }
}
