/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
html:focus-within { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  background-color: var(--c-sand);
  color: var(--c-shell);
  font-family: var(--font-text);
  font-size: var(--text-base);
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--c-safety); }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; color: var(--c-marine); }
h1 { font-size: var(--text-4xl); margin-bottom: var(--space-6); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
@media (min-width: 768px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

/* Layout Utilities */
.container { max-width: var(--max-w-content); margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-4); }
.grid { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Header & Nav */
.site-header { padding: var(--space-6) 0; border-bottom: 2px solid var(--c-marine); margin-bottom: var(--space-8); }
.header-container { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4); }
.brand-logo { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; color: var(--c-marine); text-decoration: none; }
.brand-highlight { color: var(--c-safety); }
.site-nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--text-sm); }
.site-nav a[aria-current="page"] { color: var(--c-safety); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Sections & Specifics */
.section { padding: var(--space-12) 0; border-bottom: 1px solid var(--c-husk); }
.section-dark { background-color: var(--c-marine); color: var(--c-sand); }
.section-dark h2, .section-dark h3 { color: var(--c-sand); }
.section-dark a { color: var(--c-safety); }

/* Editorial motifs */
.editorial-spread { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 768px) {
    .editorial-spread { grid-template-columns: 4fr 5fr; align-items: center; }
    .editorial-spread.reverse { grid-template-columns: 5fr 4fr; }
    .editorial-spread.reverse > :first-child { order: 2; }
}

/* Button */
.btn { display: inline-block; padding: var(--space-4) var(--space-8); background-color: var(--c-marine); color: var(--c-sand); text-decoration: none; font-family: var(--font-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: background-color 0.2s; border: none; cursor: pointer; }
.btn:hover { background-color: var(--c-safety); color: var(--c-marine); }
.btn-outline { background-color: transparent; color: var(--c-marine); border: 2px solid var(--c-marine); }
.btn-outline:hover { background-color: var(--c-marine); color: var(--c-sand); }

/* Footer */
.site-footer { background-color: var(--c-shell); color: var(--c-sand); padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-16); }
.footer-container { display: grid; gap: var(--space-8); }
@media(min-width: 768px){ .footer-container { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .footer-logo { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-4); }
.footer-nav { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a { text-decoration: none; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; color: var(--c-safety); }
.footer-meta { font-size: var(--text-sm); opacity: 0.6; padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.1); grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap;}

/* Tool Container */
.tool-container { background: var(--c-meat); padding: var(--space-8); border: 2px solid var(--c-marine); margin: var(--space-8) 0; box-shadow: 8px 8px 0 var(--c-husk); }
.tool-input { width: 100%; padding: var(--space-2); margin-bottom: var(--space-4); border: 1px solid var(--c-husk); }
.tool-result { margin-top: var(--space-4); font-weight: 700; font-size: var(--text-xl); color: var(--c-marine); }
