/* K.D.E.P. INVESTMENT LTD — kdep-investment.com
   Idea: security printing. Cream bond paper, guilloche rosettes and bands, numbered certificate,
   oxblood seal, coupons with perforated stubs. No web fonts: Didot and Optima ship with macOS and iOS. */

:root {
  --paper: #F4EFE3;
  --paper-alt: #EEE8D8;
  --face: #FBF8F0;
  --ink: #1B2A44;
  --ink-2: #34425E;
  --muted: #5D6677;
  --line: #D6CCB5;
  --teal: #2C6E66;
  --teal-2: #86B5AC;
  --seal: #9B2335;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --text: Optima, "Optima Nova", Candara, "Segoe UI", "Noto Sans", Ubuntu, sans-serif;
  --hole: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper) url(/assets/paper.svg) repeat;
  color: var(--ink);
  font: 400 17px/1.65 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--seal); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
::selection { background: #E6D3B2; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--face); }
.skip:focus { left: 12px; }

h1, h2, h3, .h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3, .h3 { font-size: 23px; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 600 12px/1.2 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; flex: 0 0 34px; height: 8px; background: url(/assets/band.svg) 0 0 / 16px 8px repeat-x; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1.5px solid var(--ink); border-radius: 2px;
  font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-ink { background: var(--ink); color: var(--face); }
.btn-ink:hover { background: var(--seal); border-color: var(--seal); color: var(--face); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--face); }
.btn-sm { padding: 10px 15px; font-size: 12px; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 239, 227, .95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--line);
}
@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .masthead { background: rgba(244, 239, 227, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.masthead-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.bm-ring { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.bm-petals ellipse { fill: none; stroke: var(--teal); stroke-width: 2.1; }
.bm-core { fill: var(--seal); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 400 25px/1 var(--display); letter-spacing: .07em; }
.brand-name small { margin-top: 6px; font: 600 10.5px/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { font: 600 12.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--seal); }
.site-nav .btn[aria-current="page"] { background: var(--seal); border-color: var(--seal); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; padding: 10px 14px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 2px; color: var(--ink);
  font: 600 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 1.5px; background: currentColor; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }

@media (max-width: 880px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: -20px; right: -20px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 20px;
    background: var(--face); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(27, 42, 68, .5);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 16px; }
  .no-js .masthead-row { flex-wrap: wrap; padding: 12px 0; }
  .no-js .site-nav { flex-wrap: wrap; gap: 14px 20px; }
}

/* Certificate (hero and 404) */
.hero { padding: 46px 0 34px; }
.cert {
  padding: 14px;
  background: var(--face) url(/assets/band.svg) 0 0 / 24px 12px repeat;
  border: 1px solid var(--teal);
  box-shadow: 0 30px 60px -38px rgba(27, 42, 68, .55);
}
.cert-face {
  position: relative; overflow: hidden;
  padding: 26px clamp(18px, 5vw, 64px) 30px;
  background: var(--face);
  border: 1px solid var(--teal);
  box-shadow: inset 0 0 0 6px var(--face), inset 0 0 0 7px var(--teal-2);
  text-align: center;
}
.microprint {
  margin: 0 0 16px; white-space: nowrap; overflow: hidden;
  font: 600 6.5px/1 var(--text); letter-spacing: .34em; text-transform: uppercase; color: var(--teal);
}
.cert-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font: 600 11.5px/1.3 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.serial { font: 400 24px/1 var(--display); letter-spacing: .12em; text-transform: none; color: var(--seal); font-variant-numeric: lining-nums tabular-nums; }
.numero { margin-left: .04em; font-size: .56em; vertical-align: .62em; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.rosette { width: clamp(118px, 17vw, 166px); height: auto; margin: 4px auto 6px; }
.ro-a use { fill: none; stroke: var(--teal); stroke-width: .55; }
.ro-b use { fill: none; stroke: var(--ink); stroke-width: .4; opacity: .5; }
.ro-ring { fill: none; stroke: var(--teal); stroke-width: 1.2; }
.ro-core { fill: var(--face); stroke: var(--ink); stroke-width: 1.2; }
.ro-mono { font: 400 30px/1 var(--display); fill: var(--ink); text-anchor: middle; }
.cert-kicker { margin: 8px 0 12px; font: 600 12.5px/1.3 var(--text); letter-spacing: .44em; text-transform: uppercase; color: var(--teal); }
.cert-certify { margin: 0 0 6px; font: italic 400 21px/1.3 var(--display); color: var(--ink-2); }
.cert-name { margin: 0 0 14px; font-size: clamp(38px, 6.6vw, 78px); line-height: 1.02; letter-spacing: .02em; }
.cert-statement { max-width: 36em; margin: 0 auto 24px; font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); }
.cert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.cert-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding-top: 22px; border-top: 1px solid var(--line); text-align: left; font-size: 15.5px; line-height: 1.5;
}
.cert-sign:last-child { text-align: right; }
.cert-label {
  display: block; margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--ink);
  font: 600 11px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--teal);
}
.seal { width: 116px; height: 116px; transform: rotate(-9deg); }
.seal-ring { fill: none; stroke: var(--seal); stroke-width: 2; }
.seal-hair { fill: none; stroke: var(--seal); stroke-width: .7; }
.seal-text { font: 600 8.4px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; fill: var(--seal); }
.seal-mono { font: 400 21px/1 var(--display); letter-spacing: .06em; fill: var(--seal); text-anchor: middle; }
.seal-small { font: 600 7px/1 var(--text); letter-spacing: .4em; fill: var(--seal); text-anchor: middle; }
.hero-note { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 4px rgba(155, 35, 53, .16); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 44px; }
.section-alt { --hole: var(--paper-alt); background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-lead { max-width: 38em; font-size: 19px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > div > p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); }

