/* Design tokens, reset, typography and global accessibility foundations. */

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #252b22;
  --muted: #686b62;
  --gold: #aa8a4a;
  --cream: #f3f1eb;
  --page-background: #FFFCF7;
  --line: #dedfd7;
  --serif: 'Playfair Display',Georgia,serif;
  --sans: 'DM Sans',Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--page-background);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
}

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

button {
  border: 0;
  background: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a97b27;
  outline-offset: 5px;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(58px,5.9vw,92px);
}

h2 {
  font-size: clamp(35px,3.55vw,55px);
}

h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

em {
  font-weight: 400;
}

[hidden] {
  display: none !important;
}

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

picture {
  display: contents;
}

button:not(.gallery-dot),
.btn,
summary {
  min-height: 44px;
}
