:root {
  color-scheme: light;
  --ink: #292421;
  --ink-soft: #5f5650;
  --paper: #faf5ed;
  --paper-deep: #efe4d6;
  --white: #fffdf8;
  --cocoa: #6f3e2f;
  --cocoa-dark: #2b1a14;
  --red: #7a263a;
  --gold: #c69c62;
  --line: rgba(41, 36, 33, 0.14);
  --shadow: 0 18px 48px rgba(43, 26, 20, 0.12);
  --container: min(1120px, calc(100% - 40px));
  --home-container: min(1240px, calc(100% - 40px));
  --font-display: "Lora", "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, Manrope, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(198, 156, 98, 0.86);
  outline-offset: 4px;
}

button {
  font: inherit;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.home-container {
  width: var(--home-container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.header-shell {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 38px);
  padding-block: 12px;
}

.brand-row {
  display: none;
}

.logo {
  flex: 0 0 auto;
  text-align: left;
}

.site-logo-image {
  display: block;
  width: clamp(230px, 21vw, 285px);
  height: auto;
  border-radius: 0;
}

.main-nav {
  flex: 1 1 auto;
  border-top: 0;
}

.nav-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
}

.nav-inner a {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.nav-inner a[aria-current="page"],
.nav-inner a:hover {
  color: var(--red);
}

.header-rule {
  border-top: 1px solid var(--line);
}

.home-main {
  padding: clamp(26px, 3vw, 42px) 0 0;
}

.home-lead {
  padding-bottom: clamp(56px, 7vw, 82px);
}

.home-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, 0.86fr);
  gap: 20px;
}

.home-lead-card,
.home-lead-media,
.home-card-media,
.home-guide-image {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.home-lead-card {
  min-height: 560px;
  display: grid;
  align-items: end;
  box-shadow: var(--shadow);
}

.home-lead-media {
  position: absolute;
  inset: 0;
}

.home-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.home-lead-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 9, 6, 0.94), rgba(16, 9, 6, 0.12) 66%);
  content: "";
}

.home-lead-media img,
.home-card-media img,
.home-guide-image img,
.home-desk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-lead-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: clamp(28px, 5.4vw, 60px);
  color: #fffdf8;
}

.home-kicker,
.home-section-eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kicker.on-dark,
.home-section-eyebrow {
  color: var(--gold);
}

.home-lead h1 {
  max-width: 780px;
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.home-dek {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1rem;
  line-height: 1.68;
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.5;
}

.home-lead-card .home-meta,
.home-brands .home-meta {
  color: rgba(255, 253, 248, 0.68);
}

.home-image-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  background: rgba(43, 26, 20, 0.78);
  color: #fff;
  font-size: 0.58rem;
  line-height: 1.25;
}

.home-image-credit.on-dark {
  color: #fffdf8;
}

.home-side-list {
  display: grid;
  gap: 14px;
}

.home-side-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  min-height: 170px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-side-thumb {
  min-height: 138px;
  overflow: hidden;
}

.home-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-number {
  color: var(--paper-deep);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.9;
}

.home-side-card h2,
.home-news-card h3,
.home-editor-card h3,
.home-desk-item h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  -webkit-box-orient: vertical;
}

.home-side-card h2 {
  font-size: 1.16rem;
  -webkit-line-clamp: 3;
}

.home-section {
  padding: clamp(56px, 7vw, 86px) 0;
  border-top: 1px solid var(--line);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.home-section-heading h2,
.home-brand-head h2,
.home-turkey-feature h2 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.home-section-heading p:not(.home-section-eyebrow),
.home-brand-head p,
.home-guide-copy p,
.home-local-panel p {
  max-width: 670px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.home-cta,
.home-dark-cta {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-news-card,
.home-editor-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-card-media {
  aspect-ratio: 4 / 3;
}

.home-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(20, 11, 8, 0.52), transparent);
  content: "";
}

.home-card-body {
  padding: 17px 18px 20px;
}

.home-news-card h3,
.home-editor-card h3 {
  font-size: 1.26rem;
  -webkit-line-clamp: 2;
}

.home-guides {
  background: #fff9f0;
}

.home-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 24px;
}

.home-guide-feature,
.home-turkey-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-guide-image {
  min-height: 320px;
}

.home-guide-copy {
  align-self: center;
  padding: clamp(22px, 3vw, 36px);
}

.home-guide-copy h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.home-guide-list {
  display: grid;
  gap: 12px;
}

.home-guide-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-guide-link img {
  width: 92px;
  height: 72px;
  object-fit: cover;
}

.home-guide-link span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-topic-band {
  background:
    radial-gradient(circle at 84% 12%, rgba(198, 156, 98, 0.16), transparent 18rem),
    #f6ede1;
}

.home-topic-layout,
.home-practical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 24px;
}

.home-topic-stack,
.home-topic-list {
  display: grid;
  gap: 16px;
}

