/* Studio Maui — base theme. Derived from studiomaui.co.nz.
   Link this BEFORE app-specific CSS. Build on the tokens + classes below. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* palette — warm cream + near-black, monochrome */
  --black: #0a0a0a;
  --ink: #0a0a0a;          /* primary text */
  --paper: #f5f4f0;        /* page background */
  --surface: #ffffff;      /* raised cards / inputs */
  --line: #e8e7e3;         /* hairline borders / dividers */
  --grey-mid: #999;        /* muted text, labels */
  --grey-dark: #333;       /* body copy */
  --ink-inverse: #f5f4f0;  /* text on dark surfaces */

  /* type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  /* motion + shape */
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 0px;

  /* spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 5rem;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* ---- typography ---- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0; }
p  { font-size: 0.95rem; line-height: 1.8; color: var(--grey-dark); }
em { font-style: italic; }

/* uppercase tracked micro-label — the signature detail */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* ---- layout ---- */
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }

/* ---- buttons ---- */
.btn-outline, .btn-solid {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ink-inverse); }
.btn-solid { background: var(--ink); color: var(--ink-inverse); }
.btn-solid:hover { background: transparent; color: var(--ink); }
button:disabled { opacity: 0.4; cursor: default; }

/* ---- form controls ---- */
input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; line-height: 1.6; }
::placeholder { color: var(--grey-mid); }

/* ---- surfaces ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.divider { height: 1px; background: var(--line); border: 0; }

/* status pill */
.pill {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--grey-mid);
}
.pill.active { border-color: var(--ink); color: var(--ink); }

/* dark / inverted block */
.on-dark { background: var(--black); color: var(--ink-inverse); }
.on-dark p, .on-dark .label { color: rgba(245, 244, 240, 0.5); }

/* fade-up reveal (optional; add/remove .visible via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