/* Term sheet */
.termsheet { position: relative; padding: 30px 28px 16px; background: var(--face); border: 1px solid var(--line); }
.termsheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: url(/assets/band.svg) 0 0 / 16px 8px repeat-x; }
.termsheet-title { margin: 4px 0 12px; font: 400 27px/1 var(--display); }
.termsheet dl { margin: 0; }
.termsheet dl div { display: grid; grid-template-columns: 9.2em 1fr; gap: 14px; padding: 11px 0; border-top: 1px dotted var(--ink-2); }
.termsheet dt { font: 600 11.5px/1.6 var(--text); letter-spacing: .17em; text-transform: uppercase; color: var(--teal); }
.termsheet dd { margin: 0; }
.termsheet-doc { margin: 6px 0 12px; padding-top: 22px; }

/* Thesis */
.thesis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.thesis li { padding: 26px 22px 20px; background: var(--face); border: 1px solid var(--line); }
.roman { display: block; margin-bottom: 14px; font: 400 56px/1 var(--display); color: var(--seal); }
.thesis h3 { padding-bottom: 18px; margin-bottom: 12px; background: url(/assets/band.svg) 0 100% / 16px 8px repeat-x; }
.thesis p { margin: 0; color: var(--ink-2); }

/* Coupons */
.coupons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.coupons-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.coupon { position: relative; display: grid; grid-template-columns: 88px 1fr; min-height: 150px; background: var(--face); border: 1px solid var(--line); }
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: 78px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hole); border: 1px solid var(--line);
}
.coupon::before { top: -11px; clip-path: inset(50% 0 0 0); }
.coupon::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.coupon-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 6px; border-right: 2px dashed var(--line); color: var(--seal);
}
.coupon-stub span { font: 600 9.5px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; }
.coupon-stub b { font: 400 42px/1 var(--display); font-variant-numeric: lining-nums; }
.coupon-body { padding: 20px 22px 18px; }
.coupon-body h3, .coupon-body .h3 { margin-bottom: 6px; }
.coupon-body p { margin-bottom: 10px; color: var(--ink-2); }
.coupon-body p.yield { margin: 0; font-size: 15px; color: var(--ink); }
.yield span { margin-right: 8px; font: 600 10.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }

/* Register */
.register { margin-top: 30px; background: var(--face); border: 1px solid var(--line); border-left: 4px double var(--seal); }
.register table { width: 100%; border-collapse: collapse; }
.register th {
  width: 12.5em; padding: 16px 20px; text-align: left; vertical-align: top;
  font: 600 11.5px/1.7 var(--text); letter-spacing: .17em; text-transform: uppercase; color: var(--teal);
  border-bottom: 1px solid var(--line);
}
.register td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.register tr:last-child th, .register tr:last-child td { border-bottom: 0; }

/* Reply coupon */
.reply {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
  padding: 36px clamp(22px, 4vw, 44px); background: var(--face); border: 2px dashed var(--ink-2);
}
.reply h2 { font-size: clamp(27px, 3.2vw, 36px); }
.reply p:last-child { margin: 0; color: var(--ink-2); }
.reply-cut {
  position: absolute; top: -14px; left: 30px; width: 28px; height: 28px; padding: 3px;
  background: var(--paper); fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round;
  transform: rotate(-90deg);
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin-top: 30px; align-items: start; }
.contact-grid .register { margin-top: 0; }
.note-card { padding: 22px 24px; background: var(--paper-alt); border: 1px solid var(--line); }
.note-card p { color: var(--ink-2); }
.note-small { margin: 0; font-size: 14px; color: var(--muted); }

