/* edwardlevin.dk — CP7 integration review candidate
   No web fonts or embedded third-party resources. Local checker pages load first-party scripts. */

:root {
  --paper: #f7f8f7;
  --paper-deep: #edf0ee;
  --surface: #ffffff;
  --ink: #15181a;
  --muted: #5c6663;
  --rule: #dce2de;
  --accent: #2e5a42;
  --accent-tint: #e6eee9;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --measure: 46rem;
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100%, var(--measure)); margin: 0 auto; padding: 0 1.5rem; }
.wrap.wide { width: min(100%, var(--wide)); }

.masthead { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.masthead nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.nav-links a,
.record nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.nav-links a:hover,
.record nav a:hover { color: var(--accent); }

.hero { padding: clamp(4rem, 9vw, 7rem) 0 5rem; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: end; }
.eyebrow,
.meta,
.card-number,
.service-kicker,
.method-number,
.hero-facts dt,
.about-facts dt,
.contact-card span {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 { color: var(--ink); }
h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: .98;
  letter-spacing: -0.055em;
  max-width: 12ch;
  margin: .7rem 0 1.6rem;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: .5rem 0 1.2rem;
}
h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 .55rem;
}

p { margin: 0 0 1.05rem; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
.hero-lede { font-size: clamp(1.22rem, 2.5vw, 1.55rem); line-height: 1.45; max-width: 42rem; }
.section-intro { max-width: 44rem; font-size: 1.08rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: .7rem 1rem;
  color: var(--paper);
  background: var(--accent);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}
.actions a:hover { background: var(--ink); border-color: var(--ink); }
.actions a.secondary { color: var(--accent); background: transparent; }
.actions a.secondary:hover { color: var(--ink); border-color: var(--ink); }

.hero-facts,
.about-facts,
.contact-card,
.scope-note {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.55);
  border-radius: 4px;
}
.hero-facts { padding: 1.25rem 1.4rem; }
.hero-facts dl,
.about-facts dl { margin: 0; }
.hero-facts dl > div,
.about-facts dl > div { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.hero-facts dl > div:first-child,
.about-facts dl > div:first-child { padding-top: 0; }
.hero-facts dl > div:last-child,
.about-facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.hero-facts dd,
.about-facts dd { margin: .18rem 0 0; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; border-bottom: 1px solid var(--rule); }
.grid { display: grid; gap: 1rem; margin-top: 2rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-height: 100%;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.35rem;
  border-radius: 4px;
}
.card p:last-child { margin-bottom: 0; }
.card-number { margin-bottom: 1.4rem; }

.service-list { margin-top: 2.6rem; border-top: 1px solid var(--rule); }
.service {
  display: grid;
  grid-template-columns: minmax(14rem, .75fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-heading h3 { font-size: 1.35rem; }
.service-kicker { margin-bottom: .6rem; }
.service-copy { max-width: 42rem; }
.service-lede { font-size: 1.16rem; font-weight: 650; }
ul { padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
.scope-note { margin-top: 2.5rem; padding: 1.4rem; max-width: 54rem; }
.scope-note h3 { margin-bottom: .8rem; }

.proof-list { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.proof { padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.proof .meta { margin-bottom: .45rem; }
.proof p:last-child { margin-bottom: 0; }

.method-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--rule); }
.method-list li { padding: 1.4rem 1.2rem 0 0; border-right: 1px solid var(--rule); margin: 0; }
.method-list li + li { padding-left: 1.2rem; }
.method-list li:last-child { border-right: 0; }
.method-number { display: block; margin-bottom: 1.3rem; }

.about-grid,
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.about-facts { padding: 1.25rem 1.4rem; }

.contact-section { background: var(--paper-deep); }
.contact-card { padding: 1.25rem 1.4rem; font-style: normal; }
.contact-card > div { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.contact-card > div:first-child { padding-top: 0; }
.contact-card > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card span { display: block; margin-bottom: .18rem; }
.contact-card p { margin: 0; }

.record { padding: 1.75rem 0 3rem; font-family: var(--mono); font-size: .75rem; line-height: 1.7; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.record p { margin: 0; }
.record nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 54rem) {
  .masthead nav { align-items: flex-start; }
  .nav-links { justify-content: flex-end; }
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-facts { max-width: 34rem; }
  .service { grid-template-columns: 1fr; gap: .9rem; }
  .proof-list { grid-template-columns: 1fr; }
  .method-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .method-list li:nth-child(2) { border-right: 0; }
  .method-list li:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
}

@media (max-width: 38rem) {
  body { font-size: 16px; }
  .masthead nav { display: block; }
  .nav-links { margin-top: .8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; justify-content: stretch; }
  .nav-links a { width: 100%; }
  .two-col,
  .method-list { grid-template-columns: 1fr; }
  .method-list li { border-right: 0; border-top: 1px solid var(--rule); padding: 1.2rem 0; }
  .method-list li:first-child { border-top: 0; }
  .method-list li + li { padding-left: 0; }
  .footer-grid { display: block; }
  .record nav { margin-top: 1rem; }
}

a:focus-visible,
.actions a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

@media print {
  body { background: #fff; font-size: 11pt; }
  .masthead nav, .actions, .skip-link { display: none; }
  .section, .hero { padding: 1.2rem 0; }
}

/* CP5 local responsive/accessibility remediation, pending approval. */
.privacy-main { padding-top: clamp(2.8rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.privacy-intro { padding-bottom: 1.8rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.privacy-main h1 { max-width: none; font-size: clamp(3rem, 7vw, 4.6rem); margin: .55rem 0 .8rem; }
.privacy-lede { font-size: clamp(1.15rem, 2.5vw, 1.45rem); line-height: 1.45; margin-bottom: 0; }
.privacy-main section { margin-bottom: 2.1rem; }
.privacy-main h2 { max-width: none; font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 0 0 .7rem; }
.privacy-main .contact-list { list-style: none; padding: 0; }
.privacy-main .contact-list .label { display: block; color: var(--muted); }
.privacy-main a { overflow-wrap: anywhere; }
.privacy-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.privacy-meta dt { font-size: .73rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.privacy-meta dd { margin: .2rem 0 0; }
@media (max-width: 38rem) {
  .privacy-meta { grid-template-columns: 1fr; gap: .8rem; }
}

.contact-card a,
.privacy-main .contact-list a { display: inline-flex; align-items: center; min-height: 32px; }
.nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }

/* R3 editorial and bilingual layout additions. No tracking or external embeds. */
:root { --wide: 72rem; --muted: #4e5d57; }
body { font-size: 17px; }
.masthead { padding: .95rem 0; background: #fff; }
.masthead nav { gap: 1.4rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: .08rem; line-height: 1.25; font-size: 1.1rem; }
.brand small { font-size: .64rem; color: var(--muted); letter-spacing: .03em; font-weight: 500; }
.nav-links { gap: 1rem; margin-left: auto; }
.nav-links a { font-family: var(--sans); font-size: .82rem; text-transform: none; letter-spacing: 0; font-weight: 600; min-height: 44px; }
.locale-switch { border-left: 1px solid var(--rule); padding-left: .9rem; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.locale-switch a { font-size: .79rem; color: var(--muted); text-decoration: none; padding: .38rem .2rem; }
.locale-switch a { display: inline-flex; min-height: 44px; min-width: 32px; align-items: center; justify-content: center; }
.locale-switch a[aria-current] { color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: .25em; }
.locale-switch span { color: #919a95; }
.hero { background: linear-gradient(145deg, #f8f9f7, #eef3ee); padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(3.2rem, 7vw, 5.5rem); }
.hero-grid { grid-template-columns: minmax(0, 1.42fr) minmax(15.5rem, .7fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
h1 { max-width: 16ch; font-size: clamp(2.45rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.043em; }
h2 { max-width: 28ch; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hero-lede { max-width: 40rem; font-size: clamp(1.12rem, 2vw, 1.34rem); line-height: 1.54; }
.hero-description { max-width: 42rem; color: #40534b; }
.hero-portrait { margin: 0; max-width: 24rem; justify-self: end; }
.hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: .6rem; border: 1px solid #ccd9d0; box-shadow: 0 14px 45px rgba(28,55,42,.12); }
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: .6rem; padding-top: .65rem; color: var(--muted); font-size: .81rem; }
.hero-portrait figcaption strong { color: var(--ink); }
.proposition { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.proposition span { display: inline-flex; gap: .45rem; font-size: .83rem; color: #36533f; background: #e3ede6; padding: .36rem .7rem; border-radius: 3px; }
.section { padding: clamp(3.1rem, 6vw, 5.5rem) 0; }
.section-intro { max-width: 57rem; }
.card h3 { font-size: 1.08rem; }
.service { grid-template-columns: minmax(14rem,.8fr) minmax(0,1.45fr); }
.service-copy ul { columns: 2; column-gap: 2rem; }
.service-copy li { break-inside: avoid; }
.method-list { grid-template-columns: repeat(4, minmax(0,1fr)); }
.proof-list { column-gap: 3.25rem; }
.proof h3 { font-size: 1.1rem; }
.about-grid { grid-template-columns: minmax(0,1.4fr) minmax(15rem,.7fr); }
.about-facts { background: #fff; }
.footer-grid { align-items: center; }
.record nav a { min-height: 36px; font-size: .76rem; }
.scope-note { max-width: none; width: 100%; }
.cta-assurance { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.privacy-main { padding-top: clamp(2.6rem, 6vw, 4.5rem); }
.privacy-status { border-left: 3px solid #8c682a; background: #fff7e7; padding: .65rem 1rem; margin: .65rem 0 1.5rem; font-size: .91rem; }
@media (max-width: 64rem) {
  .nav-links { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; gap: 1.25rem; }
  .locale-switch { margin-left: auto; }
}
@media (max-width: 54rem) {
  .hero-grid, .about-grid { grid-template-columns: minmax(0,1fr) minmax(13rem,.58fr); gap: 2rem; }
  .hero-portrait { max-width: 18rem; }
  .service-copy ul { columns: 1; }
}
@media (max-width: 42rem) {
  .masthead nav { display: flex; gap: .6rem 1rem; align-items: center; }
  .brand { font-size: 1rem; }
  .brand small { font-size: .6rem; }
  .locale-switch { padding-left: .6rem; }
  .nav-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .35rem; }
  .nav-links a { text-align: center; justify-content: center; font-size: .72rem; line-height: 1.2; min-height: 44px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 18rem; width: 100%; }
  .hero { padding-top: 2.7rem; }
  h1 { max-width: 100%; }
  .two-col, .proof-list { grid-template-columns: 1fr; }
  .method-list { grid-template-columns: 1fr; }
  .actions a { max-width: 100%; }
  .privacy-main { padding-top: 2.3rem; }
  .service { grid-template-columns: minmax(0,1fr); gap: .9rem; }
  .privacy-main h1 { font-size: clamp(2.1rem, 7vw, 3rem); }
}
@media (max-width: 23rem) { .nav-links { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* R4: threat-analysis methodology; bilingual, static and responsive. */
.risk-analysis {
  margin-top: 2.3rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(14rem, .72fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: .4rem;
  background: var(--surface);
}
.risk-analysis h3 { font-size: clamp(1.34rem, 2.4vw, 1.75rem); max-width: 36rem; line-height: 1.25; }
.risk-analysis p:last-child, .risk-analysis li:last-child { margin-bottom: 0; }
.risk-analysis-outputs { border-left: 1px solid var(--rule); padding-left: clamp(1.3rem, 3vw, 2rem); align-self: center; }
.risk-analysis-outputs h4 { font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.risk-analysis-outputs ul { margin: 0; }
.risk-analysis-outputs li { line-height: 1.45; margin-bottom: .7rem; }
.delivery-sequence-title { margin: 3rem 0 0; font-size: 1.25rem; }
@media (max-width: 45rem) {
  .risk-analysis { grid-template-columns: 1fr; gap: 1.2rem; }
  .risk-analysis-outputs { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1.2rem; }
}
