:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #5e5e5e;
  --line: rgba(28, 28, 28, 0.14);
  --accent: #ff0076;
  --link: #c40062;
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Zalando Sans Expanded", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

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

a:hover {
  color: #9a004e;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.logo,
.logo:hover {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.98rem;
  line-height: 1;
}

.logo::before {
  content: "❤️ ";
  letter-spacing: 0;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  line-height: 1.15;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  color: #ffffff;
  filter: brightness(0.95);
}

.nav .btn {
  color: #ffffff;
  padding: 0.7rem 0.95rem;
  font-size: 0.82rem;
}

main {
  padding: 2.5rem 0 4rem;
}

.page-head h1,
.prose h2,
.nl-title,
.card h3,
.recent h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.prose h2,
.recent h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--accent);
}

.prose h3,
.card h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
  font-size: 1.28rem;
  margin: 1.6rem 0 0.55rem;
  color: var(--text);
}

.prose h4 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: 1.05rem;
  margin: 1.3rem 0 0.4rem;
}

.prose > p,
.page-head p,
.nl p,
.recent li,
.card p {
  line-height: 1.7;
}

.prose > p {
  max-width: 68ch;
  margin: 0 0 1rem;
}

.meta,
.byline {
  color: var(--muted);
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.hero-wrap {
  margin: 0 0 1.4rem;
}

.hero {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 520px;
}

.cover-wrap {
  margin: 1.2rem 0 1.4rem;
}

.cover {
  width: min(240px, 70%);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.12);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 0.4rem;
}

.cards-names {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.04);
}

.card:hover {
  color: var(--text);
  border-color: var(--accent);
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
}

.card .more {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1.3;
}

.card-name h3 {
  font-size: 1.05rem;
}

.prose ul,
.recent ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li,
.recent li + li {
  margin-top: 0.35rem;
}

.nl,
.recent,
.form {
  margin: 1.6rem 0 2rem;
}

.nl,
.recent {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
}

.nl {
  border: 2px solid var(--accent);
}

.nl-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--text);
}

.recent h2 {
  margin-top: 0;
}

.recent ul {
  padding-left: 1.1rem;
}

.form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 0.9rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1rem;
}

.foot-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-footer .foot-label {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.foot-nav.foot-authors a {
  font-weight: 500;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.bare-main {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 0.6rem;
  padding: 3rem 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

  .nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.6rem 1.5rem 1rem;
  }

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

  .nav a,
  .nav .btn {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav .btn {
    color: #ffffff;
    padding: 0.9rem 1.85rem;
  }
}
