@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
}

/* Petal Pink, drawn from the first bouquet. */
:root {
  --ink:         #f4dddc;
  --ground:      #fcefeb;
  --ground-2:    #f4dddc;
  --deep:        #e9c7ce;
  --paper:       #492d36;
  --muted:       #664452;
  --accent:      #7d4358;
  --sage:        #596047;
  --rule:        rgba(73, 45, 54, 0.26);
  --control:     #8d5c6d;
  --error:       #8f303e;
  --on-photo:    #fff5ed;
  --on-photo-muted: #fce6e5;

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --rhythm: clamp(28px, 5vh, 56px);
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; min-height: 100%; background: var(--deep); }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 70% at 18% 4%, var(--ground) 0%, transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 48%, var(--deep) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Film grain over everything. Fixed, so it reads as emulsion, not as texture
   that scrolls with the content. */
/* Grain is gone. It read as a tutorial effect, and against a saturated ground
   it only muddied the colour. The .grain element is left inert so the pages do
   not need editing; it paints nothing. */
.grain { display: none; }

/* ---------------------------------------------------------------- the mark */
/* One typeface throughout. Left: the S and A of Cormorant Garamond stacked,
   divided by a rose rule. Right: the names, with the Spanish conjunction set
   in italic. Every glyph comes from the same face, so the monogram and the
   wordmark are one alphabet rather than two.
   Scale the whole lockup with --mark-size. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--display);
  font-size: var(--mark-size, 30px);
  line-height: 1;
}

.mark-mono {
  display: grid;
  justify-items: center;
  gap: 0.12em;
  font-weight: 500;
  font-size: 1.5em;
  line-height: 0.8;
}
.mark-mono i {                     /* the rule between the two letters */
  display: block;
  width: 1.0em;
  height: 0.05em;
  min-height: 1px;
  background: var(--accent);
  transition: background 300ms;
}

.mark-sep {                        /* hairline between monogram and names */
  width: 1px;
  align-self: stretch;
  margin: 0.18em 0;
  background: var(--rule);
}

.mark-names {
  display: grid;
  gap: 0.06em;
  justify-items: start;
}
.mark-line1 {
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.mark-line1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.14em;
  margin-left: 0.14em;
  transition: color 300ms;
}
.mark-line2 {
  font-weight: 500;
  font-size: 0.5em;
  letter-spacing: 0.235em;         /* tracked so it measures "Sofia y" */
  text-transform: uppercase;
  white-space: nowrap;
}

.mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a.mark:hover .mark-line1 em, a.mark:hover .mark-mono i { color: var(--paper); }
a.mark:hover .mark-mono i { background: var(--paper); }

/* ---------------------------------------------------------------- masthead */
.masthead, .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(22px, 3.4vw, 40px) var(--pad) 0;
}
.top .mark { --mark-size: clamp(24px, 3vw, 34px); }
.nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  padding-top: 6px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;      /* was 0.2em: heavy tracking crushes Spanish accents */
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  min-height: 24px;            /* WCAG 2.5.8 target size */
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 250ms, border-color 250ms;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--accent); }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------------------------------------------------------------- shared bits */
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.hairline { height: 1px; background: var(--rule); border: 0; margin: 0; }

.btn-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid var(--control);
  color: var(--accent);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 13px 22px;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 250ms, color 250ms, background 250ms;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(73, 45, 54, 0.06); color: var(--paper); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- footer */
/* The rule aligns with the content column, not the viewport: margin and padding
   used to fight each other and threw the footer off the counter's left edge. */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 var(--pad);
  padding: var(--rhythm) 0 clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-link { color: var(--accent); text-decoration: none; transition: color 250ms; }
.foot-link:hover { color: var(--paper); }
.foot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

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