/* frame.css — tokens (vars, reset, fonts) + layout primitives */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Cormorant Garamond'), url('../fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Cormorant Garamond SemiBold'), url('../fonts/cormorant-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: local('Cormorant Garamond Italic'), url('../fonts/cormorant-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Lora'), url('../fonts/lora-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Lora SemiBold'), url('../fonts/lora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Lora Italic'), url('../fonts/lora-italic-400.woff2') format('woff2');
}

:root {
  /* palette — Astilla & Patina, bleached oak workshop */
  --ink: #2A2A2A;
  --ink-soft: #4A4A4A;
  --muted: #6A6258;
  --paper: #E9E7E2;
  --paper-soft: #F2F0EB;
  --paper-deep: #DDD9D0;
  --oak: #5A3A1E;
  --oak-deep: #3F2812;
  --brass: #A38A3C;
  --brass-light: #C9AE5C;
  --hairline: #C8C3B6;
  --shadow: #1A1A1A;

  /* type */
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Lora', Georgia, 'Times New Roman', serif;

  /* layout */
  --w-page: 1180px;
  --r-sm: 2px;
  --r-md: 4px;
  --t: 240ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.18;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.55rem); }
h4 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--oak); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oak-deep); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.2em; margin: 0 0 16px; }
li + li { margin-top: 4px; }

button { font-family: inherit; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

/* sr-only */
.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;
}

/* skip link — class: to-content */
.to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
}
.to-content:focus { top: 12px; }

.wrap {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
}

main { display: block; }

section { padding: 64px 0; }
section.compact { padding: 40px 0; }

@media (min-width: 768px) {
  section { padding: 96px 0; }
  section.compact { padding: 56px 0; }
}

.section__heading { margin-bottom: 40px; max-width: 720px; }
.section__heading p { color: var(--ink-soft); font-size: 1.06rem; margin-top: 8px; }

.section--paper-soft { background: var(--paper-soft); }
.section--paper-deep { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: var(--paper-soft); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  font-weight: 600;
  font-style: italic;
}

.grid { display: grid; gap: 32px; grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--lots { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--lots { grid-template-columns: repeat(3, 1fr); }
  .grid--catalog { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  transition: background 200ms, color 200ms, border-color 200ms;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn--solid {
  background: var(--oak);
  color: var(--paper);
  border-color: var(--oak);
}
.btn--solid:hover { background: var(--oak-deep); color: var(--paper); border-color: var(--oak-deep); }

.btn--brass {
  background: transparent;
  color: var(--brass);
  border-color: var(--brass);
}
.btn--brass:hover { background: var(--brass); color: var(--paper); border-color: var(--brass); }

/* breadcrumbs */
.crumbs {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 16px 0 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.crumbs li { margin: 0; }
.crumbs li + li::before {
  content: '/';
  color: var(--brass);
  margin-right: 10px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.hr-brass { height: 1px; background: var(--hairline); border: 0; margin: 48px 0; }
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
