:root {
  --bg: #f7f4ef;
  --surface: rgba(255, 252, 248, 0.92);
  --surface-strong: #fffdfa;
  --line: rgba(58, 40, 28, 0.12);
  --line-strong: rgba(58, 40, 28, 0.2);
  --ink: #191512;
  --ink-soft: #65584e;
  --accent: #8d3f22;
  --accent-soft: #f1ddd2;
  --bg-glow-a: rgba(141, 63, 34, 0.08);
  --bg-glow-b: rgba(103, 86, 71, 0.08);
  --hero-tint: rgba(141, 63, 34, 0.08);
  --page-width: 1040px;
  --content-width: 780px;
  --body-font: "Manrope", system-ui, sans-serif;
  --display-font: "Literata", Georgia, serif;
  --base-font-size: 18px;
  --shadow: 0 24px 60px rgba(58, 40, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--bg-glow-a), transparent 26%),
    radial-gradient(circle at right 10% top 16%, var(--bg-glow-b), transparent 20%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, white 14%) 0%, var(--bg) 100%);
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: 1.7;
}

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

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

code {
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 0.15rem 0.35rem;
  color: var(--accent);
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.page-stack {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.site-header,
.hero,
.section-shell,
.archive-shell,
.page-footer,
.post-shell,
.media-panel,
.links-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1.35rem;
}

.brand {
  display: grid;
  gap: 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-mark {
  color: var(--accent);
}

.brand-subtitle {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.post-link:hover,
.post-link:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.media-link:hover,
.media-link:focus-visible {
  color: var(--accent);
}

.hero {
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, var(--hero-tint), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 90%, white 10%), color-mix(in srgb, var(--surface) 92%, white 8%));
}

.eyebrow,
.section-label {
  margin: 0 0 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-title,
.section-title,
.listing-title,
.post-title,
.media-title,
.links-title,
.product-copy h3 {
  font-family: var(--display-font);
  letter-spacing: -0.04em;
}

.hero-title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
}

.hero-copy,
.section-copy,
.listing-excerpt,
.post-meta,
.post-intro,
.article-body,
.page-footer,
.listing-meta,
.section-body,
.product-copy p,
.footer-copy {
  color: var(--ink-soft);
}

.hero-copy,
.section-body,
.footer-copy {
  font-size: 1.02rem;
}

.hero-copy {
  max-width: 58ch;
  margin-top: 1rem;
}

.hero-copy > :first-child,
.section-body > :first-child,
.footer-copy > :first-child {
  margin-top: 0;
}

.hero-copy > :last-child,
.section-body > :last-child,
.footer-copy > :last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.button-text {
  line-height: 1;
}

.button-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.button-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button-link-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-link-secondary {
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  color: var(--ink);
}

.button-link-ghost {
  background: transparent;
  color: var(--accent);
}

.button-link:hover,
.button-link:focus-visible,
.button-link-secondary:hover,
.button-link-secondary:focus-visible,
.button-link-ghost:hover,
.button-link-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.button-link-primary:hover,
.button-link-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.theme-buttons-pill .button-link,
.theme-buttons-pill .button-link-primary {
  border-radius: 999px;
}

.theme-buttons-rounded .button-link,
.theme-buttons-rounded .button-link-primary {
  border-radius: 1rem;
}

.theme-buttons-sharp .button-link,
.theme-buttons-sharp .button-link-primary {
  border-radius: 0.3rem;
}

.section-shell,
.archive-shell,
.post-shell,
.media-panel,
.links-panel {
  border-radius: 1.5rem;
}

.section-shell {
  background: var(--section-bg, var(--surface));
}

.section-style-accent {
  background: color-mix(in srgb, var(--section-bg, var(--accent-soft)) 78%, white 22%);
  border-color: color-mix(in srgb, var(--section-accent, var(--accent)) 25%, var(--line));
}

.section-style-accent .section-label,
.section-style-accent .post-link,
.section-style-accent .media-link {
  color: var(--section-accent, var(--accent));
}

.section-style-minimal {
  background: transparent;
  box-shadow: none;
}

.section-style-outline {
  background: transparent;
  border-style: dashed;
}

.section-width-narrow {
  width: min(100%, 720px);
  margin-inline: auto;
}

.section-width-wide,
.section-width-full,
.section-width-normal {
  width: 100%;
}

.section-align-center {
  text-align: center;
}

.section-align-center .hero-actions,
.section-align-center .button-row,
.section-align-center .share-row,
.section-align-center .footer-links {
  justify-content: center;
}

.section-pad-compact {
  padding: 1rem;
}

.section-pad-normal {
  padding: 1.35rem;
}

.section-pad-roomy {
  padding: 2rem;
}

.archive-shell,
.media-panel,
.links-panel {
  padding: 1.35rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.section-body p,
.section-body ul,
.section-body ol,
.section-body blockquote,
.section-body pre,
.section-body h2,
.section-body h3,
.footer-copy p {
  margin: 0 0 1.1rem;
}

.section-body h2,
.section-body h3 {
  color: var(--ink);
  line-height: 1.2;
}

.section-body a,
.article-body a,
.footer-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.section-body blockquote,
.article-body blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: color-mix(in srgb, var(--ink) 75%, var(--surface) 25%);
}

.product-grid,
.media-grid,
.archive-list,
.post-feed {
  display: grid;
  gap: 0.9rem;
}

.product-grid,
.archive-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.post-feed-compact {
  gap: 0.75rem;
}

.product-card,
.archive-card,
.media-card,
.post-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.theme-cards-soft .product-card,
.theme-cards-soft .archive-card,
.theme-cards-soft .media-card,
.theme-cards-soft .post-card {
  border-radius: 1.1rem;
}

.theme-cards-outline .product-card,
.theme-cards-outline .archive-card,
.theme-cards-outline .media-card,
.theme-cards-outline .post-card {
  border-radius: 0.8rem;
  background: transparent;
}

.theme-cards-solid .product-card,
.theme-cards-solid .archive-card,
.theme-cards-solid .media-card,
.theme-cards-solid .post-card {
  border-radius: 1rem;
  background: var(--surface-strong);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
}

.post-card-compact {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.post-card-copy {
  display: grid;
  gap: 0.7rem;
}

.product-media {
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface) 65%);
  aspect-ratio: 16 / 10;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
}

