.blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pine-dark);
  color: var(--white);
}
.blog-hero-image, .blog-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.blog-hero-image {
  object-fit: cover;
  object-position: center 41%;
}
.blog-hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgb(10 27 25 / .94) 0%, rgb(10 27 25 / .86) 29%, rgb(10 27 25 / .42) 59%, transparent 84%),
    linear-gradient(0deg, rgb(10 27 25 / .72), transparent 42%);
}
.blog-hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 42vw, 40rem);
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(5.25rem, 8vw, 6.5rem);
}
.blog-hero-copy { max-width: 31rem; }
.blog-hero-copy h1 {
  margin-block: .75rem .95rem;
  font: 600 clamp(3.4rem, 7vw, 6.5rem) / .98 var(--display);
  letter-spacing: -.062em;
}
.blog-hero-copy h1 em {
  display: block;
  color: var(--gold);
  font-weight: 500;
}
.blog-hero-copy > p:last-of-type {
  max-width: 29rem;
  color: #f0f3ef;
  font-size: clamp(1rem, 1.7vw, 1.17rem);
}
.blog-hero-actions, .story-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.45rem;
}
.blog-hero-actions .icon, .story-form-actions .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.blog-hero-location {
  position: absolute;
  right: 0;
  bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .72rem;
  border: 1px solid rgb(255 255 255 / .4);
  border-radius: 2rem;
  background: rgb(14 40 34 / .86);
  font-size: .8125rem;
}
.blog-hero-location .icon { width: 1rem; height: 1rem; color: var(--gold); }

.customer-stories { background: var(--cream); }
.customer-stories h2 { margin-block: 0 1.5rem; }
.story-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #dce3d8;
  border-radius: .9rem;
  background: var(--white);
}
.story-empty-icon {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: #eaf0e6;
  color: var(--pine-soft);
}
.story-empty-icon .icon { width: 1.5rem; height: 1.5rem; }
.story-empty h3 {
  margin-bottom: .23rem;
  color: var(--pine);
  font: 650 clamp(1.25rem, 2.4vw, 1.65rem) / 1.2 var(--display);
  letter-spacing: -.025em;
}
.story-empty p, .story-submission-copy > p, .story-photo-note p { color: var(--muted); }

.story-submission {
  border-block: 1px solid var(--line);
  background: #edf1e8;
}
.story-submission-inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(1.5rem, 6vw, 6rem);
}
.story-submission h2 { margin-top: 0; }
.story-submission-copy > p { max-width: 28rem; font-size: 1.06rem; }
.story-photo-note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  max-width: 27rem;
  margin-top: 1.65rem;
  padding-top: 1.3rem;
  border-top: 1px solid #c9d6c9;
}
.story-photo-note .icon { margin-top: .15rem; color: var(--pine-soft); }
.story-photo-note h3 { color: var(--pine); font-size: .96rem; }
.story-photo-note p { margin-top: .2rem; font-size: .91rem; }
.story-submission-card {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #d6e0d4;
  border-radius: .9rem;
  background: var(--white);
  box-shadow: 0 .55rem 1.6rem rgb(20 55 46 / .08);
}
.story-form, .story-form label, .story-form-row { display: grid; min-width: 0; }
.story-form { gap: 1rem; }
.story-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.story-form label {
  gap: .35rem;
  color: var(--pine);
  font-size: .9rem;
  font-weight: 800;
}
.story-form input, .story-form textarea {
  display: block;
  width: 100%;
  padding: .65rem .78rem;
  border: 1px solid #bac9ba;
  border-radius: .48rem;
  background: #f9faf7;
  color: var(--ink);
  font: 400 1rem / 1.45 var(--body);
}
.story-form input { min-height: 2.8rem; }
.story-form textarea { min-height: 7rem; resize: vertical; }
.story-form ::placeholder { color: #5f6a61; }
.story-form-actions { margin-top: .15rem; }
#story-length, .story-form-status {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
}
.story-form-status:empty { display: none; }

