@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;600&display=swap");

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
article, aside, figure, footer, header, nav, section { display: block; }

/* ─── Variables ─── */
:root {
  --bg:      #080a08;
  --surface: #0c0f0c;
  --card:    #111511;
  --border:  rgba(152, 212, 160, 0.14);
  --text:    #a8baa8;
  --heading: #a8c890;
  --muted:   #6e876e;
  --accent:  #98d4a0;
  --accent-bright: #b4e4be;
}

/* ─── Base ─── */
html { font-size: 15px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-weight: 300;
  padding-top: 3.5em;
  -webkit-text-size-adjust: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-bright); }

strong, b { font-weight: 400; color: var(--accent); }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* ─── Typography ─── */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #9abaa0;
  font-size: 2.4em;
  letter-spacing: 0.12em;
  margin-bottom: 0.35em;
  line-height: 1.2;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--heading);
  font-size: 2.2em;
  letter-spacing: 0.12em;
  margin-bottom: 0.35em;
  line-height: 1.2;
}
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #99c7a0;
  font-size: 1.8em;
  letter-spacing: 0.12em;
  margin-bottom: 0.85em;
}
h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--muted);
  font-size: 0.8em;
  letter-spacing: 0.05em;
  margin: 0.5em 0 1em;
}

/* ─── Layout ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2em;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: -1.5em;
  margin-left: -1.5em;
}
.row > * {
  padding-top: 1.5em;
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
}

.col-4 { width: 33.333%; }
.col-8 { width: 66.667%; }

/* ─── Nav ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3.5em;
  line-height: 3.5em;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 1000;
}
#nav ul { list-style: none; }
#nav li { display: inline-block; }
#nav a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.18em;
  display: inline-block;
  color: var(--text);
  padding: 0 1.4em;
  height: 2.4em;
  line-height: 2.4em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
#nav a:hover {
  color: var(--heading);
  background: rgba(152, 212, 160, 0.08);
}

/* ─── Sections ─── */
.wrapper { padding: 5em 0; text-align: center; }

#top      { background: var(--surface); text-align: left; }
#activity { background: var(--bg); }
#contact  { background: var(--surface); }

header { margin-bottom: 2.5em; }
header p { color: var(--muted); margin: 0; font-size: 1.05em; letter-spacing: 0.05em; }

/* ─── Hero image ─── */
#top .image img {
  width: 100%;
  border-radius: 50%;
  display: block;
  filter: grayscale(20%);
}

/* ─── Cards — equal height via flex ─── */
.box {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5);
  padding: 2.5em 1.75em;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* ─── Card icons ─── */
.featured {
  color: var(--accent);
  display: block;
  font-size: 2em;
  margin-bottom: 0.9em;
  opacity: 0.85;
}

/* ─── Social icons ─── */
ul.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.75em;
  margin: 1.5em 0;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8em;
  height: 2.8em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent) !important;
  font-size: 1.1em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-link:hover {
  background: rgba(152, 212, 160, 0.1);
  border-color: var(--accent);
  color: var(--accent-bright) !important;
}

/* ─── Footer ─── */
footer { margin-top: 2.5em; }
#copyright {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: 0.06em;
}

/* ─── Content pages ─── */
i, em { font-style: italic; }

.page {
  background: var(--surface);
  padding: 5em 0;
  min-height: calc(100vh - 3.5em);
}
.page h1 { margin-bottom: 0.75em; }
.page h2 { margin-bottom: 0.75em; }
.page h3 { margin-top: 1.75em; margin-bottom: 0.4em; }
.page h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1em;
  letter-spacing: 0.08em;
  margin: 1.5em 0 0.35em;
}
.page ul, .page ol {
  margin: 0.75em 0 1.5em 1.5em;
  line-height: 1.8;
}
.page ul { list-style: disc; }
.page ol { list-style: decimal; }
.page li { margin-bottom: 0.4em; }
.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.88em;
}
.page table th {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.06em;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.page table td {
  padding: 0.65em 1em;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}
.page footer { margin-top: 3em; }

/* ─── 404 ─── */
.lost {
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4em 2em;
}
.lost img { max-width: 320px; width: 80%; margin: 2em auto; display: block; }

/* ─── Desktop-only overrides ─── */
@media (min-width: 981px) {
  #top .row > *:last-child { padding-left: 4em; }
}

#contact h4 { font-size: 1.05em; font-weight: 400; }

/* ─── Responsive ─── */
@media (max-width: 1280px) {
  .col-5-large { width: 41.667%; }
  .col-7-large { width: 58.333%; }
}

@media (max-width: 980px) {
  .col-12-medium { width: 100%; }
  .col-6-medium  { width: 50%; }
  .wrapper { padding: 4em 0; }
  #top { text-align: center; }
  #top .col-12-medium:last-child { padding-top: 3em; }
}

@media (max-width: 736px) {
  .col-12-small { width: 100%; }
  .wrapper { padding: 3em 0; }
  .container { padding: 0 1.25em; }
  #nav a { padding: 0 0.9em; letter-spacing: 0.1em; }
}
