:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --line: #e5e0d6;
  --text: #1f1d19;
  --muted: #666053;
  --accent: #2e6f62;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", sans-serif;
  line-height: 1.7;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
}

.site-title {
  color: var(--text);
  font-family: "Newsreader", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  padding: 32px 0 28px;
}

.label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 8vw, 4.5rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

h3 {
  font-size: 1.08rem;
}

.lead,
.contact-text,
.work-item p,
.plain-list {
  color: var(--muted);
}

.lead {
  max-width: 42rem;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.section {
  padding-top: 32px;
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-item,
.article-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.work-image {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1ece2;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.work-item:last-child,
.article-item:last-child {
  border-bottom: 1px solid var(--line);
}

.article-list {
  display: grid;
  gap: 16px;
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.links {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