.product-copy h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.product-copy p {
  margin: 0;
}

.product-price {
  display: inline-flex;
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-embed,
.media-card-audio {
  padding: 1rem;
}

.media-card audio {
  width: 100%;
}

.media-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.media-meta {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
}

.media-title-small {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1.2;
}

.media-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.media-callout {
  display: grid;
  gap: 0.55rem;
}

.media-callout p {
  margin: 0;
  color: var(--ink-soft);
}

.video-frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #0e0b09;
}

.video-frame iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.archive-card {
  overflow: hidden;
}

.archive-card .product-copy {
  padding-top: 0.85rem;
}

.listing-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
}

.listing-title {
  margin: 0.35rem 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.listing-excerpt {
  margin: 0 0 0.7rem;
}

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  font-size: 0.83rem;
  font-weight: 700;
}

.post-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.3rem;
}

.icon-action,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--ink-soft);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}

button.icon-action,
button.share-button {
  cursor: pointer;
  font: inherit;
}

.icon-action:hover,
.icon-action:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon-action.is-copied,
.share-button.is-copied {
  background: color-mix(in srgb, var(--accent-soft) 70%, white 30%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  color: var(--accent);
}

.empty-state {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
}

.element-list {
  display: grid;
  gap: 0.9rem;
}

.button-row,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.element-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.element-title {
  margin: 0 0 0.7rem;
  font-family: var(--display-font);
  font-size: 1.2rem;
}

.element-quote {
  margin: 0;
}

.element-button {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.element-callout {
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface-strong) 55%);
}

.element-image img {
  width: 100%;
  border-radius: 0.8rem;
}

.element-image figcaption {
  margin-top: 0.8rem;
}

.element-spacer {
  width: 100%;
}

.element-divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.share-panel,
.element-share {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.share-header {
  display: grid;
  gap: 0.35rem;
}

.share-button {
  font-size: 0.92rem;
  font-weight: 700;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong) 78%, white 22%);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.preview-shell {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 1.25rem;
}

.icon-action .button-text,
.share-button .button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.preview-canvas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0.25rem 0 0.5rem;
}

.preview-viewport {
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0 0.75rem;
}

.post-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.post-header {
  display: grid;
  gap: 1rem;
}

.post-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.post-intro {
  margin: 0;
  font-size: 1.15rem;
}

.cover-frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface) 65%);
}

.cover-frame-wide {
  margin-top: 1.4rem;
}

.cover-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-body {
  margin-top: 1.6rem;
  font-family: var(--display-font);
  font-size: 1.12rem;
  line-height: 1.85;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body h2,
.article-body h3 {
  margin: 0 0 1.2rem;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
  line-height: 1.2;
}

.article-body iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 1rem;
}

.post-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.media-title,
.links-title {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.gallery-item figure {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.7rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.media-player {
  margin-top: 0.85rem;
}

.media-player audio,
.media-player video {
  width: 100%;
}

.link-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong) 66%, transparent);
}

.link-item-label {
  font-weight: 700;
}

.link-item-type {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.page-footer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  text-align: center;
}

.footer-links {
  justify-content: center;
  margin-top: 0.8rem;
}

.theme-header-glass .site-header {
  backdrop-filter: blur(14px);
}

.theme-header-solid .site-header {
  background: var(--surface-strong);
}

.theme-header-minimal .site-header {
  background: transparent;
  box-shadow: none;
}

.theme-footer-card .page-footer {
  background: var(--surface);
}

.theme-footer-solid .page-footer {
  background: var(--surface-strong);
}

.theme-footer-minimal .page-footer {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    max-width: none;
  }

  .product-grid,
  .media-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .post-shell {
    width: min(calc(100% - 1rem), var(--page-width));
  }

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

  .hero-actions,
  .listing-meta,
  .post-meta,
  .link-item,
  .post-card-compact,
  .button-row,
  .share-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-frame iframe,
  .article-body iframe {
    min-height: 240px;
  }
}
