:root {
  --bg: #f9f9f8;
  --fg: #1f1f1f;
  --muted: #777;
  --line: #e2e2df;
  --swiper-theme-color: rgba(60, 60, 60, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.copy a,
.journal-entry a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(31, 31, 31, 0.35);
}

.copy a:hover,
.copy a:focus-visible,
.journal-entry a:hover,
.journal-entry a:focus-visible {
  text-decoration-color: rgba(31, 31, 31, 0.85);
}

img {
  display: block;
  width: 100%;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

section {
  margin-top: 5rem;
}

/* =========================
   Typography
   ========================= */

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.25;
  margin: 2.8rem 0 1.2rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
}

.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

p {
  margin: 0 0 1.6rem;
}

.copy p {
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.intro {
  text-align: center;
}

.intro p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.manifesto {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

main img {
  margin: 1.6rem 0 1.4rem;
}

/* =========================
   Buttons
   ========================= */

.button,
button.button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  display: inline-block;
  width: auto;
}

.button:hover,
.button:focus-visible {
  background: rgba(31, 31, 31, 0.05);
}

button.button {
  border-radius: 0;
}

button.button:focus {
  outline: none;
}

/* =========================
   Swiper
   ========================= */

.media-swiper {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.swiper-pagination {
  bottom: 1rem !important;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: var(--swiper-theme-color);
  opacity: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.swiper-pagination-bullet-active {
  background: rgba(31, 31, 31, 0.85);
  transform: scale(1.1);
}

.swiper-button-prev,
.swiper-button-next {
  width: 36px;
  height: 36px;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-swiper:hover .swiper-button-prev,
.media-swiper:hover .swiper-button-next {
  opacity: 0.85;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
}

/* =========================
   Grid & Cards
   ========================= */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h2 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
}

.card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.65;
}

.card .button {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.65rem;
}

/* =========================
   Navbar
   ========================= */

.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 1030;
}

.navbar .container {
  max-width: 860px;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.brand-icon-img {
  width: 32px;
  height: auto;
}

@media (min-width: 992px) {
  .brand-icon-img {
    width: 34px;
  }
}

.navbar-toggler {
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--muted) !important;
  padding: 0.35rem 1rem;
}

.nav-link:hover {
  color: var(--fg) !important;
}

/* =========================
   Forms
   ========================= */

form {
  max-width: 520px;
  margin-top: 3rem;
}

.form-field {
  margin-bottom: 1.8rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* =========================
   Footer
   ========================= */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--fg);
}

.social-link {
  display: inline-flex;
  align-items: center;
}

.social-link i {
  font-size: 0.9rem;
}

footer .copyright {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.85;
}