:root {
  color-scheme: light;
  --ink: #272b2c;
  --muted: #62696b;
  --accent: #8c363e;
  --rule: #dfe3e2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Lato, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.page-width { width: min(880px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.site-name { display: flex; align-items: center; gap: 12px; padding-block: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.site-name img { width: 48px; height: 48px; flex-shrink: 0; }
.brand-name { display: block; font-size: 23px; font-weight: 900; line-height: 1.2; }
.brand-address { display: block; margin-top: 2px; color: var(--accent); font-size: 14px; line-height: 1.3; }
nav { display: flex; gap: 28px; font-size: 15px; }
nav a { text-decoration: none; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 8px 16px; background: #fff; transform: translateY(-180%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
.profile { padding-block: 48px 44px; }
.portrait { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin-bottom: 24px; }
.profile-location { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.profile-location span { margin-inline: 8px; color: #9da5a3; }
h1 { font-size: 42px; font-weight: 900; margin-bottom: 18px; overflow-wrap: anywhere; }
.introduction { max-width: 740px; font-size: 20px; line-height: 1.65; margin-bottom: 12px; }
.profile-note { color: var(--muted); max-width: 740px; margin-bottom: 22px; }
.text-link { color: var(--accent); font-weight: 700; font-size: 15px; }
.text-link i { margin-left: 8px; font-size: 12px; }
.content-section { border-top: 1px solid var(--rule); padding-block: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
h2 { font-size: 24px; font-weight: 900; }
.section-note { color: var(--muted); font-size: 14px; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list > li + li { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 26px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.article-meta span { color: var(--accent); }
h3 { font-size: 23px; margin-bottom: 12px; max-width: 760px; }
h3 a { text-decoration: none; }
h3 i { color: var(--accent); font-size: 16px; margin-left: 6px; }
.article-entry p { max-width: 740px; color: var(--muted); }
.article-link { display: inline-block; margin-top: 16px; }
.contact { margin-top: 32px; padding-block: 48px; border-top: 0; background: #eef3f1; }
.contact h2 { margin-bottom: 16px; color: var(--accent); font-size: 28px; }
.contact p { color: var(--muted); max-width: 650px; margin-bottom: 20px; }
.social-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.social-links a { text-decoration: none; }
.social-links i { color: var(--accent); margin-right: 6px; }
.site-footer { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; margin-top: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .page-width { width: calc(100% - 40px); }
  .header-content { min-height: 76px; gap: 14px; flex-wrap: wrap; padding-block: 16px; }
  .site-name { gap: 8px; padding-block: 0; }
  .site-name img { width: 38px; height: 38px; }
  .brand-name { font-size: 21px; }
  .brand-address { font-size: 13px; }
  nav { gap: 18px; font-size: 14px; }
  .profile { padding-block: 32px; }
  .portrait { width: 112px; height: 112px; margin-bottom: 20px; }
  h1 { font-size: 34px; }
  .introduction { font-size: 18px; }
  h3 { font-size: 21px; }
  .content-section { padding-block: 26px; }
  .contact { margin-top: 24px; padding-block: 36px; }
  .section-heading { margin-bottom: 20px; }
  .site-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