.blog-articles { background: var(--cream); }
.blog-articles-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
}
.blog-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  width: fit-content;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #ecefe6;
}
.blog-filters button {
  min-height: 2.55rem;
  padding: .4rem .85rem;
  border: 0;
  border-radius: 2rem;
  background: transparent;
  color: #385448;
  font-size: .9rem;
  font-weight: 800;
}
.blog-filters button:hover { background: #e0e8db; }
.blog-filters button[aria-pressed="true"] { background: var(--pine); color: var(--white); }
.blog-search {
  position: relative;
  width: clamp(12rem, 20vw, 17rem);
}
.blog-search .icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pine-soft);
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  min-height: 3rem;
  padding: .6rem .75rem .6rem 2.3rem;
  border: 1px solid #bac9ba;
  border-radius: .48rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .78rem;
  background: var(--white);
  box-shadow: 0 .25rem .9rem rgb(20 55 46 / .06);
}
.blog-cover {
  overflow: hidden;
  border-radius: .72rem .72rem 0 0;
  background: #d5ddd4;
}
.blog-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.68;
  object-fit: cover;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem;
}
.blog-topic {
  color: var(--pine-soft);
  font-size: .8125rem;
  font-weight: 800;
}
.blog-card h3, .blog-empty h3 {
  margin-block: .4rem .52rem;
  color: var(--pine);
  font: 650 1.4rem / 1.18 var(--display);
  letter-spacing: -.034em;
}
.blog-card h3 a {
  text-decoration: none;
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}
.blog-card h3 a:hover, .blog-card:has(.blog-cover:hover) h3 a { text-decoration-line: underline; }
.blog-summary { margin-bottom: 1rem; color: var(--muted); font-size: .9375rem; }
.blog-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .7rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.blog-byline { font-weight: 650; }
.blog-reading-time { white-space: nowrap; }
.blog-empty {
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: .78rem;
  background: var(--white);
  color: var(--muted);
}
.blog-empty button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pine);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 64rem) {
  .blog-card-body { padding: .95rem; }
}
@media (max-width: 49rem) {
  .blog-hero-image { object-position: 57% 42%; }
  .blog-hero::after {
    background:
      linear-gradient(90deg, rgb(10 27 25 / .89) 0%, rgb(10 27 25 / .73) 48%, rgb(10 27 25 / .14)),
      linear-gradient(0deg, rgb(10 27 25 / .68), transparent 62%);
  }
  .story-submission-inner { grid-template-columns: 1fr; }
  .blog-articles-heading { align-items: flex-start; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .blog-hero-inner { min-height: 28rem; }
  .blog-hero-copy h1 { font-size: clamp(2.8rem, 11vw, 3.7rem); }
  .story-empty { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .85rem; }
  .story-empty-icon { width: 2.65rem; height: 2.65rem; }
  .story-form-row { grid-template-columns: 1fr; }
  .blog-controls, .blog-search { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-body { padding: 1.05rem; }
}

.story-feed-status, .story-public-note, .story-access p, .story-upload p { color: var(--muted); font-size: .9rem; }
.story-feed-status:empty { display: none; }
.story-feed { display: grid; gap: 1rem; }
.story-feed:not(:empty) + .button { margin-top: 1rem; }
.story-post {
  min-width: 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--white);
}
.story-post > header {
  display: grid;
  gap: .25rem;
  margin-bottom: 1rem;
}
.story-post h3 {
  color: var(--pine);
  font: 650 clamp(1.5rem, 3vw, 2.2rem) / 1.14 var(--display);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.story-post-meta { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.story-post-destination { color: var(--pine-soft); font-size: .85rem; font-weight: 800; overflow-wrap: anywhere; }
.story-post-cover {
  width: min(100%, 38rem);
  max-height: 24rem;
  object-fit: contain;
  object-position: left center;
  border-radius: .6rem;
  margin-bottom: .85rem;
}
.story-post summary {
  display: list-item;
  width: fit-content;
  margin: .7rem 0;
  color: var(--pine);
  font-weight: 800;
  cursor: pointer;
}
.story-prose { max-width: 68ch; overflow-wrap: anywhere; }
.story-prose p { white-space: pre-line; margin-bottom: .85rem; }
.story-prose h4 { color: var(--pine); margin: 1.05rem 0 .35rem; font-size: 1.2rem; }
.story-prose ul { padding-inline-start: 1.35rem; }
.story-post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .55rem;
  margin-top: 1rem;
}
.story-post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: .55rem; background: var(--cream); }

.story-submission-inner { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); }
.story-access { display: grid; justify-items: start; gap: .6rem; margin-top: 1.6rem; }
.story-fields { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.story-title-label input {
  font: 600 clamp(1.12rem, 2.2vw, 1.4rem) / 1.35 var(--display);
}
.story-writing { display: grid; gap: .35rem; }
.story-editor { overflow: hidden; border: 1px solid #bac9ba; border-radius: .48rem; background: #f9faf7; }
.story-editor:focus-within { border-color: var(--pine-soft); }
.story-editor textarea { border: 0; border-radius: 0; background: transparent; }
.story-editor textarea:focus-visible { outline-offset: -3px; }
.story-toolbar { display: flex; gap: .25rem; padding: .28rem .42rem; border-bottom: 1px solid var(--line); background: #edf1e8; }
.story-toolbar button {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--pine);
  font-size: 1.1rem;
  font-weight: 700;
}
.story-toolbar button:hover { background: #dfe9de; }
.story-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .8rem;
  padding: .85rem;
  border: 1px dashed #9bb3a0;
  border-radius: .55rem;
  background: #f5f8f1;
  color: var(--pine);
}
.story-upload .icon { align-self: flex-start; margin-top: .2rem; }
.story-upload > div { flex: 1 1 12rem; }
.story-form .story-upload-button { display: inline-flex; position: relative; cursor: pointer; }
.story-upload-button:focus-within { outline: 3px solid #bc6f2c; outline-offset: 4px; }
.story-form input.sr-only { width: 1px; min-height: 0; margin: 0; padding: 0; border: 0; }
.story-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-photo-list li { min-width: 0; display: grid; gap: .38rem; }
.story-photo-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; }
.story-photo-list input { font-size: .83rem; }
.story-photo-list button {
  justify-self: start;
  min-height: 2.5rem;
  padding: 0 .3rem;
  border: 0;
  background: transparent;
  color: var(--pine);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: underline;
}
.story-form-actions { justify-content: flex-end; }
.story-form-status { margin-top: .65rem; }
.story-form button:disabled, .story-access button:disabled { cursor: wait; opacity: .65; }
.story-preview-dialog {
  width: min(46rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: clamp(.8rem, 4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--cream);
  color: var(--ink);
}
.story-preview-dialog::backdrop { background: rgb(10 30 25 / .72); }
.story-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .8rem;
}
.story-preview-header h2 { margin: 0; font: 650 1.4rem var(--display); }

@media (max-width: 49rem) {
  .story-submission-inner { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .story-form-actions { justify-content: flex-start; }
  .story-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
