/* ============================================================
   TMM Creative Studio — site styles
   Plain CSS, no preprocessor. Design tokens live in :root.
   Type scale: Cormorant Garamond (display), Jost (UI/body),
   Pinyon Script (handwritten accent). See fonts.css.
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #F4EDDE;
  --paper-tint: #FBF5E9;
  --alt: #ECE0CB;
  --card: #FAF4E8;
  --prodcard: #E6D6BC;

  /* Lines */
  --line: rgba(58, 42, 30, 0.10);
  --line-strong: rgba(58, 42, 30, 0.18);
  --nav-bg: rgba(244, 237, 222, 0.85);

  /* Ink / text */
  --ink: #3A2A1E;
  --ink-soft: #6B5743;
  --muted: #9E8A72;

  /* Accent */
  --accent: #B0834F;
  --accent-deep: #74543A;

  /* Dark sections */
  --dark: #3A2A1E;
  --dark-2: #2E211A;
  --on-dark: #F4EDDE;
  --on-dark-muted: #B7A78C;
  --on-dark-line: rgba(244, 237, 222, 0.30);
  --dark-accent: #D8C29B;

  /* Effects */
  --tile-overlay: rgba(58, 42, 30, 0.60);
  --watermark: rgba(244, 237, 222, 0.05);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Segoe Script", cursive;

  --maxw: 1280px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}

p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
}

.section { padding: clamp(56px, 7vw, 108px) 0; }

.bg-paper { background: var(--paper); }
.bg-alt   { background: var(--alt); }
.bg-card  { background: var(--card); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 16px;
}

.script { font-family: var(--script); color: var(--accent-deep); line-height: 1; }

.diamond {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid  { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--dark-2); }
.btn--outline { color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { color: var(--on-dark); border-color: var(--on-dark-line); }
.btn--ghost-light:hover { border-color: var(--on-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 52px);
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-left: 0.2em;
}
.brand-rule { width: 1px; height: 22px; background: var(--line-strong); }
.brand-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { border-bottom-color: var(--accent); }
.nav-links a.is-active { border-bottom-color: var(--accent); color: var(--accent-deep); }

.nav-cta {
  font-size: 11px;
  padding: 12px 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 120% at 86% 8%, var(--paper-tint) 0%, var(--paper) 58%);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6.5vw, 96px) clamp(20px, 4vw, 52px);
}
.hero-copy { flex: 1 1 380px; }
.hero-title {
  font-size: clamp(44px, 5.8vw, 74px);
  line-height: 1.0;
  letter-spacing: 0.004em;
  margin: 0 0 24px;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 460px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-media { flex: 1 1 340px; position: relative; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  object-fit: cover;
  border-radius: 10px;
}
.hero-card {
  position: absolute;
  left: 18px;
  bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(30, 27, 26, 0.5);
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 230px;
}
.hero-card .script { font-size: 28px; margin-bottom: 7px; }
.hero-card p { font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-list {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 22px clamp(20px, 4vw, 52px);
  list-style: none;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-title {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.link-arrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ---------- Category grid ---------- */
.category-grid { display: flex; flex-direction: column; gap: 22px; }
.category-row { display: flex; flex-wrap: wrap; gap: 22px; }
.category-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 22px; }
.category-pair { display: flex; gap: 22px; }

.category-tile {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  min-height: 250px;
  flex: 1 1 0;
}
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-tile:hover img { transform: scale(1.04); }
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, var(--tile-overlay) 100%);
}
.category-tile .tile-caption {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  padding: 24px 26px;
}
.tile-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.1;
  color: var(--on-dark);
}
.tile-link {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-accent);
  margin-top: 6px;
  display: block;
}
.category-tile--feature { flex: 1.5 1 320px; min-height: 524px; }
.category-tile--feature .tile-title { font-size: 30px; }
.category-tile--wide { min-height: 300px; flex: 1 1 220px; }

