/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

* {
  box-sizing: border-box;
}

:root {
  --ink: #171615;
  --muted: #69625b;
  --line: #ded7ce;
  --paper: #f6f3ee;
  --surface: #fffdf8;
  --accent: #8f2f2d;
  --olive: #56624a;
  --blue: #314d63;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid rgba(23, 22, 21, 0.08);
  backdrop-filter: blur(14px);
}

.site-logo {
  font-weight: 760;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: end;
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 243, 238, 0.96) 0%, rgba(246, 243, 238, 0.82) 36%, rgba(246, 243, 238, 0.12) 70%),
    linear-gradient(0deg, rgba(23, 22, 21, 0.38), rgba(23, 22, 21, 0));
}

.hero__content {
  width: min(640px, 100%);
  padding-bottom: clamp(24px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: #3d3935;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 720;
}

.button--primary {
  background: var(--ink);
  color: var(--surface);
}

.button--secondary {
  background: rgba(255, 253, 248, 0.72);
}

main {
  padding-bottom: 72px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--blue);
  font-weight: 720;
}

.page-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 110px) 0 clamp(26px, 4vw, 42px);
}

.page-heading h1 {
  max-width: 12ch;
  margin-bottom: 18px;
}

.page-heading p:last-child {
  max-width: 700px;
  color: #514b45;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.diagnosis-band,
.browse-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.quick-links,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.chip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3a3631;
  font-weight: 700;
}

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

.browse-columns h3 {
  font-size: 1rem;
}

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

.style-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.style-card__link {
  min-height: 100%;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.style-card__image {
  background: #e8e0d6;
  overflow: hidden;
}

.style-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.style-card__body {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.style-card:nth-child(2) {
  border-top-color: var(--olive);
}

.style-card:nth-child(3) {
  border-top-color: var(--blue);
}

.style-card:nth-child(4) {
  border-top-color: var(--accent);
}

.style-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.style-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.guide__list {
  display: grid;
  gap: 12px;
}

.guide__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.guide__item span {
  color: var(--accent);
  font-weight: 760;
}

.guide__item p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.filters {
  padding-top: 20px;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-form label {
  display: grid;
  gap: 6px;
  color: #514b45;
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
  min-height: calc(100vh - 70px);
}

.detail__image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
}

.detail__content {
  align-self: end;
  padding: clamp(32px, 6vw, 72px);
}

.detail__content h1 {
  max-width: 10ch;
}

.detail__lead {
  color: #514b45;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.detail-grid,
.diagnosis-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-panel h2 {
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.25;
}

.info-panel dl,
.info-panel ul {
  margin: 0;
  padding: 0;
}

.info-panel li {
  margin-left: 18px;
  color: #514b45;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.info-panel dt {
  color: var(--muted);
  font-weight: 700;
}

.info-panel dd {
  margin: 0;
}

.article-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.article-row span {
  color: var(--accent);
  font-weight: 760;
}

.article-row h2 {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.article-row p {
  margin: 0;
  color: #514b45;
}

.article-detail {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 110px) 0;
}

.article-detail h1 {
  max-width: 12ch;
}

.article-body {
  color: #3d3935;
}

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

  .hero {
    min-height: 740px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(246, 243, 238, 0.97) 0%, rgba(246, 243, 238, 0.82) 48%, rgba(246, 243, 238, 0.08) 100%),
      linear-gradient(0deg, rgba(23, 22, 21, 0.38), rgba(23, 22, 21, 0));
  }

  .hero__content {
    padding-top: 280px;
  }

  h1 {
    max-width: 9ch;
  }

  .intro,
  .guide,
  .diagnosis-band,
  .browse-band {
    grid-template-columns: 1fr;
  }

  .style-grid,
  .style-grid--three,
  .detail-grid,
  .diagnosis-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail__image img {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 700px;
    padding: 20px;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, 1180px);
  }

  .section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .style-grid,
  .style-grid--three,
  .detail-grid,
  .diagnosis-options,
  .browse-columns,
  .filter-form {
    grid-template-columns: 1fr;
  }

  .style-card__link {
    grid-template-rows: 210px 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
