:root {
  --ink: #252222;
  --muted: #665f58;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ddd7ce;
  --teal: #1e6f68;
  --teal-dark: #164c48;
  --coral: #c85d4e;
  --gold: #d8ad62;
  --shadow: 0 18px 50px rgba(37, 34, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  background: #f4eee6;
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 24px;
}

.nav-primary {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  min-width: 0;
}

.brand {
  align-items: center;
  color: #0b4b45;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  min-height: 44px;
  position: relative;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(37, 34, 34, 0.14);
  height: 42px;
  margin-right: 10px;
  object-fit: contain;
  width: 42px;
}

.brand span {
  display: inline-block;
}

.site-search {
  flex: 0 1 300px;
  min-width: 190px;
}

.site-search input {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  min-height: 40px;
  padding: 8px 14px;
  width: 100%;
}

.site-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 111, 104, 0.14);
  outline: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
}

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.nav-actions a {
  text-decoration: none;
}

.plain-button {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  padding: 0;
}

.facebook-link {
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal-dark);
  padding: 7px 13px;
}

.hero {
  display: grid;
  min-height: min(430px, 58vh);
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(20, 28, 27, 0.68), rgba(20, 28, 27, 0.28) 45%, rgba(20, 28, 27, 0.02));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  align-self: center;
  color: #fffdf8;
  max-width: 860px;
  padding: 38px 24px 52px;
  position: relative;
  width: min(100%, 1180px);
  z-index: 1;
  margin: 0 auto;
}

.eyebrow {
  color: var(--coral);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  margin-bottom: 14px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-copy p:not(.eyebrow) {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 700px;
}

.primary-action,
.share-action,
.text-action {
  align-items: center;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  min-height: 44px;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  border-radius: 999px;
  color: #221b16;
  padding: 10px 18px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px 70px;
}

.section {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr minmax(260px, 420px);
  margin-bottom: 24px;
}

.section-note {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.trust-note {
  background: #fff5d8;
  border: 1px solid rgba(216, 173, 98, 0.65);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(216, 173, 98, 0.12);
  padding: 13px 16px;
}

.trust-note p {
  margin: 0 0 5px;
}

.trust-note p:last-child {
  margin-bottom: 0;
}

.trust-note a {
  color: var(--teal-dark);
  font-weight: 800;
}

code {
  background: #ebe4d9;
  border-radius: 4px;
  font-size: 0.9em;
  padding: 2px 5px;
}

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

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 28px;
}

.sponsored-card {
  border-color: rgba(216, 173, 98, 0.85);
}

.shop-card {
  border-color: rgba(30, 111, 104, 0.35);
}

.shop-intro {
  align-items: center;
  gap: 20px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  margin-bottom: 18px;
}

.shop-intro-copy {
  max-width: 560px;
}

.shop-intro h1 {
  font-size: clamp(1.22rem, 1.75vw, 1.7rem);
  line-height: 1.18;
  margin-bottom: 14px;
  max-width: 620px;
}

.whatsapp-word {
  color: #128c4a;
  font-weight: 900;
}

.shop-intro-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.shop-hero-media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.shop-hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.shop-intro .trust-note {
  grid-column: 1 / -1;
}

.import-panel {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 24px;
}

.import-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  padding: 18px 20px;
}

.import-panel summary::-webkit-details-marker {
  display: none;
}

.import-panel summary > span:first-child {
  display: grid;
  gap: 3px;
}

.import-panel summary strong {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.08;
}

.import-panel summary span span:last-child {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.summary-action {
  background: var(--teal);
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 9px 14px;
}

.import-panel[open] .summary-action {
  background: var(--gold);
  color: #221b16;
}

.import-panel-body {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.import-panel .stack-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-panel .stack-form .form-wide,
.import-panel .stack-form .form-actions,
.import-panel .stack-form .section-note {
  grid-column: 1 / -1;
}

.shop-tools {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) minmax(160px, 220px);
  margin: 0 auto 22px;
  max-width: 1180px;
  padding: 0 24px;
}

.shop-tools input,
.shop-tools select {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 9px 14px;
  width: 100%;
}

.shop-tools input:focus,
.shop-tools select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 111, 104, 0.14);
  outline: 0;
}

