:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-muted: #fcfcfb;
  --text: #1d2731;
  --muted: #66727d;
  --border: #d8dde3;
  --border-strong: #c8cfd7;
  --accent: #163d66;
  --accent-soft: #eef3f8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent);
}

.site-branding h1 {
  margin: 0 0 4px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.site-branding p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
}

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

.masthead {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.portrait {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.masthead-main h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.3;
}

.masthead-main p {
  margin: 0 0 12px;
}

.summary {
  max-width: 52rem;
}

.summary strong {
  color: var(--accent);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.quick-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 28px;
  padding-top: 28px;
}

.main-column,
.side-column {
  display: grid;
  gap: 24px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
}

.section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.section-header h2 {
  margin: 0;
  font-size: 1.28rem;
}

.section-body {
  padding: 20px;
}

.section-body p:first-child {
  margin-top: 0;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.entry-list {
  display: grid;
  gap: 18px;
}

.entry {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.entry-meta {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.entry h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.entry p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

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

.plain-list li + li {
  margin-top: 10px;
}

.info-table {
  display: grid;
  gap: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.info-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.tag {
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}

.site-footer {
  padding-top: 28px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  text-align: center;
}

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

@media (max-width: 720px) {
  .site {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .site-header,
  .masthead {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead {
    display: grid;
  }

  .portrait {
    width: min(220px, 100%);
  }

  .section-header,
  .section-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