.home-topic-card {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-topic-card.is-large {
  grid-template-columns: 1fr;
}

.home-topic-media {
  overflow: hidden;
  background: var(--paper-deep);
}

.home-topic-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-topic-card:not(.is-large) .home-topic-media img {
  aspect-ratio: 1;
}

.home-topic-copy {
  align-self: center;
  padding: 18px;
}

.home-topic-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-topic-card.is-large .home-topic-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.home-topic-copy p:not(.home-kicker) {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-practical {
  background: var(--paper);
}

.home-mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-mini-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-mini-heading a {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-brands {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(198, 156, 98, 0.2), transparent 19rem),
    linear-gradient(135deg, #2b1a14 0%, #583226 62%, #21110d 100%);
  color: #fffdf8;
}

.home-brand-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
}

.home-brand-head p {
  color: #e8d9c8;
}

.home-brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.home-brand-stats div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.home-brand-stats div:last-child {
  border-right: 0;
}

.home-brand-stats dt {
  color: #d8c6b3;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-brand-stats dd {
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.home-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-brand-card a {
  min-height: 100%;
  display: grid;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-brand-logo,
.home-local-logo {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 14px;
  background: var(--white);
}

.home-brand-logo img,
.home-local-logo img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.home-brand-logo img[src*="soma-chocolatemaker/logo-full.webp"],
.home-local-logo img[src*="soma-chocolatemaker/logo-full.webp"] {
  box-sizing: border-box;
  background: #2b1a14;
  padding: 10px 14px;
}

.home-brand-meta {
  color: #dac8b5;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-brand-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.home-brand-card span:last-child {
  color: #e8d9c8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-dark-cta {
  display: inline-flex;
  margin-top: 26px;
  color: #f0c47f;
}

.home-turkey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 24px;
}

.home-local-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-local-panel h3 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-local-grid {
  display: grid;
  gap: 12px;
}

.home-local-brand a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
}

.home-local-logo {
  min-height: 70px;
  padding: 10px;
}

.home-local-logo img {
  height: 46px;
}

.home-local-text {
  min-width: 0;
}

.home-local-meta {
  display: block;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-local-brand strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.home-local-copy {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.home-desk-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-desk-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.home-desk-item h3 {
  font-size: 1.16rem;
  -webkit-line-clamp: 2;
}

.home-discover {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, 1fr);
  gap: 0;
  margin-bottom: clamp(56px, 7vw, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-discover span,
.home-discover a {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-discover a {
  color: var(--red);
}

.home-discover a:last-child {
  border-right: 0;
}

footer {
  padding: 48px 0;
  background: var(--cocoa-dark);
  color: #e2d4c4;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: start;
  gap: 42px;
}

.footer-identity {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.footer-logo-link {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
}

.footer-logo-image {
  width: min(260px, 72vw);
  height: auto;
  border-radius: 0;
  opacity: 0.96;
}

.footer-note {
  color: #c8b9aa;
  font-size: 0.72rem;
}

.footer-menu {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-menu-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu a {
  color: #f3e8dc;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .home-lead-grid,
  .home-guide-layout,
  .home-topic-layout,
  .home-practical-grid,
  .home-turkey-grid,
  .home-brand-head {
    grid-template-columns: 1fr;
  }

  .home-side-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-topic-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-side-card {
    grid-template-columns: 1fr;
  }

  .home-side-thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-four-grid,
  .home-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1181px) {
  .home-lead-card,
  .home-side-list {
    height: 560px;
  }

  .home-side-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1120px);
    --home-container: min(100% - 28px, 620px);
  }

  .header-shell {
    min-height: 86px;
    padding-block: 8px;
    gap: 16px;
  }

  .site-logo-image {
    width: 178px;
  }

  .nav-inner {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .home-main {
    padding-top: 18px;
  }

  .home-lead-card {
    min-height: 500px;
  }

  .home-lead-content {
    padding: 26px;
  }

  .home-lead h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .home-side-list,
  .home-four-grid,
  .home-desk-grid,
  .home-discover,
  .home-topic-stack,
  .home-topic-list {
    grid-template-columns: 1fr;
  }

  .home-side-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .home-side-thumb {
    width: 104px;
    min-height: 104px;
    aspect-ratio: 1;
  }

  .home-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-guide-feature,
  .home-turkey-feature,
  .home-desk-item {
    grid-template-columns: 1fr;
  }

  .home-topic-card,
  .home-topic-card.is-large {
    grid-template-columns: 1fr;
  }

  .home-topic-card:not(.is-large) .home-topic-media img {
    aspect-ratio: 16 / 9;
  }

  .home-guide-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .home-brand-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-brand-stats div {
    padding: 14px 12px;
  }

  .home-brand-stats dd {
    font-size: 1.55rem;
  }

  .home-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-local-brand a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .home-discover span,
  .home-discover a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 420px) {
  .home-side-card {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
  }

  .home-side-thumb {
    width: 92px;
    min-height: 96px;
  }

  .home-brand-grid,
  .home-brand-stats {
    grid-template-columns: 1fr;
  }

  .home-brand-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .home-brand-stats div:last-child {
    border-bottom: 0;
  }

  .home-local-brand a {
    grid-template-columns: 1fr;
  }

  .home-mini-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-news-card,
  .home-editor-card,
  .home-topic-card,
  .home-side-card,
  .home-desk-item,
  .home-guide-link,
  .home-brand-card a,
  .home-local-brand a {
    transition: transform 180ms ease, border-color 180ms ease;
  }

  .home-news-card:hover,
  .home-editor-card:hover,
  .home-topic-card:hover,
  .home-side-card:hover,
  .home-desk-item:hover,
  .home-guide-link:hover,
  .home-brand-card a:hover,
  .home-local-brand a:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 38, 58, 0.42);
  }
}
