/* TreeLoso Studio — static site styles. Mobile-first, no framework. */
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/librebaskerville-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/librebaskerville-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/librebaskerville-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sourcesans3-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sourcesans3-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sourcesans3-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sourcesans3-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f6f1e8;
  --paper-deep: #ebe4d8;
  --ink: #1c1916;
  --ink-soft: #5a5248;
  --line: #d6cfc3;
  --card: #fffdf9;
  --forest: #2b3c32;
  --btn: #1c1916;
  --btn-text: #f6f1e8;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.06), 0 8px 24px rgba(28, 25, 22, 0.05);
  --radius: 12px;
  --max: 1120px;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Libre Baskerville", "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.35rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand img {
  width: 28px;
  height: auto;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
}
.nav-summary {
  list-style: none;
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-toggle-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
}
.btn-primary:hover {
  background: var(--forest);
  color: var(--btn-text);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(28, 25, 22, 0.03);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.header-cta { margin-left: 0.25rem; }

@media (max-width: 720px) {
  .nav-toggle { display: block; position: relative; }
  .nav-toggle-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 16rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }
  .nav-toggle[open] .site-nav { display: flex; }
  .site-nav a, .site-nav .btn {
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
  }
  .header-cta { margin-left: 0; width: 100%; }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.hero-photo {
  display: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 900px) {
  .hero-photo { display: block; }
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.9rem;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Sections */
.section { padding: 3.25rem 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.band { background: var(--paper-deep); }
hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(28, 25, 22, 0.07), 0 14px 32px rgba(28, 25, 22, 0.08);
  color: inherit;
}
.card-media {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.card-body h3 {
  font-size: 1.02rem;
  margin: 0;
}
.card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.4rem;
}
a.card:hover .card-link { color: var(--forest); }

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.step {
  padding: 0.25rem 0;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--forest);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.98rem; }

/* Page intro (about / faq / 404) */
.page-intro {
  padding: clamp(2.4rem, 6vw, 4.25rem) 0 1.5rem;
}
.page-intro p { max-width: 40rem; font-size: 1.1rem; }
.prose { max-width: 42rem; padding-bottom: 3.5rem; }
.prose h2 { margin-top: 2.2rem; }
.prose a { text-underline-offset: 2px; }

/* FAQ */
.faq-list {
  max-width: 46rem;
  padding-bottom: 3.5rem;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 {
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}
.faq-item p { margin: 0 0 0.7rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.2rem;
  background: var(--paper);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  .footer-brand-col { grid-column: auto; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.footer-brand img { width: 22px; height: auto; }
.footer-brand span {
  font-family: var(--serif);
  font-weight: 700;
}
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.4rem; }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none !important; }
}
@media (min-width: 721px) {
  .nav-toggle { display: none !important; }
}

/* Collections row */
.collections .section-head { max-width: 42rem; }
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (min-width: 960px) {
  .collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.15rem;
  }
}
.collection-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.collection-tile:hover,
a.collection-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(28, 25, 22, 0.07), 0 14px 32px rgba(28, 25, 22, 0.08);
  color: inherit;
}
.collection-media {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  overflow: hidden;
}
.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.collection-body {
  padding: 0.8rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.collection-body h3 {
  font-size: 0.98rem;
  margin: 0;
}
.collection-body p {
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 399px) {
  .collection-grid { gap: 0.7rem; }
  .collection-body { padding: 0.7rem 0.7rem 0.8rem; }
  .collection-body h3 { font-size: 0.92rem; }
  .collection-body p { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-tile { transition: none; }
}

@media (max-width: 959px) {
  .collection-tile:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .collection-tile:last-child .collection-media {
    flex: 0 0 42%;
    max-width: 220px;
    aspect-ratio: 4 / 5;
  }
  .collection-tile:last-child .collection-body {
    justify-content: center;
    padding: 1rem 1.15rem;
  }
  .collection-tile:last-child .collection-body h3 {
    font-size: 1.05rem;
  }
  .collection-tile:last-child .collection-body p {
    font-size: 0.9rem;
  }
}
@media (min-width: 960px) {
  .collection-body {
    min-height: 5.75rem;
  }
}
