@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400&display=swap");

:root {
  --color-canvas: #ffffff;
  --color-soft: #f6f7f5;
  --color-surface: #fbfbfa;
  --color-line: #e6e6e2;
  --color-ink: #111312;
  --color-muted: #555a56;
  --color-subtle: #8a8f8a;
  --color-accent: #000000;
  --font-sans: Inter, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-brand: Quicksand, var(--font-sans);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 19, 18, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 18, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 230, 226, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1480px, calc(100% - 48px));
  min-height: 72px;
  align-items: center;
  gap: 28px;
  padding-left: 0;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1;
  height: 52px;
  flex-shrink: 1;
}

.brand > span:last-child {
  display: block;
  font-family: var(--font-brand);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  flex: 0 0 52px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: 160ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-offer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.nav-offer-link span:first-child {
  line-height: 1;
}

.nav-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-top: 4px solid currentColor;
  border-right: 3.5px solid transparent;
  border-left: 3.5px solid transparent;
  opacity: 0.62;
  transform-origin: 50% 42%;
  transition:
    opacity 160ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.nav-group:hover .nav-chevron,
.nav-group:focus-within .nav-chevron {
  opacity: 0.9;
  transform: rotate(180deg);
}

.service-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  display: grid;
  min-width: 360px;
  gap: 4px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms var(--ease-out);
}

.nav-group:hover .service-menu,
.nav-group:focus-within .service-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.service-menu a {
  border-radius: 6px;
  padding: 10px 12px;
}

.service-menu a:hover {
  background: var(--color-soft);
}

.header-cta,
.button,
.panel-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.menu-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon[hidden] {
  display: none;
}

.mobile-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  left: 16px;
  z-index: 30;
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(17, 19, 18, 0.08);
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel a {
  border-radius: 6px;
  padding: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mobile-panel a:hover {
  background: var(--color-soft);
}

.mobile-panel .mobile-cta {
  margin-top: 6px;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

.button.secondary,
.panel-button.secondary {
  border-color: var(--color-line);
  background: #fff;
  color: var(--color-ink);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 54px 0;
  background: var(--color-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 520;
  line-height: 1;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--color-muted);
}

.footer-links span,
.eyebrow {
  margin: 0;
  color: var(--color-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero {
  padding: clamp(88px, 11vh, 136px) 0 64px;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 520;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 1.14rem;
  line-height: 1.6;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.tone-muted {
  background: var(--color-soft);
}

.post-grid,
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card,
.panel-card {
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
}

.post-card span,
.panel-muted {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-card h2,
.post-card h3 {
  margin: 14px 0;
  font-size: 1.45rem;
  font-weight: 560;
  line-height: 1.15;
}

.post-card p,
.article-body p,
.panel-card p {
  color: var(--color-muted);
  line-height: 1.65;
}

.article-layout {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.article-meta {
  margin: 0 0 24px;
  color: var(--color-subtle);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-layout h1 {
  margin: 0 0 28px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 520;
  line-height: 0.98;
}

.article-cover {
  margin: 40px 0;
  overflow: hidden;
  border-radius: 8px;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.72;
}

.article-body h2,
.article-body h3 {
  margin: 44px 0 14px;
  font-weight: 560;
  line-height: 1.15;
}

.article-body h2 {
  font-size: 2rem;
}

.article-body h3 {
  font-size: 1.4rem;
}

.article-body a {
  color: var(--color-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 34px 0;
  border-left: 1px solid var(--color-line);
  padding-left: clamp(20px, 4vw, 34px);
}

.panel-page {
  min-height: 100vh;
  padding: clamp(32px, 5vw, 64px) 0;
  background: var(--color-soft);
}

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

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.panel-surface {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(17, 19, 18, 0.08);
}

.panel-form {
  display: grid;
  gap: 18px;
}

.panel-form label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}

.panel-form textarea {
  min-height: 340px;
  resize: vertical;
  line-height: 1.55;
}

.editor-label {
  margin-bottom: -10px;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(247, 247, 244, 0.9);
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(17, 19, 18, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
  transform: translateY(-1px);
}

.editor-shell textarea {
  min-height: 420px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
}

.editor-preview {
  border-top: 1px solid var(--color-line);
  background: rgba(247, 247, 244, 0.56);
}

.editor-preview summary {
  padding: 13px 16px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.editor-preview .article-body {
  padding: 8px 16px 22px;
  max-width: 760px;
}

.panel-form .two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notice {
  border: 1px solid rgba(17, 19, 18, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--color-muted);
}

.danger {
  border-color: #9f1d24;
  background: #9f1d24;
  color: #fff;
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .panel-top,
  .footer-grid,
  .post-grid,
  .panel-grid,
  .panel-form .two-cols {
    display: grid;
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }

  .header-inner {
    width: min(100% - 28px, var(--max));
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 0;
  }

  .brand {
    flex: 1 1 auto;
    gap: 8px;
    font-size: clamp(0.74rem, 3vw, 0.88rem);
  }

  .brand > span:last-child {
    min-width: 0;
    max-width: none;
    overflow: visible;
    line-height: 1.08;
    white-space: normal;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .mobile-panel {
    top: 64px;
  }

  .hero {
    padding: 46px 0 44px;
  }

  .hero h1,
  .article-layout h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.16;
  }

  .hero p:not(.eyebrow),
  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.45rem;
  }

  .article-body h3 {
    font-size: 1.2rem;
  }
}
