:root {
  --bg-base: #1a1a1a;
  --bg-surface: #2f2f2f;
  --text-primary: #ffffff;
  --text-secondary: #b87333;
  --accent-terracotta: #cd7f32;
  --accent-amber: #ffbf00;
  --accent-felt: #2e8b57;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --text-display: 56px;
  --text-h1: 40px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-body: 16px;
  --text-small: 14px;
  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.25;
  --leading-h3: 1.3;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --weight-display: 700;
  --weight-h1: 700;
  --weight-h2: 600;
  --weight-h3: 600;
  --weight-body: 400;
  --weight-small: 400;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;
  --container-max: 1200px;
  --radius-sharp: 0px;
  --radius-small: 4px;
  --radius-pill: 50px;
  --border-thin: 1px solid var(--accent-terracotta);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s ease;
  --focus-outline: 2px solid var(--accent-terracotta);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

ul,
ol {
  list-style: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 5vw, var(--text-h1));
  line-height: var(--leading-h1);
  font-weight: var(--weight-h1);
  margin-block-end: var(--space-md);
}

h2 {
  font-size: clamp(26px, 4vw, var(--text-h2));
  line-height: var(--leading-h2);
  font-weight: var(--weight-h2);
  margin-block-end: var(--space-md);
}

h3 {
  font-size: clamp(20px, 3vw, var(--text-h3));
  line-height: var(--leading-h3);
  font-weight: var(--weight-h3);
  margin-block-end: var(--space-sm);
}

h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin-block-end: var(--space-sm);
}

h5 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  margin-block-end: var(--space-xs);
}

h6 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  margin-block-end: var(--space-xs);
}

p {
  margin-block-end: var(--space-md);
}

p:last-child {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--accent-terracotta);
  color: var(--text-secondary);
}

blockquote:last-child {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-md);
}

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-block-start: var(--space-xs);
}

address {
  font-style: normal;
}

hr {
  border: none;
  border-top: var(--border-thin);
  margin-block: var(--space-lg);
}

small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

strong {
  font-weight: 600;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background-color: var(--accent-terracotta);
  border-radius: var(--radius-small);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
  background-color: #e08e45;
  color: var(--text-primary);
}

.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  border: var(--border-thin);
  color: var(--accent-terracotta);
}

.btn-secondary:hover {
  background-color: var(--accent-terracotta);
  color: var(--text-primary);
}

.card {
  background-color: var(--bg-surface);
  border: var(--border-thin);
  border-radius: var(--radius-sharp);
  padding: var(--space-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-subtle);
}

.card > :last-child {
  margin-block-end: 0;
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background-color: var(--accent-amber);
  color: var(--bg-base);
}

.tag-felt {
  background-color: var(--accent-felt);
  color: var(--text-primary);
}

.tag-terracotta {
  background-color: var(--accent-terracotta);
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--accent-terracotta);
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cd7f32' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-inline-end: var(--space-lg);
}

label {
  display: block;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-block-end: var(--space-xs);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  :root {
    --text-display: 36px;
    --text-h1: 30px;
    --text-h2: 24px;
    --text-h3: 20px;
    --space-section: 48px;
  }

  .container {
    padding-inline: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --text-display: 28px;
    --text-h1: 24px;
    --text-h2: 20px;
    --text-h3: 18px;
    --space-section: 32px;
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* mobile-media-center */
@media (max-width: 48rem) {
  .media-frame,
  .image-frame,
  [class*="__media"],
  [class*="__visual"] {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .media-frame > img,
  .media-frame img,
  .media-frame video,
  .image-frame img,
  [class*="__media"] img,
  [class*="__visual"] img,
  [class*="hero"] > img,
  figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* mobile-photo-center */
@media (max-width: 56.25rem) {
  img,
  video {
    object-position: center !important;
  }

  .image-frame,
  .media-frame,
  .card__media,
  [class*='__media'] {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    justify-self: stretch;
    overflow: hidden;
  }

  .image-frame img,
  .media-frame img,
  .media-frame video,
  .card__media img,
  [class*='__media'] img,
  [class*='hero'] img,
  [class*='hero__image'] {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center !important;
  }
}
