:root {
  --bg: #fbfaf7;
  --text: #171717;
  --muted: #5f6368;
  --line: #dedbd2;
  --link: #0645ad;
  --link-hover: #7a3e00;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 22px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.58;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.navbar-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 34px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.navbar-desktop a,
.navbar-desktop button {
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.navbar-desktop a:hover,
.navbar-desktop button:hover {
  color: var(--link);
  text-decoration: underline;
}

.hamburger,
nav {
  display: none;
}

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

h1 {
  margin: 0 0 20px;
  font-size: 2.35rem;
  font-weight: 700;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 6px;
}

.profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile img {
  width: 190px;
  height: 235px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.muted,
.meta {
  color: var(--muted);
}

.contact {
  margin-top: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.item {
  margin-bottom: 20px;
}

.item p {
  margin-bottom: 8px;
}

.meta {
  margin-bottom: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

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

.footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.cv-frame {
  width: 100%;
  height: 78vh;
  min-height: 620px;
  border: 1px solid var(--line);
}

.cv-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.poster-frame {
  width: 100%;
  height: 520px;
  margin-top: 10px;
  border: 1px solid var(--line);
}

.poster-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.plain-button,
.admin-actions button,
.inline-actions button {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.plain-button:hover,
.admin-actions button:hover,
.inline-actions button:hover {
  color: var(--link);
  text-decoration: underline;
}

.danger-button {
  color: #9b1c1c;
}

.blog-list {
  margin-top: 20px;
}

.blog-thumb {
  max-width: 100%;
  margin: 8px 0 10px;
  border: 1px solid var(--line);
}

.blog-content {
  margin-top: 18px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
}

.empty-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 680px) {
  body {
    padding-top: 24px;
    font-size: 17px;
  }

  .profile,
  .columns {
    grid-template-columns: 1fr;
  }

  .profile img {
    width: 170px;
    height: 210px;
  }
}
