/* ==========================================================================
   STEEPED — Base Styles
   Reset, typography, global elements
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--soft-espresso);
  background-color: var(--latte-foam);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--burnt-caramel);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--soft-espresso);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--soft-espresso);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

/* --- Utility Classes --- */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cocoa-grey);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--burnt-caramel);
}

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

/* --- Content Container --- */
.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-wrapper {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--burnt-caramel);
  color: var(--latte-foam);
  border: 2px solid var(--burnt-caramel);
}

.btn-primary:hover {
  background-color: var(--soft-espresso);
  border-color: var(--soft-espresso);
  color: var(--latte-foam);
}

.btn-secondary {
  background-color: transparent;
  color: var(--soft-espresso);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--soft-espresso);
  color: var(--soft-espresso);
}

.btn-small {
  padding: 0.5em 1.25em;
  font-size: var(--text-xs);
}

/* --- Dividers --- */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-lg) 0;
}

/* --- Selection --- */
::selection {
  background-color: var(--burnt-caramel);
  color: var(--white);
}

/* --- Focus States --- */
:focus-visible {
  outline: 2px solid var(--burnt-caramel);
  outline-offset: 2px;
}

/* --- Scrollbar (subtle) --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cocoa-grey);
}

/* --- Print --- */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .no-print {
    display: none !important;
  }
}