/* Legal documents */
.doc-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(251, 248, 240, .7), rgba(251, 248, 240, 0)); }
.doc-head h1 { margin-bottom: 12px; font-size: clamp(40px, 6vw, 66px); }
.doc-head .lead { max-width: 42em; font-size: 19px; color: var(--ink-2); }
.doc-date {
  display: inline-block; margin: 4px 0 0; padding: 8px 12px; border: 1px solid var(--seal); color: var(--seal);
  font: 600 11.5px/1 var(--text); letter-spacing: .18em; text-transform: uppercase;
}
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 44px 0 84px; }
.doc-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; }
.doc-toc-title { margin: 0 0 10px; font: 600 11.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc li { border-top: 1px solid var(--line); }
.doc-toc a { display: grid; grid-template-columns: 2.4em 1fr; gap: 6px; padding: 8px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.doc-toc a span { font-family: var(--display); color: var(--seal); }
.doc-toc a:hover { color: var(--seal); }
.doc { max-width: 47em; }
.doc h2 { margin: 48px 0 14px; padding-top: 20px; font-size: 29px; background: url(/assets/band.svg) 0 0 / 16px 8px repeat-x; }
.doc h2:first-child { margin-top: 0; }
.doc h2 .num { display: block; margin-bottom: 9px; font: 600 11.5px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--seal); }
.doc h3 { margin: 26px 0 8px; font-size: 21px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--teal); }
.doc ol.clauses li { padding-left: 4px; }
.tbl { overflow-x: auto; margin: 12px 0 20px; }
.doc table { width: 100%; border-collapse: collapse; background: var(--face); font-size: 15.5px; line-height: 1.55; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc thead th { background: var(--paper-alt); font: 600 11.5px/1.45 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.doc tbody th { width: 30%; font-weight: 600; }
.doc address { padding: 16px 20px; background: var(--face); border: 1px solid var(--line); border-left: 4px double var(--seal); }
.periods { margin: 10px 0 20px; background: var(--face); border: 1px solid var(--line); }
.periods div { display: grid; grid-template-columns: 15em 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.periods div:first-child { border-top: 0; }
.periods dt { font-weight: 600; }
.periods dd { margin: 0; color: var(--ink-2); }
.schedule { margin: 14px 0 0; background: var(--face); border: 1px solid var(--line); }
.schedule div { display: grid; grid-template-columns: 2.6em 1fr; gap: 14px; padding: 17px 20px; border-top: 1px solid var(--line); }
.schedule div:first-child { border-top: 0; }
.schedule dt { font: 400 32px/1 var(--display); color: var(--seal); }
.schedule dd { margin: 0; }
.schedule dd strong { display: block; margin-bottom: 5px; font: 400 20px/1.25 var(--display); }

/* 404 */
.void { padding: 64px 0 96px; }
.cert-void .cert-face { padding: 64px 24px 56px; }
.void-title { max-width: 15em; margin: 0 auto 14px; font-size: clamp(32px, 5vw, 54px); }
.void-stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  padding: 0 .22em; border: 7px solid currentColor; color: var(--seal); opacity: .13; pointer-events: none;
  font: 400 clamp(90px, 18vw, 190px)/1.05 var(--display); letter-spacing: .12em; text-transform: uppercase;
}

/* Footer */
.colophon { background: var(--ink); color: #D9DEE7; font-size: 15.5px; }
.colophon-band { height: 12px; background: var(--ink) url(/assets/band-light.svg) 0 0 / 24px 12px repeat-x; }
.colophon-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding: 48px 0 30px; }
.colophon a { color: var(--paper); text-decoration-color: rgba(244, 239, 227, .35); }
.colophon a:hover { color: #FFFFFF; text-decoration-color: currentColor; }
.colophon-brand { margin-bottom: 12px; font: 400 27px/1 var(--display); color: var(--paper); }
.colophon-title { margin: 6px 0 14px; font: 600 11px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--teal-2); }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { margin: 0 0 9px; }
.colophon address { margin: 0 0 10px; }
.colophon-note { margin: 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #AEB6C4; }
.colophon-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 0 0 30px; font-size: 13px; color: #8F98A8; }

/* Responsive */
@media (max-width: 1000px) {
  .thesis { grid-template-columns: repeat(2, 1fr); }
  .coupons-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .doc-toc { position: static; max-height: none; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .coupons { grid-template-columns: 1fr; }
  .cert-foot { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .cert-sign:last-child { text-align: center; }
  .cert-foot .seal { order: -1; margin: 0 auto; }
  .reply { grid-template-columns: 1fr; }
  .reply .btn { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { width: min(1120px, 100% - 28px); }
  .hero { padding-top: 22px; }
  .cert { padding: 9px; }
  .cert-top { justify-content: center; }
  .thesis { grid-template-columns: 1fr; }
  .termsheet { padding-inline: 18px; }
  .termsheet dl div, .periods div { grid-template-columns: 1fr; gap: 2px; }
  .register th, .register td { display: block; width: auto; }
  .register th { padding: 14px 16px 0; border-bottom: 0; }
  .register td { padding: 2px 16px 14px; }
  .coupon { grid-template-columns: 70px 1fr; }
  .coupon::before, .coupon::after { left: 60px; }
  .coupon-stub b { font-size: 34px; }
  .doc tbody th { width: 38%; }
  .colophon-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .masthead, .colophon, .doc-toc, .cert-actions, .skip { display: none; }
  body { background: #FFFFFF; }
  .doc-layout { display: block; }
}