.shop-price {
  color: var(--teal-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.shop-price.large {
  font-size: 1.45rem;
}

.shop-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  margin-bottom: 24px;
}

.shop-gallery img {
  aspect-ratio: 1 / 1;
  background: #f7f2e9;
  border-radius: 8px;
  object-fit: contain;
  width: 100%;
}

.status-pill {
  border: 1px solid rgba(200, 93, 78, 0.5);
  border-radius: 999px;
  color: #7f2e25;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 8px 14px;
}

.content-label {
  color: var(--coral);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 18px 0 0;
  text-transform: uppercase;
}

.bottom-label {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: block;
  margin: -8px 0 20px;
  object-fit: cover;
  width: 100%;
}

.shop-card .post-card-image {
  background: #f7f2e9;
  object-fit: contain;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 28px;
}

.empty-state h3 {
  color: var(--ink);
}

.post-card h3 a {
  text-decoration-color: rgba(30, 111, 104, 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-date {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
}

.text-action {
  color: var(--teal-dark);
}

.share-action {
  background: var(--teal);
  border-radius: 999px;
  color: white;
  padding: 9px 15px;
}

.whatsapp-action {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  color: #082316;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  gap: 6px;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  min-width: 62px;
  padding: 8px 12px;
  text-decoration: none;
}

.whatsapp-action svg {
  display: block;
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.whatsapp-action:hover {
  background: #1fb858;
  color: #04150d;
}

.whatsapp-action-alt {
  background: #dff7ea;
  color: var(--teal-dark);
}

.whatsapp-action-alt:hover {
  background: #c8efd9;
  color: var(--teal-dark);
}

.post-view {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 780px;
  padding: clamp(28px, 5vw, 54px);
}

.post-view h2 {
  margin-bottom: 22px;
}

.post-view p {
  font-size: 1.15rem;
}

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

.post-figure img {
  border-radius: 8px;
  display: block;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.post-figure video {
  background: #111;
  border-radius: 8px;
  display: block;
  max-height: 520px;
  width: 100%;
}

.post-figure figcaption {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  margin-top: 8px;
}

.back-link {
  color: var(--teal-dark);
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  margin-bottom: 24px;
}

.single {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.topics {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 38px;
}

.topic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.topic-grid article {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.topic-grid h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.topic-grid p {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  margin: 0;
}

.about {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  max-width: 780px;
  padding-top: 38px;
}

.info-panels {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
  padding-top: 38px;
}

.info-panel {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
}

.info-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.info-panel p:not(.eyebrow) {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.footer p {
  margin: 0;
}

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

.admin-body {
  background: #f4eee6;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-topbar {
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-shell {
  max-width: 1180px;
  padding-top: 34px;
}

.admin-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form.compact {
  gap: 12px;
}

.stack-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 6px;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
}

.stack-form textarea {
  line-height: 1.5;
  resize: vertical;
}

.stack-form select[multiple] {
  min-height: 180px;
}

.inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-controls label {
  align-items: center;
  display: flex;
  grid-template-columns: auto 1fr;
}

.inline-controls input {
  width: auto;
}

.writer-list,
.admin-posts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.role-notes {
  border-top: 1px solid var(--line);
  margin: 18px 0;
  padding-top: 16px;
}

.role-notes p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.admin-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 13px;
}

.admin-request-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(150px, 200px);
  margin-bottom: 16px;
}

.admin-request-tools input,
.admin-request-tools select {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  min-height: 40px;
  padding: 8px 13px;
  width: 100%;
}

.request-more-button {
  margin-top: 14px;
}

.admin-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.danger-button {
  background: #fff1ee;
  border: 1px solid #d68a7d;
  border-radius: 999px;
  color: #8a2e22;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 12px;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: white;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
}

@media (max-width: 760px) {
  main {
    padding: 14px 14px 48px;
  }

  .shop-main {
    display: flex;
    flex-direction: column;
  }

  .nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
    padding: 14px;
  }

  .nav-primary {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .site-search {
    flex-basis: auto;
    width: 100%;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: 430px;
  }

  .hero-copy {
    padding-bottom: 42px;
    padding-top: 34px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(20, 28, 27, 0.65), rgba(20, 28, 27, 0.24));
  }

  .section,
  .post-list {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 10px;
    margin-bottom: 14px;
  }

  .shop-intro {
    gap: 10px;
    margin-bottom: 10px;
    order: 1;
  }

  .shop-intro h1 {
    font-size: clamp(1rem, 4.25vw, 1.2rem);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .shop-intro .section-note {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .shop-intro-actions {
    gap: 8px;
    margin-top: 10px;
  }

  .shop-hero-media {
    display: none;
  }

  .trust-note {
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 9px 11px;
  }

  .import-panel {
    margin-bottom: 14px;
    order: 5;
  }

  .import-panel summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .import-panel summary strong {
    font-size: 1.05rem;
  }

  .import-panel summary span span:last-child {
    font-size: 0.84rem;
  }

  .summary-action {
    font-size: 0.82rem;
    padding: 7px 11px;
  }

  .import-panel-body {
    padding: 14px;
  }

  .import-panel .stack-form {
    grid-template-columns: 1fr;
  }

  .shop-tools {
    gap: 8px;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    order: 3;
    padding: 0;
  }

  #inventory {
    margin-bottom: 10px;
    order: 2;
  }

  #inventory h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  #inventory .section-note {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  #shop-list,
  #shop-view {
    order: 4;
  }

  .post-list {
    gap: 12px;
  }

  .admin-request-tools {
    grid-template-columns: 1fr;
  }

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

  .info-panels {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 16px;
  }

  .post-card-image {
    margin-bottom: 14px;
  }

  .shop-price {
    margin-bottom: 8px;
  }

  .content-label {
    margin-top: 12px;
  }

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

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .admin-panel {
    padding: 22px;
  }
}
