:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #f7f6f4;
  --surface-hover: #f1efec;
  --border: rgba(17, 17, 17, 0.10);
  --border-strong: rgba(17, 17, 17, 0.16);
  --text: #121212;
  --muted: #5b5d63;
  --muted-dim: #86888d;
  --accent: #ff7a1a;
  --accent-strong: #ea5a00;
  --accent-soft: rgba(255, 122, 26, 0.10);
  --accent-line: rgba(255, 122, 26, 0.4);
  --on-accent: #ffffff;
  --max-width: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 122, 26, 0.07), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(234, 90, 0, 0.05), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* ---------- Promo bar ---------- */

.promo-bar {
  background: linear-gradient(90deg, #fff3e8, #fff8f2 60%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.promo-inner p {
  margin: 0;
  color: #6b4a2a;
}

.promo-inner strong {
  color: var(--accent);
}

.promo-inner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.promo-icon {
  font-size: 0.9rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-title::before {
  content: "M";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 30px;
  text-align: center;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(255, 92, 0, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 26px;
}

.site-nav a,
.footer-links a,
.text-link,
.inline-link,
.article-card a,
.post-preview a,
.post-list-item a,
.hero-actions a,
.primary-button,
.secondary-button {
  position: relative;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Layout basics ---------- */

.site-main {
  padding-top: 52px;
  padding-bottom: 100px;
}

section {
  margin-bottom: 80px;
}

.stack {
  display: grid;
  gap: 22px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.62fr);
  gap: 30px;
  align-items: end;
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  max-width: 780px;
}

.hero-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 20px;
}

.hero-meta-links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-meta-links a::after {
  content: "";
}

.hero-meta-links a:not(:last-child)::after {
  content: "·";
  margin-left: 16px;
  color: var(--muted-dim);
}

.email-strip {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.eyebrow,
.panel-label,
.section-kicker,
.project-side-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 700;
}

.hero-description {
  max-width: 680px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-button {
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  box-shadow: 0 10px 26px rgba(255, 92, 0, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 92, 0, 0.3);
}

.secondary-button {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--accent-line);
  background: var(--surface-hover);
}

.text-link,
.inline-link {
  color: var(--muted);
}

.text-link:hover,
.inline-link:hover {
  color: var(--accent);
}

.hero-panel {
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff, var(--bg-soft));
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.06);
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-list li::marker {
  color: var(--accent);
}

.hero-list li + li {
  margin-top: 10px;
}

/* ---------- Section headings ---------- */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.section-heading h2 {
  margin-bottom: 0;
}

.split-heading {
  padding-top: 0;
  border-top: 0;
}

.inline-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Cards / panels ---------- */

.feature-card,
.newsletter,
.article-card,
.post-preview,
.project-listing,
.post-list-item,
.pillar-card {
  background: linear-gradient(180deg, #ffffff, #ffffff 60%, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.article-card:hover,
.post-preview:hover,
.project-listing:hover,
.post-list-item:hover,
.pillar-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}

.feature-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 18px;
}

.feature-meta span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 32px;
  align-items: start;
}

.feature-body > div:first-child p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-tags span {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-aside {
  padding: 20px 0 0 22px;
  border-left: 1px solid var(--border);
}

.feature-aside p:last-child {
  color: var(--muted);
}

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

.article-card {
  padding: 22px 20px;
}

.article-card h3 {
  margin-bottom: 10px;
}

.article-card p,
.about-snippet p,
.newsletter p,
.page-description,
.post-description,
.page-content p,
.post-content p,
.featured-project > p,
.project-side p,
.post-preview p,
.post-list-item p {
  color: var(--muted);
}

.article-card a,
.post-preview a,
.post-list-item a,
.post-preview h3 a,
.project-listing h2 a,
.post-list-item h2 a {
  color: var(--text);
}

.article-card a:hover,
.post-preview h3 a:hover,
.project-listing h2 a:hover {
  color: var(--accent);
}

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

.pillar-card {
  display: grid;
  gap: 14px;
  padding: 24px 20px;
  position: relative;
}

.card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.pillar-card p:last-child {
  color: var(--muted);
}

.about-snippet {
  max-width: 760px;
  padding-top: 10px;
}

.about-snippet p + p {
  margin-top: 16px;
}

.newsletter {
  display: grid;
  gap: 16px;
  padding: 34px 30px;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.16), transparent 70%);
  pointer-events: none;
}

.newsletter h2 {
  max-width: 18ch;
}

.newsletter .primary-button {
  width: fit-content;
}

/* ---------- Thumbnail placeholders (no images needed) ---------- */

.project-listing-media,
.post-preview-media,
.page-media,
.post-media {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 122, 26, 0.20), transparent 55%),
    repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.025) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, #fdf1e6, #f6f5f3);
}

.project-listing-image,
.post-preview-image,
.page-image,
.post-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-listing-image {
  aspect-ratio: 16 / 9;
}

.post-preview-image,
.page-image,
.post-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-media,
.post-media {
  margin-bottom: 0;
  border-radius: 14px;
}

.page-image-caption,
.post-image-caption {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.post-preview-body {
  margin-top: 0;
  padding: 20px 20px 22px;
}

.project-listing {
  overflow: hidden;
}

.project-listing .post-preview-body {
  padding: 22px 24px 26px;
}

.post-preview {
  overflow: hidden;
}

/* ---------- Page / post content ---------- */

.page-header,
.post-header {
  margin-bottom: 38px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-content,
.post-content {
  max-width: 760px;
}

.page-content h2,
.post-content h2 {
  margin-top: 46px;
}

.page-content h3,
.post-content h3 {
  margin-top: 32px;
}

.page-content ul,
.post-content ul {
  padding-left: 20px;
  color: var(--muted);
}

.page-content li + li,
.post-content li + li {
  margin-top: 8px;
}

.page-content strong,
.post-content strong {
  color: var(--text);
}

.page-content a,
.post-content a {
  color: var(--accent);
  text-decoration-color: var(--accent-line);
}

.post-meta {
  margin: 0 0 6px;
  color: var(--muted-dim);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.post-tags span,
.project-listing .project-tags {
  color: var(--muted);
}

.post-tags span {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-listing .project-tags {
  margin-top: 16px;
  padding: 0 24px 24px;
}

.post-header h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  max-width: 15ch;
}

.post-description {
  max-width: 720px;
  font-size: 1.06rem;
  margin-top: 14px;
}

.post-content img {
  display: block;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.page-content figure,
.post-content figure {
  margin: 28px 0;
}

.page-content figcaption,
.post-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.post-content pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.post-content code {
  font-family: var(--font-mono);
}

.post-content :not(pre) > code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: #b04a00;
}

.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-footer a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-name,
.footer-links {
  margin: 0;
}

.footer-name {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

.footer-links a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links span {
  color: var(--muted-dim);
  font-size: 0.76rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero,
  .feature-body,
  .article-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .pillar-grid {
    display: grid;
  }

  .feature-aside {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .site-main {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  section {
    margin-bottom: 60px;
  }

  .hero {
    padding-top: 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .newsletter {
    padding: 26px 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
