/* Setu Textiles — Field Notes / Editorial Ledger
   Direction A: editorial, not boxy. Generous whitespace, thin rules, serif display. */

:root {
  --forest: #1E4D3B;
  --forest-deep: #14352A;
  --sand: #F5F1E8;
  --ink: #161A18;
  --clay: #B85C38;
  --clay-deep: #A14E2E;
  --forest-soft: #2c6a52;
  --rule: rgba(22, 26, 24, 0.18);
  --rule-strong: rgba(22, 26, 24, 0.45);
  --paper: #FBF8F1;
  --muted: #5a5f5c;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 64ch;
  --page-max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s ease;
}
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  display: inline-block;
}

.eyebrow.muted { color: var(--muted); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule.strong { border-top-color: var(--rule-strong); }

/* Layout */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: var(--measure); }

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  border: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--forest); }
.brand .mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}
.brand .mark svg { width: 100%; height: 100%; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  border: 0;
  color: var(--ink);
  font-size: 0.92rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav a:hover { color: var(--forest); }
.nav a[aria-current="page"] {
  color: var(--forest);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--forest);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  font-weight: 500;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--sand);
}

/* Hero (editorial) */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-linen.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero-eyebrow {
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-weight: 350;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--forest);
  font-weight: 400;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 56ch;
  line-height: 1.6;
}
.hero-figure {
  margin-top: 2.5rem;
  position: relative;
}
.hero-figure .photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d9d2bf 0%, #c2b89e 100%);
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.hero-figure .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,26,24,0) 50%, rgba(22,26,24,0.18) 100%);
}
.hero-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Pull quote */
.pullquote {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: clamp(2rem, 5vw, 4rem) 0;
  text-align: left;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  font-weight: 400;
  font-style: italic;
  max-width: 22ch;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Narrative section */
.narrative {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.narrative .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .narrative.split .grid {
    grid-template-columns: 220px 1fr;
  }
}
.narrative .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}
.narrative p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.narrative p.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  max-width: 32ch;
}

/* Margin notes */
.margin-note {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--forest);
  padding: 0.4rem 0 0.4rem 0.9rem;
  margin: 1.5rem 0;
  max-width: 30ch;
}

/* Timeline (how we work) */
.timeline {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  position: relative;
}
@media (max-width: 800px) {
  .timeline-track { grid-template-columns: 1fr; }
  .timeline-track .step { border-top: 1px solid var(--rule); }
  .timeline-track .step:first-child { border-top: 0; }
}
.timeline-track .step {
  padding: 1.8rem 1.2rem 1.4rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.timeline-track .step:last-child { border-right: 0; }
.timeline-track .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--clay);
  margin-bottom: 0.5rem;
  display: block;
}
.timeline-track h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.timeline-track p {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
}

/* Verification ledger strip */
.ledger {
  background: var(--sand);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.4rem;
}
.ledger .sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2.2rem;
  font-size: 0.98rem;
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.ledger-grid .item {
  padding: 1.4rem 1.2rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.ledger-grid .item:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) {
  .ledger-grid .item:nth-child(2n) { border-right: 1px solid var(--rule); }
  .ledger-grid .item:last-child { border-right: 0; }
}
.ledger-grid .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}
.ledger-grid .role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}
.ledger-grid p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Service page editorial sections */
.editorial-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}
.editorial-section:first-of-type { border-top: 0; }
.editorial-section .lede-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .editorial-section .lede-block { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
}
.editorial-section h2 {
  margin-top: 0;
}
.editorial-section .body p { font-size: 1.02rem; line-height: 1.7; }

.detail-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
}
.detail-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.detail-list .k {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}
.detail-list .v {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
@media (max-width: 600px) {
  .detail-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* Photo with caption */
.photo-block {
  margin: 2rem 0;
}
.photo-block .photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9d2bf 0%, #c2b89e 100%);
  background-size: cover;
  background-position: center;
}
.photo-block .photo.portrait { aspect-ratio: 3 / 4; }
.photo-block .photo.wide { aspect-ratio: 21 / 9; }
.photo-block figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Two-up with photo + copy */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 800px) {
  .two-up { grid-template-columns: 1fr 1fr; }
}

/* Compliance table-as-essay */
.compliance-essay {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
@media (min-width: 800px) {
  .compliance-essay { grid-template-columns: 240px 1fr; gap: 3rem; }
}
.compliance-essay h3 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 500;
}
.compliance-essay .label-row {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

/* RFQ form */
.rfq-form {
  max-width: 640px;
  margin: 2rem 0 0;
}
.field {
  display: block;
  margin-bottom: 1.4rem;
}
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 77, 59, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

.btn {
  display: inline-block;
  appearance: none;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--sand); }
.btn.accent { background: var(--clay); border-color: var(--clay); color: #ffffff; }
.btn.accent:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #ffffff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }

/* Site footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) {
  .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a {
  border: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--forest); }
.site-footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 1rem;
}
.site-footer .meta {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Disclaimer block (compliance page) */
.disclaimer {
  background: var(--sand);
  border: 1px solid var(--rule-strong);
  padding: 1.5rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.disclaimer strong { color: var(--forest); }

/* Utility */
.spaced > * + * { margin-top: 1.2rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.italic { font-style: italic; }
.divider-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--muted);
  border-radius: 50%;
  margin: 0 0.6rem;
  vertical-align: middle;
}

/* Page title block */
.page-head {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.page-head h1 {
  font-weight: 350;
  max-width: 18ch;
}
.page-head .lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 56ch;
  margin-top: 1.2rem;
}

/* Anchor (one-line promise, every page) */
.promise-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.01em;
}

/* Back to top */
#back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 100;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--ink);
  color: var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(22, 26, 24, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, visibility 0.25s;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--forest); color: var(--sand); }
