/* ==========================================================================
   Ines Studio — shared styles
   Rebuilt from the 1440px design comp as a fluid, responsive layout.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #f6f1ea;
  --surface: #fbf8f3;
  --surface-cream: #efe6da;
  --dark: #2b211c;
  --dark-soft: #4a3a30;

  /* Ink */
  --ink: #3a2e27;
  --ink-strong: #2b211c;
  --ink-muted: #6b5b4f;
  --ink-faint: #8c7c70;
  --on-dark: #f6f1ea;
  --on-dark-muted: #e6dacb;
  --on-dark-faint: #b8a48c;

  /* Metals */
  --gold: #a9865b;
  --brass: #8a6a43;
  --sand: #c4a57c;
  --sand-soft: #d8c8b2;
  --pale: #e6dacb;
  --line: #cdbba5;

  --danger: #8c3b2a;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid type. Each pairs the comp's 1440px value as the max. */
  --fs-eyebrow: 0.8125rem;
  --fs-body: clamp(1rem, 0.93rem + 0.35vw, 1.1875rem);
  --fs-body-sm: clamp(0.9375rem, 0.91rem + 0.15vw, 1.0625rem);
  --fs-h1: clamp(2.5rem, 1.35rem + 5.1vw, 5.75rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 3vw, 3.75rem);
  --fs-h2-lg: clamp(2.125rem, 1.2rem + 4.1vw, 4.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
  --fs-quote: clamp(1.625rem, 1.1rem + 2.35vw, 3.25rem);

  /* Horizontal page gutter: 24px on phones up to 96px on the comp width. */
  --gutter: clamp(1.5rem, 0.6rem + 4vw, 6rem);
  --maxw: 1440px;

  /* Vertical section rhythm. */
  --section-y: clamp(4.5rem, 2rem + 8vw, 9.375rem);
}

/* --------------------------------------------------------------- reset --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink-strong);
  line-height: 1.08;
}

p {
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ink-strong);
}

em {
  font-style: italic;
}

/* Visible keyboard focus — the comp had none. */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------- layout --- */

.section {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

.section > .inner,
.inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--cream {
  background: var(--surface-cream);
}

/* Two-column split: a fixed-ish lead column beside a flexible body.
   Collapses to one column below 62rem. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}

.split--center {
  align-items: center;
}

@media (max-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Auto-fitting card grids. The min track width sets the breakpoint, so these
   reflow without any media query. */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.5rem, 1rem + 1.5vw, 2rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}

.stack--tight {
  gap: 0.875rem;
}

.stack--loose {
  gap: clamp(2rem, 1rem + 2.5vw, 3.5rem);
}

.stack--center {
  align-items: center;
  text-align: center;
}

/* Lists that are semantic markup but not visually a list. */
.bare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bare-list--ruled {
  border-top: 1px solid var(--pale);
  padding-top: 1.75rem;
}

/* The short paragraph that sits opposite a section heading. */
.section-intro {
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  max-width: 26rem;
}

/* A narrow note sitting beside a call to action. */
.note-beside {
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  max-width: 19rem;
}

.section--dark .note-beside {
  color: var(--sand-soft);
}

/* --------------------------------------------------------------- type --- */

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--brass);
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--sand);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
}

h2 {
  font-size: var(--fs-h2);
}

.h2--lg {
  font-size: var(--fs-h2-lg);
  line-height: 1.04;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

.lede {
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 36ch;
}

.lede--wide {
  max-width: 48ch;
}

.prose {
  font-size: var(--fs-body-sm);
  line-height: 1.75;
}

.prose--muted {
  color: var(--ink-muted);
}

.accent {
  color: var(--brass);
}

.section--dark .accent {
  color: var(--sand);
}

.rule {
  width: 11.25rem;
  max-width: 50%;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.numeral {
  font-family: var(--display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  line-height: 1;
  color: var(--gold);
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2.125rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.btn--solid {
  background: var(--dark);
  color: var(--on-dark);
}

.btn--solid:hover {
  background: var(--dark-soft);
  color: var(--on-dark);
}

.btn--gold {
  background: var(--sand);
  color: var(--ink-strong);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--ink-strong);
}

.btn--line {
  border-color: var(--ink-strong);
  color: var(--ink-strong);
}

.btn--line:hover {
  background: var(--ink-strong);
  color: var(--on-dark);
}

.section--dark .btn--line {
  border-color: var(--sand);
  color: var(--on-dark);
}

.section--dark .btn--line:hover {
  background: var(--sand);
  color: var(--ink-strong);
}

.btn--sm {
  padding: 0.9375rem 1.625rem;
}

.btn--pill {
  border-radius: 999px;
}

/* A row of actions that wraps instead of overflowing on narrow screens. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.actions--center {
  justify-content: center;
}

.actions__note {
  font-size: 0.8125rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section--dark .actions__note {
  color: var(--sand-soft);
}

/* ------------------------------------------------------------- fields --- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.field__label {
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field__input {
  height: 3.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink-strong);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.field__input:focus {
  border-color: var(--ink-strong);
}

.field__input::placeholder {
  color: var(--ink-faint);
}

/* -------------------------------------------------- image placeholders --- */

/* The comp ships flat colour blocks with instructional labels where the
   client's photography goes. Kept as-is, with a real aspect ratio so they
   reflow instead of relying on fixed pixel heights. */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #5a4a40;
  background: var(--pale);
}

.ph--sand {
  background: var(--sand-soft);
}

.ph--cream {
  background: var(--surface-cream);
}

.ph--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}

/* ---------------------------------------------------------- animation --- */

.rise {
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.45s; }
.d3 { animation-delay: 0.75s; }
.d4 { animation-delay: 1.05s; }
.d5 { animation-delay: 1.35s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.underline {
  transform-origin: left;
  animation: line 1.6s cubic-bezier(0.6, 0.1, 0.2, 1) 1.2s both;
}

@keyframes line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.card {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(43, 33, 28, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
