@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

:root {
  --bg: #fff;
  --text: #2b2b2b;
  --muted: #c0c1c5;
  --border: #e5e7eb;
  --accent: #111827;
  --link: #374151;
  --link-hover: #111827;
  --maxw: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: .01em;
}

.frame {
  border: 2px solid var(--border);
  padding: 30px;
  margin: 80px auto 100px auto;
  max-width: 1200px;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 18px 80px;
}

.site-title {
  text-align: center;
  margin: 34px 0 26px;
  font-size: clamp(32px, 5.3vw, 56px);
  font-weight: 800;
  letter-spacing: .01em;
}
.site-subtitle {
  text-align: center;
  margin: 4px 0;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.rule, .content .divider {
  height: 2px;
  background: var(--border);
  border: 0;
}
.rule { margin: 22px 0; }
.content .divider { margin: 16px 0 18px; }

.main {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 36px;
  align-items: start;
  margin-top: 26px;
}
.content p { margin: 0 0 16px; }
.content .greeting { color: var(--muted); }
.portrait {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 70px 0;
}
.line {
  flex: 1;
  height: 2px;
  background: #e5e5e5;
}
.nav {
  display: flex;
  gap: 30px;
  margin: 0 20px;
}
.nav a {
  color: #888;
  font-size: 14px;
  letter-spacing: 1px;
}
.nav a.active {
  color: #000;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 2px;
}
.nav a:hover {
  color: #000;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 2px;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .site-title { font-size: clamp(30px, 9vw, 44px); }
  nav { flex-wrap: wrap; gap: 18px; }
  .portrait {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}
