/* ==========================================================================
   FurnitureFlow — brand.css
   Shared design system for landing (furnitureflow-site/) and try (try/).
   NOTE (2026-07-06, marka-tasarim Task 2): this is a synced COPY of
   furnitureflow-site/brand.css. try/ is served as its own webroot in tests
   (SimpleHTTPRequestHandler directory=try/, and test_showcase_e2e.py
   shutil.copytree's try/ alone into a tmp site) — a "../brand.css" link
   would 404 there, so the file is physically duplicated instead. Until a
   build step exists (Task 3+), any token/component edit here must be
   mirrored in furnitureflow-site/brand.css and vice versa.
   ========================================================================== */

:root {
  /* Palette — warm, single light theme. Product photography is the hero;
     the surface stays quiet on purpose. No dark theme. */
  --ff-bg: #faf7f2;
  --ff-ink: #2b2118;
  --ff-mut: #8a7a68;
  --ff-card: #ffffff;
  --ff-line: #e8dfd2;
  --ff-acc: #b45309;
  --ff-acc-deep: #92400e;
  --ff-acc-soft: #f3e3d1;

  /* Type */
  --ff-font-display: Georgia, 'Times New Roman', serif;
  --ff-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --ff-radius: 14px;
  --ff-radius-sm: 8px;
  --ff-shadow: 0 1px 2px rgba(43, 33, 24, 0.04), 0 12px 32px -16px rgba(43, 33, 24, 0.18);
  --ff-shadow-hover: 0 4px 10px rgba(43, 33, 24, 0.06), 0 22px 44px -18px rgba(43, 33, 24, 0.24);
  --ff-container: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ff-bg);
  color: var(--ff-ink);
  font-family: var(--ff-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.ff-container {
  width: 100%;
  max-width: var(--ff-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Furniture-joinery motif: a slim double rule, like contrast welt piping
   on an upholstered seam. Used under eyebrows and as a section divider —
   the one recurring signature detail tied to the product's own imagery. */
.ff-seam {
  display: block;
  width: 46px;
  height: 5px;
  margin: 14px 0 0;
  background:
    linear-gradient(var(--ff-acc), var(--ff-acc)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ff-acc), var(--ff-acc)) 0 4px / 100% 1px no-repeat;
  opacity: 0.85;
}

/* -------------------------------- Header -------------------------------- */
.ff-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ff-line);
}

.ff-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.ff-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.ff-logo img, .ff-logo svg { flex: none; }

.ff-logo-back {
  font-family: var(--ff-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ff-mut);
  margin-right: 2px;
}

.ff-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ff-nav a:not(.ff-btn) {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ff-ink);
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.ff-nav a:not(.ff-btn):hover { opacity: 1; }

/* --------------------------------- Buttons -------------------------------- */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--ff-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--ff-acc);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ff-btn:hover { background: var(--ff-acc-deep); transform: translateY(-1px); }
.ff-btn:active { transform: translateY(0); }

.ff-btn-ghost {
  background: transparent;
  color: var(--ff-ink);
  border-color: var(--ff-line);
}

.ff-btn-ghost:hover {
  background: var(--ff-card);
  border-color: var(--ff-acc);
  color: var(--ff-ink);
  transform: translateY(-1px);
}

.ff-btn-sm { padding: 9px 16px; font-size: 14px; }

.ff-btn[aria-disabled="true"] {
  background: transparent;
  color: var(--ff-mut);
  border-color: var(--ff-line);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------- Cards --------------------------------- */
.ff-card {
  background: var(--ff-card);
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius);
  box-shadow: var(--ff-shadow);
}

.ff-card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ff-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--ff-shadow-hover);
  border-color: #ddceb9;
}

/* ---------------------------------- Badge --------------------------------- */
.ff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ff-acc-soft);
  color: var(--ff-acc-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ----------------------------------- Tabs ---------------------------------- */
.ff-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ff-line);
  background: var(--ff-card);
  color: var(--ff-mut);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ff-tab:hover { color: var(--ff-ink); border-color: #ddceb9; }

.ff-tab[aria-selected="true"],
.ff-tab.active {
  background: var(--ff-ink);
  border-color: var(--ff-ink);
  color: #fff;
}

/* --------------------------------- Footer --------------------------------- */
.ff-footer {
  border-top: 1px solid var(--ff-line);
  padding: 44px 0 28px;
  color: var(--ff-mut);
  font-size: 14.5px;
}

.ff-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ff-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
}

.ff-footer-meta {
  max-width: 340px;
}

.ff-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.ff-footer-contact a {
  text-decoration: none;
  color: var(--ff-ink);
  font-weight: 600;
}

.ff-footer-contact a:hover { color: var(--ff-acc); }

.ff-footer-legal {
  width: 100%;
  border-top: 1px solid var(--ff-line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
}

/* -------------------------------- Utilities -------------------------------- */
.ff-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-acc-deep);
}

.ff-mut { color: var(--ff-mut); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--ff-acc);
  outline-offset: 2px;
}
