/* Jamuna Furniture — coming-soon page */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #ffffff;
  /* Contrast ratios against the white sheet, all measured: */
  --ink: #14110f;       /* 18.8:1  AAA — headings, button fill */
  --ink-soft: #423d3a;  /* 10.7:1  AAA — body copy */
  --ink-faint: #6b6663; /*  5.7:1  AA  — footer, placeholder */
  --accent: #7d5124;    /*  6.8:1  AA  — eyebrow */
  --line: #e2ded9;      /* borders only, never text */
  --accent-ink: #ffffff;
  --ring: #b98246;
  --wrap: 720px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inter's optical sizing when the variable font is available */
@supports (font-variation-settings: normal) {
  body { font-optical-sizing: auto; }
}

/* The photograph, held behind everything. Fixed layers rather than
   background-attachment: fixed, which iOS Safari does not handle. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: url("/assets/img/background.avif") center / cover no-repeat;
}

/* White veil over the text half. It holds full strength across the whole
   content column, then falls away over a wide band so it never ends on a hard
   edge. rgba(255,255,255,0) rather than `transparent`, which some browsers
   interpolate through grey. */
body::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .92) 0%,
    rgba(255, 255, 255, .92) 50%,
    rgba(255, 255, 255, .58) 63%,
    rgba(255, 255, 255, 0) 78%
  );
}

h1, h2 {
  margin: 0 0 .6em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); }
h2 { font-size: 1.05rem; letter-spacing: -0.005em; }

p { margin: 0 0 1rem; }

a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* Content keeps to the veiled half so it never crosses onto the bare photo. */
.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 50%;
}

/* Too narrow to split: the veil covers everything and the content fills it. */
@media (max-width: 900px) {
  .page { width: 100%; }
  body::after { background: rgba(255, 255, 255, .92); }
}

/* ---------- top bar ---------- */

.topbar { border-bottom: 1px solid var(--line); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 28px; height: 28px;
  /* squared off like a furniture leg, with one eased corner */
  border-radius: 2px 2px 2px 9px;
  background: linear-gradient(140deg, var(--accent), #d9a066);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Contact details, right-aligned against the brand */
.topbar-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.topbar-contact a {
  font-size: .86rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.topbar-contact a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .topbar-contact a { font-size: .78rem; }
}

/* Kept for 404.html, which shows the phone number on its own */
.topbar-phone {
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  text-decoration: none;
}
.topbar-phone:hover { color: var(--ink); }

/* ---------- main ---------- */

main { display: grid; align-items: center; }

.main-inner { padding-block: clamp(40px, 8vw, 84px); }

.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 2rem;
}

/* ---------- notify form ---------- */

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.notify input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .96rem;
}
.notify input::placeholder { color: var(--ink-faint); }
.notify input:hover { border-color: #d5d1cd; }

.btn {
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, opacity .12s ease;
  white-space: nowrap;
}
.btn:hover { background: #2c2724; }
.btn:disabled { opacity: .55; cursor: progress; }

.status {
  margin: 12px 0 0;
  font-size: .92rem;
  min-height: 1.4em;
}
.status.ok { color: #1f6b45; }
.status.err { color: #b3261e; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  font-size: .85rem;
  color: var(--ink-faint);
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-faint); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

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