


*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr[title] {
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #8a7f70;
}

button,
[role='button'] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}


:root {
  --bg-primary: #fbf6ee;
  --bg-secondary: #f3e9da;
  --bg-tertiary: #e9dcc7;
  --accent: #1a4370;
  --accent-hover: #12314f;
  --text-primary: #14283f;
  --text-secondary: #334155;
  --text-muted: #5c5347;

  --sand-deep: #dfcbab;
  --stone-line: #d6c4a5;
  --ink-deep: #0f172a;
  --leaf: #3c5540;
  --leaf-soft: #4e6b4f;
  --paper: #ffffff;
  --paper-warm: #fffcf7;
  --footer-text: #c9bca8;

  --rule-soft: rgba(20, 40, 63, 0.12);
  --rule-strong: rgba(20, 40, 63, 0.26);
  --lift-low: 0 2px 10px rgba(46, 33, 16, 0.07);
  --lift-mid: 0 10px 30px rgba(46, 33, 16, 0.11);

  --edge: 14px;
  --edge-small: 8px;
  --tempo: 0.22s ease;
}

[data-theme="dark"] {
  --bg-primary: #101d2c;
  --bg-secondary: #16283b;
  --bg-tertiary: #1d3348;
  --accent: #9dc2e8;
  --accent-hover: #c3daf3;
  --text-primary: #f4ead9;
  --text-secondary: #d6c9b6;
  --text-muted: #b0a48f;
  --sand-deep: #1d3348;
  --stone-line: #2a4159;
  --ink-deep: #0a1522;
  --leaf: #a8c4a5;
  --leaf-soft: #8fae8c;
  --paper: #16283b;
  --paper-warm: #1a2e42;
  --footer-text: #c9bca8;
  --rule-soft: rgba(244, 234, 217, 0.14);
  --rule-strong: rgba(244, 234, 217, 0.3);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  
  overflow-x: clip;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.06;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.14;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  font-size: 1.12rem;
  font-weight: 600;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
}

::selection {
  background: var(--sand-deep);
  color: var(--text-primary);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
}
