:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #10192b;
  --muted: #5b6473;
  --line: #e2e5eb;
  --line-strong: #c9cdd6;
  --blue: #1a73e8;
  --red: #d93025;
  --yellow: #f29900;
  --green: #188038;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-brand__mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
}

.site-brand__text {
  display: grid;
  gap: 1px;
}

.site-brand__text strong {
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.site-brand__text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eef2fb;
  color: var(--blue);
}

.site-header__cta {
  justify-self: end;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.site-header__cta:hover {
  background: #1558b0;
}

.hero {
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.seo-block h2,
.card h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.03;
}

.hero__lede {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero__meta span {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #f4f6f9;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  align-self: stretch;
  background: #fafbfd;
}

.hero__panel-label {
  margin: 0 0 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.hero__panel-list li {
  border-top: 1px solid var(--line);
}

.hero__panel-list li:first-child {
  border-top: none;
}

.hero__panel-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 150ms ease;
}

.hero__panel-list a:hover {
  color: var(--blue);
}

.hero__panel-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.history {
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  padding: 28px 0;
}

.history__banner {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.history__text {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.history__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  max-width: 640px;
}

.history__shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.history__shots img {
  display: block;
  width: 100%;
  height: auto;
}

.history__shots figcaption {
  padding: 8px 10px;
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

main.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
}

.layout__aside {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 16px;
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}

.widget__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.widget__list a {
  display: block;
  padding: 7px 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease, color 150ms ease, padding-left 150ms ease;
}

.widget__list a:hover {
  background: #eef2fb;
  color: var(--blue);
  padding-left: 8px;
}

.section-heading {
  padding: 4px 0 16px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.post-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 40px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(16, 25, 43, 0.06);
}

.card--feature {
  grid-column: 1 / -1;
}

.card__body {
  padding: 18px 20px 20px;
}

.card__category {
  margin: 0 0 8px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.card__date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card h3 {
  font-size: 1.28rem;
  line-height: 1.22;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  color: var(--blue);
}

.card p:not(.card__date):not(.card__byline) {
  margin: 12px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.card__byline {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--line-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tip-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 40px;
}

.tip-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.tip h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.tip kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  background: #f4f6f9;
}

.seo-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 8px 0 40px;
  background: var(--surface);
}

.seo-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 16px;
}

.seo-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 26px 0 10px;
}

.seo-block p {
  margin: 0 0 14px;
  line-height: 1.75;
  color: var(--muted);
}

.seo-block ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.seo-block code {
  background: #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--line-strong);
}

.page-hero {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero h1 {
  margin: 10px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

.page-hero p {
  margin: 14px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.content-block {
  padding: 32px 0 8px;
}

.content-block h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.content-block > p.section-lede {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 0 40px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__inner p {
  margin: 0;
}

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

  .layout__aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    row-gap: 12px;
    padding: 12px 0;
  }

  .site-brand {
    grid-area: brand;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-header__cta {
    grid-area: cta;
  }

  .hero__inner,
  .post-grid,
  .tip-grid,
  .tip-grid--compact {
    grid-template-columns: 1fr;
  }

  .card--feature {
    grid-column: auto;
  }

  .layout__aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 24px 0;
  }

  .seo-block {
    padding: 20px;
  }
}
