:root {
  color-scheme: light;
  --canvas: #f2f5f1;
  --paper: #ffffff;
  --ink: #182920;
  --muted: #48594f;
  --green: #123c32;
  --accent: #1f5847;
  --line: #d8dfd6;
  --gold: #ebc477;
  --star: #88601c;
  --serif: Georgia, 'Times New Roman', serif;
  font: 100%/1.6 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--accent); text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #9a5214; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.035em; }
h3 { font-size: 1.42rem; letter-spacing: -.02em; }
p { margin: .55rem 0 0; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: white; padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.top { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 750; color: var(--ink); }
.brand span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #a1b5a7; border-radius: 50%; font-family: var(--serif); font-size: .85rem; }
.top-contact { font-size: .92rem; font-weight: 700; padding: .45rem 0 .45rem .65rem; }
.header-card { background: var(--paper); border: 1px solid var(--line); border-radius: 19px; }
.cover {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 38%);
  align-items: center;
  gap: 1rem;
  min-height: 280px;
  padding: 2.15rem clamp(1.35rem, 5vw, 4rem) 2.9rem;
  border-radius: 18px 18px 0 0;
  color: #fff8e9;
  background: radial-gradient(ellipse at 87% 20%, #2b614d 0%, transparent 46%), linear-gradient(110deg, #102f29, #1a4739);
  overflow: hidden;
}
.eyebrow { margin: 0 0 .75rem; color: #f0cb88; font-size: .78rem; font-weight: 670; letter-spacing: .14em; text-transform: uppercase; }
.cover-title { font: 500 clamp(2.7rem, 6.25vw, 5.45rem)/.97 var(--serif); letter-spacing: -.055em; margin: 0; }
.paper-art { position: relative; height: 208px; width: min(100%, 300px); justify-self: center; }
.paper { position: absolute; width: 53%; min-height: 168px; padding: 1rem; background: #fff9ea; color: #1c4336; box-shadow: 0 12px 28px #0a241c62; }
.paper strong, .mini-doc strong { display: block; border-bottom: 1px solid #789684; padding-bottom: .35rem; font-family: var(--serif); font-size: 1rem; white-space: nowrap; }
.paper b, .mini-doc b { display: block; margin-top: .55rem; font-size: .57rem; }
.paper i, .mini-doc i { display: block; height: 3px; margin-top: .36rem; width: 95%; background: #b9c8bb; }
.paper i:nth-of-type(even), .mini-doc i:nth-of-type(even) { width: 68%; }
.rear { transform: rotate(-12deg); top: 26px; left: 9%; background: #dfebdf; }
.front { transform: rotate(10deg); right: 9%; top: 14px; border-top: 4px solid #d1ab62; }
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.9rem, 3vw, 1.65rem); align-items: center; padding: 1.25rem clamp(1rem, 4vw, 2.8rem) 1.45rem; }
.avatar { display: grid; place-items: center; align-self: start; width: clamp(75px, 11vw, 118px); aspect-ratio: 1; margin-top: -2.9rem; position: relative; border-radius: 50%; border: 5px solid var(--paper); background: #e1eadc; color: var(--green); font: 500 clamp(1.9rem, 4vw, 3.2rem)/1 var(--serif); text-decoration: none; box-shadow: 0 0 0 1px #bbc9bc; }
.identity h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.identity p { margin-top: .15rem; color: var(--muted); }
.proof { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .15rem 1.05rem; font-size: .86rem; align-items: center; }
.stars { color: var(--star); letter-spacing: .085em; white-space: nowrap; }
nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding: .4rem clamp(.4rem, 3vw, 2rem); border-top: 1px solid var(--line); }
nav a { min-height: 44px; display: grid; place-items: center; border-radius: 9px; padding: .3rem .15rem; text-align: center; text-decoration: none; font-weight: 690; font-size: .94rem; }
nav a:hover, nav .selected, nav [aria-current] { background: #e2ece1; color: #174537; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .95rem; border-radius: 8px; border: 1px solid #8aa492; color: var(--green); font-weight: 730; font-size: .9rem; text-decoration: none; }
.button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.primary { background: var(--green); color: #ffffff; border-color: var(--green); }
.gold { background: var(--gold); color: #27321d; border-color: var(--gold); }
.section { padding-block: clamp(2rem,5vw,3.7rem); }
.section-head { margin-bottom: 1.3rem; }
.section-head p, .page-heading p, .panel p, .feature p, footer p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.tile, .panel, .portfolio-card, .document { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.tile { padding: 1.25rem; min-height: 156px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: background-color 150ms ease, border-color 150ms ease; }
.tile:hover { background: #edf3e9; border-color: #81a48f; }
.tile p { color: var(--muted); margin: .45rem 0 .8rem; }
.tile > span { color: var(--accent); font-size: .85rem; font-weight: 740; margin-top: auto; }
.tile > h2 { font-size: 1.45rem; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.feature { background: #e8eee3; border-radius: 16px; padding: clamp(1rem, 4vw, 2.7rem); align-items: center; }
.feature .button, .panel .button { margin-top: 1rem; }
blockquote { margin: 0; padding: 1rem 1.2rem; border-left: 2px solid #af8240; }
blockquote p { font-size: 1.13rem; }
cite { display: block; font-size: .86rem; color: var(--muted); margin-top: .55rem; font-style: normal; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: clamp(1.2rem,4vw,2.2rem); background: var(--green); color: #ffffff; border-radius: 14px; }
.callout p { color: #e1ede4; }
.page-heading { padding-block: clamp(2.2rem, 6vw, 4.2rem) 1.8rem; }
.page-heading p { max-width: 65ch; font-size: 1.1rem; }
.back { display: inline-block; margin-bottom: .85rem; font-size: .88rem; font-weight: 700; }
.panel { padding: clamp(1.15rem, 3vw, 2rem); }
.subtle { background: #e8eee3; }
.checklist, .steps { padding-left: 1.3rem; }
.checklist li + li, .steps li + li { margin-top: .45rem; }
.link-list { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.portfolio-card { overflow: hidden; }
.mini-doc { background: #e8eee3; padding: 1.5rem; min-height: 155px; }
.mini-doc strong { white-space: normal; }
.mini-doc span { font-size: .83rem; }
.mini-doc hr { display: none; }
.portfolio-label { padding: 1rem; }
.portfolio-label h2 { font-size: 1.55rem; margin-bottom: .75rem; }
.document { max-width: 740px; margin-inline: auto; padding: clamp(1.25rem,5vw,3.6rem); }
.document header { border-bottom: 2px solid #719182; padding-bottom: .9rem; }
.document header strong { font: 500 2rem var(--serif); }
.document section { padding: 1rem 0 0; }
.document h2 { font: 750 1rem system-ui, sans-serif; }
footer { border-top: 1px solid var(--line); margin-top: 3.2rem; padding-block: 1.4rem 2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
footer p { font-size: .86rem; margin-top: .15rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .92rem; }
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile > .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .top { min-height: 58px; }
  .cover { min-height: 205px; grid-template-columns: 1fr; }
  .paper-art { display: none; }
  .profile { grid-template-columns: 1fr; gap: .55rem; }
  .avatar { margin-top: -2.8rem; }
  .profile > .button { grid-column: 1; }
  nav a { font-size: .82rem; }
  .grid, .split { grid-template-columns: 1fr; }
  .tile { min-height: auto; }
  .callout, footer { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
@media print {
  body { background: white; }
  body > header, body > footer, .page-heading, .skip, .document + p { display: none; }
  .document { border: 0; padding: 0; }
}

/* Portfolio previews use the same documents that visitors open. */
.sample-preview {
  display: block;
  padding: 1.1rem 1.1rem .85rem;
  background: #e0e9e1;
}
.sample-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
  margin-inline: auto;
  box-shadow: 0 4px 14px #1829202b;
  transition: transform 160ms ease;
}
.sample-preview:hover img { transform: translateY(-3px); }
.sample-preview:focus-visible { outline-offset: -5px; }
.sample-paper {
  max-width: 768px;
  min-height: 992px;
  margin-inline: auto;
  color: #232f33;
  background: white;
  box-shadow: 0 12px 35px #18292017;
  border: 1px solid #cbd7d5;
  font: 1rem/1.52 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.sample-heading { padding: 2.8rem 3.2rem 1.3rem; }
.sample-heading p { margin: 0; }
.sample-name { font: 500 clamp(2rem, 6vw, 3.25rem)/1.08 var(--serif); letter-spacing: -.04em; }
.sample-heading .sample-role { margin-top: .35rem; font-weight: 700; }
.sample-heading .sample-contact { margin-top: .25rem; font-size: .82rem; }
.sample-content { padding: .4rem 3.2rem 2.5rem; }
.sample-content h2 { margin-top: 1.1rem; padding-bottom: .35rem; border-bottom: 1px solid #97ada3; font: 750 .87rem/1.35 system-ui,sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sample-content h3 { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: .6rem; margin-top: .8rem; font: 750 1rem/1.35 system-ui,sans-serif; }
.sample-content h3 span, .company { color: #465950; font-size: .84rem; }
.sample-content .company { margin: .15rem 0 0; }
.sample-content ul { margin: .35rem 0 .85rem; padding-left: 1.15rem; }
.sample-content li + li { margin-top: .22rem; }
.sample-cv { border-top: 9px solid #275a47; }
.sample-cv h2 { color: #204e3c; }
.sample-executive .sample-heading { background: #173044; color: white; border-bottom: 5px solid #a48551; }
.sample-executive h2 { color: #173044; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .65rem; margin-top: 1rem; background: #e9eff3; text-align: center; font-size: .75rem; }
.metrics b { display: block; color: #173044; font: 600 clamp(1rem, 4vw, 1.55rem)/1.15 var(--serif); }
.sample-letter { border-top: 9px solid #977244; }
.sample-letter .sample-heading { border-bottom: 1px solid #cabba8; }
.sample-letter .sample-content { font: 1.08rem/1.58 var(--serif); }
.sample-letter .sample-content h2 { color: #644a2d; text-transform: none; letter-spacing: 0; font: 700 1.22rem/1.3 var(--serif); }
.sample-letter .sample-content p { margin-top: 1rem; }
.sample-letter .sample-content .address { margin-top: 1.35rem; }
.sample-letter .sample-content .signature { margin-top: 1.55rem; }

@media (max-width: 560px) {
  .sample-paper { min-height: 0; }
  .sample-heading { padding: 1.5rem 1.15rem 1.1rem; }
  .sample-content { padding: .4rem 1.15rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sample-preview img { transition: none; }
  .sample-preview:hover img { transform: none; }
}
@media print {
  .sample-paper { min-height: 0; box-shadow: none; border: 0; print-color-adjust: exact; }
  .sample-paper + p { display: none; }
  .sample-heading { padding-top: .3rem; }
}
