:root {
  --paper: #f6f4ea;
  --paper-deep: #efebdf;
  --ink: #1e1e1e;
  --muted: #6e6a61;
  --line: #ddd5c5;
  --link: #0f5f9f;
  --maxw: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Google Sans', 'Product Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 0, #fcfbf6, var(--paper) 47%);
  color: var(--ink);
  line-height: 1.72;
}

.wrapper {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid #cfc6b5;
  border-radius: 2px;
  background: #f6f4ea;
  object-fit: cover;
  flex: 0 0 auto;
}

.top-blog-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-blog-link:hover,
.top-blog-link:focus-visible {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

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

a:hover,
a:focus-visible {
  color: #0a4f84;
  text-decoration: none;
  font-weight: 700;
}

a:focus-visible {
  outline: 2px solid #0f5f9f;
  outline-offset: 2px;
  border-radius: 3px;
}

main.wrapper {
  padding-top: 2.2rem;
  padding-bottom: 2.8rem;
}

.profile {
  display: block;
  margin-bottom: 2rem;
}

.profile-copy {
  min-width: 0;
}

.profile h1 {
  margin: 0;
  font-size: clamp(1.58rem, 3.8vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.intro {
  margin: 0 0 0.8rem;
  color: #4c483f;
  font-size: 1.05rem;
}

.history-body {
  max-width: 62ch;
}

.history-body p {
  margin: 0 0 1rem;
  color: #38342e;
}

.section-title {
  margin: 1.6rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.entry:first-child {
  border-top: 0;
}

.entry .meta {
  color: var(--muted);
  font-size: 0.89rem;
  margin-bottom: 0.1rem;
}

.entry h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.33;
}

.entry h2 a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.entry h2 a:hover,
.entry h2 a:focus-visible {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.entry p {
  margin: 0.38rem 0 0;
  color: #49453e;
}

.page {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.page h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
}

.page p {
  margin: 0 0 1rem;
}

.social-row {
  margin: 0 0 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  background: #0a66c2;
  border: 1px solid #085296;
  border-radius: 0.4rem;
}

.social-link:hover,
.social-link:focus-visible {
  color: #ffffff;
  background: #085296;
  text-decoration: none;
}

.linkedin-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer .wrapper {
  min-height: 4rem;
  display: flex;
  align-items: center;
}

.footer-wrap {
  justify-content: space-between;
  gap: 1rem;
}

.legal-links {
  font-size: 0.86rem;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.cookie-note {
  min-height: 0;
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .site-header .wrapper {
    min-height: auto;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.9rem;
    padding-bottom: 0.35rem;
  }

  .cookie-note {
    padding-bottom: 1.1rem;
  }

}
