:root {
  --seal-red: #A8321C;
  --ink-charcoal: #23211D;
  --rice-paper: #EFE8D8;
  --ink-wash-slate: #5C6B66;
  --warm-wood: #8A5A33;

  --font-serif: "PT Serif", "Source Serif 4", "Noto Serif SC", Georgia, serif;
  --font-sans: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--rice-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink-charcoal);
  font-family: var(--font-sans);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}

a {
  color: var(--ink-charcoal);
  text-decoration: none;
}

a:hover {
  color: var(--seal-red);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-bottom: 2px solid var(--seal-red);
  background: var(--rice-paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s ease;
}

.wordmark:hover {
  opacity: 0.75;
}

.wordmark .seal {
  width: 30px;
  height: 30px;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  gap: 1.85rem;
}

.site-nav a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a[aria-current="page"] {
  color: var(--seal-red);
  border-bottom-color: var(--seal-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-charcoal);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--rice-paper);
    border-bottom: 2px solid var(--seal-red);
    padding: 0.5rem 1.5rem 1.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.8rem 0;
  }

  .lang-switch {
    border-left: none;
    border-top: 1px solid rgba(35, 33, 29, 0.15);
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    width: 100%;
  }
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(35, 33, 29, 0.18);
}

.lang-switch a {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.lang-switch a:hover {
  opacity: 1;
}

/* Hero */

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 46vh;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}

.hero-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 33, 29, 0) 55%, rgba(35, 33, 29, 0.6) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 2.5rem;
  right: 2.5rem;
  margin: 0;
  color: var(--rice-paper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Main content */

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  min-height: 40vh;
}

main h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 1.4rem;
  position: relative;
  padding-bottom: 1.1rem;
}

main h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--seal-red);
}

main p {
  margin: 1.2rem 0;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.cta-row a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  border-bottom: 1px solid var(--warm-wood);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-row a:hover {
  border-color: var(--seal-red);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(35, 33, 29, 0.12);
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-wash-slate);
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-seal {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.site-footer a {
  color: var(--ink-wash-slate);
}

.copyright {
  margin-top: 0.8rem;
  opacity: 0.7;
}

/* Journal */

.journal-intro {
  color: var(--ink-wash-slate);
  font-size: 0.98rem;
  max-width: 480px;
}

.journal-list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
}

.journal-list li {
  border-bottom: 1px solid rgba(35, 33, 29, 0.1);
}

.journal-entry-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  transition: padding-left 0.2s ease;
}

.journal-entry-link:hover {
  padding-left: 0.4rem;
}

.journal-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.journal-entry-text time {
  display: block;
  color: var(--warm-wood);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.journal-entry-text h2 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.journal-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-wash-slate);
  line-height: 1.5;
}

/* Journal entry page */

.journal-back {
  margin: 0 0 1.5rem;
}

.journal-back a {
  font-size: 0.85rem;
  color: var(--ink-wash-slate);
}

.journal-entry-header {
  margin-bottom: 0.5rem;
}

.journal-entry-header time {
  display: block;
  color: var(--warm-wood);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.journal-hashtags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 2.2rem 0 0;
}

.journal-hashtags a {
  font-size: 0.85rem;
  color: var(--warm-wood);
}

.journal-hashtags a:hover {
  color: var(--seal-red);
}

.journal-author {
  margin: 0 0 1.5rem;
  font-style: italic;
  color: var(--ink-wash-slate);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-header {
    padding: 1.2rem 1.5rem;
  }
  .site-nav {
    gap: 1.1rem;
  }
  .hero-caption {
    left: 1.5rem;
    right: 1.5rem;
  }
  main {
    padding: 2.5rem 1.5rem 3rem;
  }
  main h1 {
    font-size: 1.9rem;
  }
  .journal-thumb {
    width: 64px;
    height: 64px;
  }
}
