/* ==========================================================================
   Barloso: tokens, reset, typography, layout, buttons, forms, small components
   ========================================================================== */

:root {
  --navy-950: #050e1a;
  --navy-900: #071526;
  --navy-800: #0b1f3a;
  --navy-700: #143458;
  --navy-600: #1d4570;
  --gold-300: #ecd08e;
  --gold-400: #e0b85a;
  --gold-500: #c9a45c;
  --gold-600: #a98536;
  --gold-700: #7d5f1f;
  --ivory: #f6efdf;
  --paper: #faf7f0;
  --sand: #efe8d8;
  --stone: #d9d0bd;
  --ink: #12161d;
  --muted: #566070;
  --line: rgba(18, 22, 29, 0.14);

  /* Role tokens. On the "feature" surfaces (dark in the dark theme) text and hairlines are
     built from --on-rgb; theme.css inverts it for the light theme. */
  --on-rgb: 246 239 223;
  --line-light: rgb(var(--on-rgb) / 0.2);
  color-scheme: light;

  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --wrap: 82rem;
  --wrap-narrow: 52rem;
  --section: clamp(4.5rem, 10vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --topbar-h: 2.5rem;
  --header-h: 5rem;
  --chrome-h: 7.5rem;
}

@media (max-width: 1100px) {
  :root {
    --header-h: 4rem;
    --topbar-h: 0rem;
    --chrome-h: 4rem;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 112.5%;
  }
}

@media (min-width: 2400px) {
  html {
    font-size: 137.5%;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-400);
  color: var(--navy-900);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ivory);
  color: var(--navy-900);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------------------ Typography */

.t-display,
.sec-title,
.h-serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.98;
}

.t-display {
  font-size: clamp(3.1rem, 8.4vw, 8.6rem);
  font-weight: 300;
  line-height: 0.92;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.4vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  font-weight: 300;
}

h2,
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.9vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.012em;
  font-weight: 400;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  font-weight: 500;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

em,
.h-serif em {
  font-style: italic;
  color: var(--gold-700);
}

.on-dark em,
.section--dark em,
.hero em,
.page-head em,
.section--navy em {
  color: var(--gold-400);
}

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 38rem;
}

.on-dark .lead,
.section--dark .lead,
.section--navy .lead {
  color: rgb(var(--on-rgb) / 0.78);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.eyebrow--light,
.section--dark .eyebrow,
.on-dark .eyebrow,
.section--navy .eyebrow {
  color: var(--gold-400);
}

.eyebrow-line {
  display: inline-block;
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.num {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
}

/* ---------------------------------------------------------------- Layout */

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.wrap--wide {
  width: min(104rem, calc(100% - 2 * var(--gutter)));
}

.wrap--narrow {
  width: min(var(--wrap-narrow), calc(100% - 2 * var(--gutter)));
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.section--dark {
  background: var(--navy-900);
  color: var(--ivory);
}

.section--navy {
  background: var(--navy-800);
  color: var(--ivory);
}

.section--sand {
  background: var(--sand);
}

.section--ivory {
  background: var(--ivory);
}

.section--paper {
  background: var(--paper);
}

.sec-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

.sec-text {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.section--dark .sec-text,
.on-dark .sec-text,
.section--navy .sec-text {
  color: rgb(var(--on-rgb) / 0.74);
}

.sec-head--center .sec-text {
  margin-inline: auto;
}

.sec-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sec-head--row .sec-title {
  max-width: 40rem;
}

/* Photographs */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph--4x3 {
  aspect-ratio: 4 / 3;
}

.ph--3x4 {
  aspect-ratio: 3 / 4;
}

.ph--4x5 {
  aspect-ratio: 4 / 5;
}

.ph--1x1 {
  aspect-ratio: 1;
}

.ph--16x9 {
  aspect-ratio: 16 / 9;
}

.ph--wide {
  aspect-ratio: 21 / 9;
}

/* ---------------------------------------------------------- Buttons */

.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--ivory);
  --btn-fill: var(--gold-400);
  --btn-fill-fg: var(--navy-900);
  --btn-bd: var(--btn-bg);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.05rem 1.75rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fill-fg);
  border-color: var(--btn-fill);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn-label {
  white-space: nowrap;
}

.btn-ico {
  position: relative;
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  overflow: hidden;
  flex: none;
}

.btn-ico .icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
  transition: transform 0.5s var(--ease);
}

.btn-ico .icon:last-child {
  transform: translateX(-160%);
}

.btn:hover .btn-ico .icon:first-child,
.btn:focus-visible .btn-ico .icon:first-child {
  transform: translateX(160%);
}

.btn:hover .btn-ico .icon:last-child,
.btn:focus-visible .btn-ico .icon:last-child {
  transform: none;
}

.btn--gold {
  --btn-bg: var(--gold-400);
  --btn-fg: var(--navy-900);
  --btn-fill: var(--ivory);
  --btn-fill-fg: var(--navy-900);
}

.btn--light {
  --btn-bg: var(--ivory);
  --btn-fg: var(--navy-900);
  --btn-fill: var(--gold-400);
  --btn-fill-fg: var(--navy-900);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--navy-800);
  --btn-fill: var(--navy-800);
  --btn-fill-fg: var(--ivory);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-bd: rgb(var(--on-rgb) / 0.45);
  --btn-fill: var(--ivory);
  --btn-fill-fg: var(--navy-900);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: transparent;
  --btn-fill: transparent;
  --btn-fill-fg: var(--gold-600);
  padding-inline: 0;
}

