/* Nordoxa — Materials & Corrosion Engineering
   Self-contained stylesheet. No external requests. */

:root {
  --ink:    #16191c;
  --steel:  #2c4353;
  --slate:  #5b6b76;
  --mute:   #8a969e;
  --mist:   #f3f5f6;
  --paper:  #ffffff;
  --rule:   #d6dde1;
  --oxide:  #a84b26;
  --patina: #3f7268;

  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --wrap: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--oxide); }
a:focus-visible { outline: 2px solid var(--oxide); outline-offset: 2px; }

img, svg { max-width: 100%; height: auto; }

/* ---------- Masthead ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { display: block; width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.08em;
}

nav.main { font-family: var(--sans); font-size: 14px; }
nav.main ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--slate); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"] { border-bottom: 2px solid var(--oxide); padding-bottom: 3px; }

/* ---------- Generic sections ---------- */

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
  margin: 0 0 14px;
}

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); font-weight: 700; }
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 18px; line-height: 1.3; margin: 32px 0 10px; }
h4 { font-size: 15px; margin: 24px 0 8px; }

p { margin: 0 0 18px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--steel); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); background: var(--mist); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; }
.hero-fig { border: 1px solid var(--rule); background: var(--paper); padding: 14px; }

/* ---------- Cards / lists ---------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { border-top: 2px solid var(--steel); padding-top: 16px; }
.card h3 { margin-top: 0; }
.card p { font-size: 16px; margin-bottom: 0; }

.svc { border-top: 1px solid var(--rule); padding: 22px 0; display: grid; grid-template-columns: 190px 1fr; gap: 32px; }
.svc-key { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.svc h3 { margin: 0 0 8px; }
.svc p { margin-bottom: 0; font-size: 16px; }

.article-row { border-top: 1px solid var(--rule); padding: 24px 0; display: grid; grid-template-columns: 130px 1fr; gap: 32px; }
.article-row:last-child { border-bottom: 1px solid var(--rule); }
.article-meta { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: 0.04em; padding-top: 5px; }
.article-row h3 { margin: 0 0 8px; font-size: 19px; }
.article-row h3 a { text-decoration: none; }
.article-row h3 a:hover { text-decoration: underline; }
.article-row p { margin: 0; font-size: 16px; color: var(--slate); }

/* ---------- Article body ---------- */

.article { max-width: 720px; }
.article h1 { font-size: 34px; }
.article .kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--oxide); margin: 0 0 12px;
}
.article .byline {
  font-family: var(--sans); font-size: 13.5px; color: var(--mute);
  border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 30px;
}
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 700; }

figure { margin: 32px 0; }
figure .frame { border: 1px solid var(--rule); background: var(--mist); padding: 18px; }
figcaption {
  font-family: var(--sans); font-size: 13px; color: var(--slate);
  margin-top: 10px; line-height: 1.5;
}
figcaption b { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 26px 0; font-family: var(--sans); font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--ink); }
td.num { font-family: var(--mono); white-space: nowrap; }

blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--patina); color: var(--steel); font-style: italic;
}

.note {
  background: var(--mist); border-left: 3px solid var(--oxide);
  padding: 16px 20px; margin: 26px 0; font-size: 16px;
}
.note p:last-child { margin-bottom: 0; }

.refs { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 20px; font-size: 14.5px; color: var(--slate); }
.refs h4 { margin-top: 0; }
.refs ol { padding-left: 20px; margin: 0; }

/* ---------- Contact ---------- */

.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; font-size: 16px; }
.dl dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.dl dd { margin: 0; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  background: var(--mist);
  padding: 40px 0 48px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--slate);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer h4 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 7px; }
footer a { color: var(--slate); text-decoration: none; }
footer a:hover { color: var(--oxide); text-decoration: underline; }
.colophon { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: var(--mute); }

/* ---------- Utility ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
  font-family: var(--sans); font-size: 14px;
}
.skip:focus { left: 8px; top: 8px; }

.small { font-size: 15px; color: var(--slate); }
.mono { font-family: var(--mono); }

@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .svc, .article-row, .dl { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 32px; }
  h1 { font-size: 30px; }
  .topbar-inner { gap: 14px; }
  nav.main ul { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, footer, nav.main { display: none; }
  body { font-size: 12pt; }
}
