/* Alemán Por Derecho local experiment: reset, type, primitives */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* no italics anywhere: browsers render <i>, <em>, <cite>, <address> italic by default */
i, em, cite, address, dfn, var { font-style: normal; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--obsidian);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--obsidian); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
/* two-tone ring: the white gap keeps it visible on obsidian, juniper and photo backgrounds, the obsidian line on light ones */
.cookie__toggle input:focus-visible + .cookie__switch { outline: 2px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.cookie__toggle input:focus-visible { outline: 0; box-shadow: none; }

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

/* skip link: off screen until it takes focus, then pinned top-left above the banner and header */
.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-8);
  background: var(--obsidian); color: var(--white);
  font-size: 0.9375rem; line-height: 1.3; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 4px var(--obsidian);
}
main:focus { outline: none; }

.page-wrapper { border-bottom: 1px solid #d7ccc0; }

/* display type */
.t-display, .t-h1, .t-h3, .t-quote, .t-h5, .t-h6 { font-family: var(--font-display); font-optical-sizing: auto; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--fs-h1); letter-spacing: -0.03em; font-weight: 400; }
.t-display { font-size: var(--fs-display); line-height: 1; font-style: normal; font-weight: 400; }
.t-h3 { font-size: var(--fs-h3); line-height: var(--fs-h3); letter-spacing: -0.01em; font-weight: 400; }
.t-h3--medium { font-weight: 500; }
.t-quote { font-size: var(--fs-quote); line-height: 1.09; letter-spacing: 0; font-weight: 400; }
.t-h5 { font-size: var(--fs-h5); line-height: 1.09; font-weight: 500; }
.t-h6 { font-size: var(--fs-h6); line-height: var(--fs-h6); font-weight: 400; }
.t-body1 { font-size: 1.25rem; line-height: 1.2; }
.t-body3 { font-size: 0.875rem; line-height: 1.5; }
.t-sh2 { font-size: 1.25rem; line-height: 1.25rem; font-weight: 600; padding-top: 0.25rem; align-self: center; }

/* eyebrow pill */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.09;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.375rem 0.5rem 0.3125rem;
  border: 1px solid var(--juniper-800);
  border-radius: var(--r-6);
  color: var(--juniper-800);
}
.eyebrow--glass {
  background: var(--white-10);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--white);
  border-style: none;
  text-align: left;
}
.eyebrow--bare { border: 0; border-radius: 0; padding: 0; }

/* layout primitives */
.gutter { padding-left: 1.25rem; padding-right: 1.25rem; }
.wrap-1040 { max-width: 65rem; margin-left: auto; margin-right: auto; }
.wrap-1168 { max-width: 73rem; margin-left: auto; margin-right: auto; }
.wrap-1200 { max-width: 75rem; margin-left: auto; margin-right: auto; }
.wrap-1204 { max-width: 75.25rem; margin-left: auto; margin-right: auto; }
.wrap-1320 { max-width: 82.5rem; margin-left: auto; margin-right: auto; }
.wrap-1400 { max-width: 100%; }
.pad-y-20 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pad-y-100 { padding-top: 6.25rem; padding-bottom: 6.25rem; }
.pad-y-140 { padding-top: 8.75rem; padding-bottom: 8.75rem; }

@media screen and (max-width: 991px) {
  .pad-y-100 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .pad-y-140 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* placeholder media */
.ph { position: relative; overflow: hidden; background: #e6e2da; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }

/* scroll reveal start state (end state is added by js/motion.js) */
[data-reveal="parent"] > *,
[data-reveal="child"] {
  opacity: 0;
  transform: translateY(20px);
}
.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal="parent"] > *, [data-reveal="child"] { opacity: 1; transform: none; }
  /* no looping decorative drift, no timed transitions or smooth scrolling */
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