.btn--ghost .btn-label {
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 0.35rem;
  transition: background-size 0.5s var(--ease);
}

.btn--ghost:hover .btn-label {
  background-size: 0 1px;
  background-position: right bottom;
}

.btn--sm {
  padding: 0.8rem 1.25rem;
  font-size: 0.68rem;
}

.btn--lg {
  padding: 1.3rem 2.2rem;
}

.btn--block {
  width: 100%;
}

.btn-round {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn-round .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-round:hover,
.btn-round:focus-visible {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-900);
}

.on-dark .btn-round,
.section--dark .btn-round,
.section--navy .btn-round {
  border-color: var(--line-light);
}

.link-u {
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  padding-bottom: 0.18em;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
}

.link-u:hover,
.link-u:focus-visible {
  background-position: left bottom;
  background-size: 100% 1px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-arrow .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.45s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(0.4rem);
}

.demo-tag {
  display: inline-block;
  vertical-align: middle;
  margin-inline: 0.4em;
  padding: 0.18rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gold-700);
  background: rgba(201, 164, 92, 0.12);
}

.section--dark .demo-tag,
.bcard--overlay .demo-tag,
.on-dark .demo-tag,
.section--navy .demo-tag {
  color: var(--gold-300);
}

/* ------------------------------------------------------------ Forms */

.form {
  display: grid;
  gap: 1.75rem;
}

.form-row {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  position: relative;
  display: grid;
  gap: 0.4rem;
}

.field label,
.field-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  appearance: none;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 0.7rem) 55%, calc(100% - 0.35rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form--dark .field label,
.section--dark .field label,
.section--navy .field label {
  color: rgb(var(--on-rgb) / 0.65);
}

.form--dark .field input,
.form--dark .field select,
.form--dark .field textarea,
.section--dark .field input,
.section--dark .field select,
.section--dark .field textarea,
.section--navy .field input,
.section--navy .field select,
.section--navy .field textarea {
  color: var(--ivory);
  border-color: var(--line-light);
}

.section--dark .field option,
.form--dark .field option,
.section--navy .field option {
  color: var(--ink);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  appearance: none;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  border: 1px solid var(--navy-800);
  background: transparent;
  display: grid;
  place-content: center;
  transition: background 0.3s var(--ease);
}

.check input::after {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--ivory);
  border-bottom: 2px solid var(--ivory);
  transform: rotate(-45deg) scale(0);
  margin-top: -0.12rem;
  transition: transform 0.3s var(--ease);
}

.check input:checked {
  background: var(--navy-800);
}

.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(201, 164, 92, 0.14);
  font-size: 0.95rem;
}

/* Newsletter */

.nl-form {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  max-width: 28rem;
}

.nl-form input {
  flex: 1;
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
}

.nl-form input::placeholder {
  color: currentColor;
  opacity: 0.55;
}

.nl-form input:focus {
  outline: 0;
}

.nl-send {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  transition: transform 0.4s var(--ease), color 0.3s;
}

.nl-send:hover {
  transform: translateX(0.3rem);
  color: var(--gold-400);
}

.nl-form--dark {
  color: var(--ivory);
}

/* -------------------------------------------------- Breadcrumbs, pagination */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  list-style: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.5;
}

.crumbs a {
  opacity: 0.75;
  transition: opacity 0.3s;
}

.crumbs a:hover {
  opacity: 1;
}

.crumbs li[aria-current] {
  color: var(--gold-400);
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.25rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pagination a.page-numbers:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--ivory);
}

.pagination .page-numbers.current {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-900);
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

.pagination .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* ------------------------------------------------------------- Tables */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.table caption {
  caption-side: top;
  padding-bottom: 1rem;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.table th {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--navy-800);
  color: var(--ivory);
  font-weight: 700;
  white-space: nowrap;
}

.table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr {
  transition: background 0.3s;
}

.table tbody tr:hover {
  background: rgba(201, 164, 92, 0.1);
}

/* ------------------------------------------------------ Shared decorations */

.rule {
  display: block;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.section--dark .rule,
.on-dark .rule,
.section--navy .rule {
  background: var(--line-light);
}

.orn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold-500);
}

.orn::before,
.orn::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.orn i {
  width: 0.45rem;
  height: 0.45rem;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}

.section,
.site-footer,
.hero {
  overflow-x: clip;
}

.aura {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(224, 184, 90, 0.28), transparent 65%);
  animation: aura-drift 18s ease-in-out infinite alternate;
}

@keyframes aura-drift {
  from {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.12);
  }
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  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'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
