/* Bare Beauty by Ionee: shared tokens, fonts and basics.
   Colors come from Ionee's printed menu: espresso ground, rose gold type. */

@font-face {
  font-family: 'Della Respira';
  src: url('/assets/fonts/della-respira-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Corinthia';
  src: url('/assets/fonts/corinthia-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-variable.woff2') format('woff2-variations'), url('/assets/fonts/jost-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand palette */
  --espresso: #261c13;
  --roast: #1b140d;
  --cocoa: #3a2c1f;
  --rose-gold: #e8b898;
  --rose-gold-hi: #f4d3bb;
  --silk: #f1e6d8;
  --mist: #bfa88e;
  --bronze: #a27f55;
  --brass: #c29b6c;
  --bare: #ecd9c8;
  --shell: #f7eee5;
  --linen: #fbf6f0;
  --petal: #e3cbb8;
  --umber: #6e4a2e;
  --taupe: #6b5848;
  --line-strong: #8f7560;
  --garnet: #8e2f2a;
  --sage: #3f5e3b;
  --amber: #7a5212;

  /* type */
  --font-display: 'Della Respira', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-script: 'Corinthia', 'Snell Roundhand', 'Apple Chancery', cursive;
  /* Corinthia is drawn small for its size, so script text is set 1.4 times larger */
  --script-scale: 1.4;
  --font-body: 'Jost', 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;

  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: 2.25rem;
  --step-4: 3rem;
  --step-5: 4.5rem;

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 5vw, 48px);
  --measure: 34em;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

/* Line icons (assets/js/icons.js): sized by font-size, drawn in the text color */
.icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* An icon inside a thin ring, like a small ring light */
.icon-ring {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(232, 184, 152, 0.42);
  border-radius: 50%;
  color: var(--rose-gold);
  font-size: 24px;
  box-shadow:
    inset 0 0 14px rgba(232, 184, 152, 0.08),
    0 0 18px rgba(232, 184, 152, 0.07);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--rose-gold);
  color: var(--espresso);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, scale 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) {
  scale: 0.98;
}
/* A sweep of light across rose gold buttons on hover */
.btn-rose::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 250, 244, 0) 32%, rgba(255, 250, 244, 0.7) 50%, rgba(255, 250, 244, 0) 68%);
  transform: translateX(-120%);
}
.btn-rose:hover::after {
  transform: translateX(120%);
  transition: transform 750ms ease;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-rose {
  background: var(--rose-gold);
  color: var(--espresso);
}
.btn-rose:hover {
  background: var(--rose-gold-hi);
}
.btn-ghost-dark {
  border-color: rgba(232, 184, 152, 0.55);
  color: var(--silk);
  background: transparent;
}
.btn-ghost-dark:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
}
.btn-espresso {
  background: var(--espresso);
  color: var(--shell);
}
.btn-espresso:hover {
  background: var(--cocoa);
}
.btn-ghost-light {
  border-color: var(--line-strong);
  color: var(--espresso);
  background: transparent;
}
.btn-ghost-light:hover {
  border-color: var(--espresso);
}

/* The brand lockup, as on the printed menu: rules either side of the name */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--rose-gold);
  white-space: nowrap;
}
.lockup::before,
.lockup::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lockup span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
