/* -------------------------------------------------
   Base
------------------------------------------------- */

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600");

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Source Sans Pro", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: #3a4550;
  background:
    linear-gradient(135deg, #dae8f5 0%, #f0f4f8 40%, #ffffff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* -------------------------------------------------
   Header / Navigation
------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #c8d6e0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #1a3a5c;
  white-space: nowrap;
}

.site-brand:hover {
  text-decoration: none;
  color: #2e78c2;
}

.site-photo {
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.site-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.site-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: #6b7f8e;
  letter-spacing: 0.1em;
  text-transform: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-header nav a {
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #3a4550;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: #2e78c2;
  text-decoration: none;
}

/* Dropdown */

.nav-item {
  position: relative;
}

.nav-item > a {
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.4rem 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #c8d6e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.dropdown a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #eef3f8;
}

.nav-item:hover .dropdown {
  display: block;
}

/* -------------------------------------------------
   Main content
------------------------------------------------- */

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

h1, h2, h3 {
  color: #1a3a5c;
  line-height: 1.4;
  font-weight: 400;
}

h1 {
  margin-top: 0;
  font-size: 1.85em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.25em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h3 {
  font-size: 1em;
}

a {
  color: #2e78c2;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5a9e;
  text-decoration: none;
}

strong, b {
  font-weight: 600;
  color: #1a3a5c;
}

hr {
  border: none;
  border-bottom: 1px solid #c8d6e0;
  margin: 2em 0;
}

/* -------------------------------------------------
   Breadcrumb
------------------------------------------------- */

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.breadcrumb a {
  color: #6b7f8e;
}

.breadcrumb a:hover {
  color: #2e78c2;
}

.breadcrumb .sep {
  margin: 0 0.3em;
  color: #c8d6e0;
}

.breadcrumb .current {
  color: #1a3a5c;
  font-weight: 600;
}

/* -------------------------------------------------
   Hero photo (homepage)
------------------------------------------------- */

.hero-photo {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center -30px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------
   Cards
------------------------------------------------- */

.card {
  border: 1px solid #c8d6e0;
  border-radius: 4px;
  padding: 1.2rem;
  margin: 1.2rem 0;
}

.card h2 {
  font-size: 1.1em;
}

/* -------------------------------------------------
   Utilities
------------------------------------------------- */

.muted {
  color: #6b7f8e;
  font-size: 0.85rem;
}

/* -------------------------------------------------
   Language switch
------------------------------------------------- */

.lang-switch {
  margin: 0 0 1.5rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.lang-switch a {
  margin-right: 0.5rem;
  color: #6b7f8e;
}

.lang-switch a:hover {
  color: #2e78c2;
}

.lang-current {
  margin-right: 0.5rem;
  font-weight: 600;
  color: #1a3a5c;
}

/* -------------------------------------------------
   Code blocks
------------------------------------------------- */

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0;
  text-transform: none;
}

code {
  font-size: 0.9em;
  background: #eef3f8;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid #c8d6e0;
  background: #f6f9fc;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #c8d6e0;
  font-size: 0.85rem;
  color: #6b7f8e;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* -------------------------------------------------
   Responsive
------------------------------------------------- */

@media (max-width: 736px) {
  body {
    font-size: 11pt;
  }

  .site-header {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
  }

  .site-header nav {
    margin-left: 0;
    width: 100%;
    gap: 0;
  }

  .site-header nav a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  main {
    margin: 1rem 0.5rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 10pt;
  }

  main {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.3em;
    letter-spacing: 0.15em;
  }
}