/* ---------- Product cards ---------- */
.product-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.product-card { flex: 1 1 210px; }
.product-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--prodcard);
}
.product-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--alt);
  border-radius: 20px;
  padding: 5px 11px;
}
.product-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 16px 0 4px;
}
.product-desc { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--ink); }
.product-action {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- Split sections (custom / story) ---------- */
.split { display: flex; flex-wrap: wrap; align-items: stretch; }
.split-media { flex: 1 1 340px; min-height: 420px; position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Gentle edge-sharpen for softer source photos (SVG filter defined in-page) */
.img-sharpen { filter: url(#tmm-sharpen); }
.split-body {
  flex: 1 1 400px;
  padding: clamp(48px, 5.5vw, 92px) clamp(28px, 4.5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; margin: 0 0 28px; }

.steps { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  color: var(--accent);
  line-height: 1;
  min-width: 34px;
}
.step-title { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.step-text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.story-body p { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.story-sign { font-family: var(--script); font-size: 42px; line-height: 1; color: var(--accent-deep); margin-top: 10px; }
.story-role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Testimonials ---------- */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.stars { color: var(--accent); letter-spacing: 2px; }
.testimonial-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.testimonial {
  flex: 1 1 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 32px;
}
.testimonial .stars { display: block; font-size: 13px; letter-spacing: 3px; margin-bottom: 18px; }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 22px;
}
.cite { font-family: var(--sans); font-weight: 500; font-size: 12.5px; font-style: normal; color: var(--ink); display: block; }
.cite-source { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  text-align: center;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 52px);
}
.cta-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(200px, 32vw, 400px);
  letter-spacing: 0.1em;
  color: var(--watermark);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-inner .eyebrow { color: var(--dark-accent); letter-spacing: 0.34em; }
.cta-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; color: var(--on-dark); margin: 0 0 22px; }
.cta-lead { font-size: 16px; line-height: 1.7; color: var(--on-dark-muted); margin: 0 auto 34px; max-width: 460px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  padding: clamp(52px, 5.5vw, 76px) clamp(20px, 4vw, 52px) 0;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-brand { flex: 2 1 260px; }
.footer-brand .brand-mark { color: var(--on-dark); }
.footer-brand .brand-rule { background: var(--on-dark-line); }
.footer-brand .brand-sub { color: var(--dark-accent); }
.footer-tagline {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--on-dark-muted);
  margin: 18px 0 20px;
  max-width: 280px;
}
.social { display: flex; gap: 14px; }
.social-link { color: var(--on-dark-muted); display: inline-flex; transition: color 0.2s ease; }
.social-link:hover { color: var(--on-dark); }

.footer-col { flex: 1 1 140px; }
.footer-heading {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 18px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-list a { font-size: 13px; color: var(--on-dark-muted); transition: color 0.2s ease; }
.footer-list a:hover { color: var(--on-dark); }

.footer-news { flex: 1.4 1 220px; }
.footer-news p { font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); margin: 0 0 16px; }
.news-form {
  display: flex;
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
  overflow: hidden;
  max-width: 280px;
}
.news-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12.5px;
  color: var(--on-dark);
}
.news-form input::placeholder { color: var(--on-dark-muted); }
.news-form input:focus-visible { outline: none; }
.news-form button {
  padding: 12px 18px;
  border: 0;
  background: var(--dark-accent);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-2);
  cursor: pointer;
}
.news-form button:hover { background: #e6d2ad; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 30px;
  font-size: 11.5px;
  color: var(--on-dark-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: var(--on-dark-muted); }
.footer-legal a:hover { color: var(--on-dark); }

/* ---------- Generic page header (interior pages) ---------- */
.page-head {
  background: radial-gradient(120% 120% at 86% 8%, var(--paper-tint) 0%, var(--paper) 58%);
  padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; margin: 0 0 18px; }
.page-head .lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 560px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 2rem 0 0.6rem; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 1rem; }
.prose ul { padding-left: 1.1rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-form .field { display: flex; flex-direction: column; margin-bottom: 18px; }
.contact-form label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176, 131, 79, 0.18); }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.5; min-height: 1.2em; color: var(--ink-soft); }
.form-status.is-success { color: var(--accent-deep); font-weight: 500; }
.form-status.is-error { color: #a13d2d; font-weight: 500; }
.contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.contact-aside { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 28px 30px; }
.contact-aside h2 { font-size: 24px; margin-bottom: 10px; }
.contact-aside p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 8px; }
.contact-aside a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 4vw, 52px) 20px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { border-bottom-color: var(--line); }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 560px) {
  .category-pair { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .hero-title { font-size: clamp(34px, 9vw, 44px); }
  .page-head h1 { font-size: clamp(32px, 8.5vw, 46px); }
  .split-title,
  .cta-title,
  .section-title { font-size: clamp(28px, 7.5vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
