/* Fontes locais (static/fonts/) — nunca CDN */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

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

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Cores */
  --c-ivory: #f7f4ee;
  --c-ink: #121212;
  --c-sepia: #8a6f55;
  --c-gold: #b99a5b;
  --c-smoke: #6b6660;
  --c-veil: rgb(18 18 18 / 0.55);
  --c-line: rgb(138 111 85 / 0.45);

  /* Tipografia */
  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-eyebrow: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "EB Garamond", "Times New Roman", serif;

  --fs-xs: 0.8rem;
  --fs-sm: 0.95rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-hero: clamp(3rem, 1.5rem + 9vw, 9rem);

  --tracking-title: 0.32em;
  --tracking-eyebrow: 0.18em;

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;
  --gutter: var(--sp-4);

  /* Raios */
  --r-none: 0;
  --r-sm: 2px;
  --r-md: 4px;

  /* Sombras */
  --shadow-soft: 0 1px 2px rgb(18 18 18 / 0.08), 0 8px 24px rgb(18 18 18 / 0.06);
  --shadow-lift: 0 2px 4px rgb(18 18 18 / 0.1), 0 18px 40px rgb(18 18 18 / 0.14);

  /* Movimento */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-slow: 1.2s;

  /* Layout */
  --w-content: 68rem;
  --w-prose: 36rem;
}

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background-color: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Grão de papel sépia sutil, sem imagem externa */
  background-image: radial-gradient(rgb(138 111 85 / 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--c-gold);
  outline-offset: var(--sp-2);
}

/* Acessibilidade: respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Versalete nos títulos, como "ALFAIATARIA HOTELEIRA" no logotipo */
.smallcaps {
  font-variant: small-caps;
  letter-spacing: var(--tracking-title);
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--f-eyebrow);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--c-sepia);
  letter-spacing: var(--tracking-eyebrow);
}

/* Filete horizontal com losango central ◇ (mesmo motivo do logotipo) */
.ornament {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: min(100%, 18rem);
  height: var(--sp-4);
  margin-inline: auto;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--c-gold);
  transform-origin: center;
}

.ornament::before {
  transform-origin: right center;
}

.ornament::after {
  transform-origin: left center;
}

.ornament__diamond {
  flex: none;
  width: var(--sp-2);
  height: var(--sp-2);
  border: 1px solid var(--c-gold);
  transform: rotate(45deg);
}

/* Textura de papel: ruído via SVG inline, sem arquivo externo */
.paper-grain {
  position: relative;
  isolation: isolate;
}

.paper-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.54  0 0 0 0 0.44  0 0 0 0 0.33  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layout base */
.container {
  width: min(100% - var(--gutter) * 2, var(--w-content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgb(247 244 238 / 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.site-header__logo img {
  width: auto;
  height: 2.75rem;
}

.site-footer {
  padding-block: var(--sp-7);
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-smoke);
}

/* Telas largas */
@media (min-width: 48rem) {
  body {
    font-size: 1.2rem;
  }

  .container {
    width: min(100% - var(--sp-7) * 2, var(--w-content));
  }
}
