:root {
  --color-background-light: #FAFAFC;
  --color-surface-white: #FFFFFF;
  --color-ink-dark: #090A0F;
  --color-accent-blue: #2563EB;
  --color-border-light: #E5E7EB;
  --color-overlay-dark: rgba(0, 0, 0, 0.45);
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-display-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  --text-h1-size: clamp(2rem, 4vw + 0.75rem, 2.5rem);
  --text-h2-size: clamp(1.625rem, 3vw + 0.5rem, 2rem);
  --text-h3-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  --text-body-size: 1rem;
  --text-small-size: 0.875rem;
  --text-display-line-height: 1.1;
  --text-h1-line-height: 1.2;
  --text-h2-line-height: 1.25;
  --text-h3-line-height: 1.3;
  --text-body-line-height: 1.6;
  --text-small-line-height: 1.5;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --radius-card: 12px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition-fast: 0.2s ease;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-background-light);
  color: var(--color-ink-dark);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink-dark);
  line-height: var(--text-h3-line-height);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

h5 {
  font-size: 1rem;
  line-height: 1.5;
}

h6 {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--space-4);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  overflow-wrap: break-word;
  word-break: break-word;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.5rem;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  overflow-wrap: break-word;
  word-break: break-word;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

blockquote {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-accent-blue);
  background-color: var(--color-surface-white);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-style: italic;
}

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

figure {
  margin: 0 0 var(--space-4);
}

figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: rgba(9, 10, 15, 0.7);
  text-align: center;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-blue);
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

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

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  background-color: var(--color-surface-white);
  color: var(--color-ink-dark);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(9, 10, 15, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-small-size);
  font-weight: 500;
  line-height: var(--text-small-line-height);
  color: var(--color-ink-dark);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

th,
td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  background-color: var(--color-background-light);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: var(--space-5) 0;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.surface-card {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}

.surface-panel {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.surface-hero {
  background-color: var(--color-surface-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: 500;
  line-height: var(--text-body-line-height);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent-blue);
  color: #FFFFFF;
  border-color: var(--color-accent-blue);
}

.btn-primary:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.08);
  border-color: var(--color-accent-blue);
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-ink-dark);
  border-color: var(--color-border-light);
}

.btn-ghost:hover {
  background-color: var(--color-background-light);
  border-color: var(--color-ink-dark);
  text-decoration: none;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}

.flex > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-align-center {
  align-items: center;
}

.flex-align-start {
  align-items: flex-start;
}

.flex-align-end {
  align-items: flex-end;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-between {
  justify-content: space-between;
}

.flex-justify-end {
  justify-content: flex-end;
}

.flex-column {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.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;
}

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

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-dark);
  z-index: 40;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay-dark);
  z-index: 1;
}

.aspect-ratio {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.aspect-ratio > img,
.aspect-ratio > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.text-small {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: 600;
  color: var(--color-ink-dark);
  margin-bottom: var(--space-4);
}

.micro-line {
  display: inline-block;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-1); }
.mb-1 { margin-bottom: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mb-2 { margin-bottom: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-3 { margin-bottom: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-5 { margin-bottom: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .surface-panel,
  .surface-hero {
    padding: var(--space-4);
  }

  .surface-card {
    padding: var(--space-3);
  }

  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }

  .surface-panel,
  .surface-hero {
    padding: var(--space-3);
  }

  .surface-card {
    padding: var(--space-3);
  }

  .flex {
    gap: var(--space-2);
  }
}

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