
:root {
  --pdn-space: 1rem;
  --pdn-space-large: clamp(3rem, 7vw, 6rem);
  --pdn-content-width: 80rem;
  --pdn-reading-width: 68ch;
  --pdn-radius: .2rem;
  --pdn-surface: #fffefa;
  --pdn-background: #f2f1ec;
  --pdn-ink: #182526;
  --pdn-muted: #4c5c5b;
  --pdn-accent: #8c3f22;
  --pdn-line: #d7d8ce;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pdn-background); color: var(--pdn-ink); font: 1rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header, .site-footer, main { width: min(100% - 3rem, var(--pdn-content-width)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--pdn-space); padding-block: 1.2rem; border-bottom: 1px solid var(--pdn-line); }
.site-header nav { flex: 1 1 auto; }
.brand { font-size: .94rem; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
.site-header a, .site-footer a { color: inherit; }
.site-header nav a { font-size: .88rem; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--pdn-accent); }
.language-switcher { display: inline-flex; min-height: 2.75rem; align-items: center; padding-inline: .75rem; white-space: nowrap; }
.hero, .content-section, .page-content { margin-block: 1.25rem; padding: clamp(1.5rem, 6vw, 5rem); border: 1px solid var(--pdn-line); border-radius: var(--pdn-radius); background: var(--pdn-surface); }
.hero { padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1 { max-width: 15ch; margin: .3em 0; font-size: clamp(2.65rem, 7vw, 6rem); line-height: .99; letter-spacing: -.065em; }
.hero > p:not(.eyebrow) { max-width: var(--pdn-reading-width); }
.hero .summary { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; }
.eyebrow { margin: 0; color: var(--pdn-accent); font-size: .74rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.summary { color: var(--pdn-muted); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h2 { max-width: 24ch; font-size: clamp(1.8rem, 4vw, 3.1rem); }
.content-section > p, .content-section li, .page-content p, .page-content li { max-width: var(--pdn-reading-width); }
.content-section a, .page-content a { color: var(--pdn-accent); }
.sample-document { max-height: 48rem; overflow: auto; padding: 1rem; border: 1px solid var(--pdn-line); border-radius: .5rem; background: #f7f5ef; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.sample-document.accounting-table { white-space: pre; overflow-wrap: normal; }
.skill-source-document { max-height: 48rem; overflow: auto; padding: 1rem; border: 1px solid var(--pdn-line); border-radius: .5rem; background: #f7f5ef; white-space: pre-wrap; overflow-wrap: anywhere; font: .85rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.content-section details { max-width: var(--pdn-reading-width); margin-block: 1rem; padding: .75rem 1rem; border: 1px solid var(--pdn-line); border-radius: .5rem; }
.content-section summary { cursor: pointer; font-weight: 700; }
.cta-group { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.5rem; }
.primary-cta { display: inline-flex; align-items: center; min-height: 3rem; padding: .65rem 1.1rem; border: 1px solid var(--pdn-accent); border-radius: var(--pdn-radius); background: var(--pdn-accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-cta:hover:not(:disabled) { filter: brightness(.92); }
.primary-cta:disabled { border-color: #7c8279; background: #e7e7df; color: #36413f; cursor: not-allowed; opacity: 1; }
.cta-status { align-self: center; color: var(--pdn-muted); font-size: .92rem; }
.cta-status:hover { color: var(--pdn-accent); }
.skill-page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.skill-page-actions a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .5rem .85rem; border: 1px solid var(--pdn-line); border-radius: .5rem; background: #f7f5ef; font-weight: 700; text-decoration: none; }
.skill-page-actions a:hover { border-color: var(--pdn-accent); }
.skill-summary { max-width: 60ch; font-size: 1.15rem; line-height: 1.55; }
.sample-table-wrap { max-width: 100%; margin-block: 1rem; overflow-x: auto; border: 1px solid var(--pdn-line); border-radius: .5rem; background: #fff; }
.sample-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sample-table th, .sample-table td { padding: .55rem .7rem; border: 1px solid var(--pdn-line); text-align: left; vertical-align: top; }
.sample-table th { background: #edf0e8; }
.hero-note { color: var(--pdn-muted); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.content-card { padding: 1.25rem; border-top: 2px solid var(--pdn-accent); background: #f7f5ef; }
.content-card h3 { margin-top: 0; }
.content-card a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
.model-catalog-parent { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--pdn-accent); text-underline-offset: .18em; }
.model-catalog-return { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--pdn-line); }
.how-it-works { background: #e5e8df; }
.step-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 3rem 0 1rem; padding: 0; list-style: none; }
.step-flow li { position: relative; padding: 1rem 1.25rem 1rem 0; border-top: 1px solid #9ba79b; }
.step-number { color: var(--pdn-accent); font-size: .78rem; font-weight: 750; letter-spacing: .08em; }
.step-flow h3 { margin: .8rem 0 .5rem; font-size: 1.25rem; }
.step-flow p { margin: 0; color: #354441; }
.step-flow li:not(:last-child)::after { position: absolute; top: -.45rem; right: .8rem; width: .8rem; height: .8rem; border-top: 1px solid #66756c; border-right: 1px solid #66756c; content: ""; transform: rotate(45deg); }
.flow-note { padding-top: 1rem; border-top: 1px solid #b9c1b5; color: #354441; font-size: .92rem; }
.model-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--pdn-line); }
.model-list li { padding: .95rem .2rem; border-bottom: 1px solid var(--pdn-line); }
.model-list a { display: block; color: var(--pdn-ink); font-size: 1.08rem; font-weight: 650; text-decoration: none; }
.model-list a::after { float: right; color: var(--pdn-accent); content: "↗"; }
.model-lineage, .model-identity { color: var(--pdn-muted); font-size: .84rem; }
.model-lineage { display: block; padding-top: .3rem; }
.model-identity { margin-top: .5rem; }
.models-note { color: var(--pdn-muted); font-size: .92rem; }
.trust-section { background: #202e2c; color: #f8f7f0; }
.trust-section .eyebrow { color: #e4a57d; }
.trust-section > p { max-width: var(--pdn-reading-width); }
.trust-section > p:last-child a { display: inline-flex; min-height: 2.75rem; align-items: center; color: #fff; text-underline-offset: .2em; }
.creator-portrait { width: 7rem; height: 7rem; object-fit: cover; border-radius: 50%; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: var(--pdn-space-large); color: var(--pdn-muted); }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .5rem; background: white; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--pdn-accent); outline-offset: 3px; }
.form-field { display: grid; gap: .4rem; margin-block: 1rem; }
.form-field[hidden], .contact-form[hidden], .contact-success[hidden] { display: none !important; }
.form-field input, .form-field textarea { width: 100%; max-width: 40rem; padding: .75rem; border: 1px solid #78817a; border-radius: var(--pdn-radius); background: #fffefa; color: var(--pdn-ink); font: inherit; }
.form-status { padding: .75rem; border-radius: var(--pdn-radius); background: #e5e8df; }
.assist-disclosure { max-width: 42rem; color: var(--pdn-muted); font-size: .9rem; }
.assist-result { max-width: 42rem; margin-block: 1rem; padding: 1rem; border-left: 3px solid var(--pdn-accent); background: #f7f5ef; }
.assist-result[hidden] { display: none !important; }
.assist-result [data-assist-insight] { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 50rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { width: 100%; }
  .site-header ul { gap: .5rem .75rem; }
  .site-footer { gap: 1rem; flex-direction: column; }
  .step-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .step-flow li:not(:last-child)::after { display: none; }
}
@media (max-width: 38rem) {
  .site-header, .site-footer, main { width: min(100% - 1.5rem, var(--pdn-content-width)); }
  .site-header ul { flex-wrap: wrap; width: auto; padding-block: .25rem; }
  .hero, .content-section, .page-content { padding: 1.35rem; }
  .hero { padding-block: 3.5rem; }
  .hero h1 { max-width: 100%; font-size: clamp(1.7rem, 8.5vw, 4rem); }
  .step-flow { grid-template-columns: 1fr; gap: 0; }
  .step-flow li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .5rem; padding-block: 1rem; }
  .step-number { grid-row: span 2; }
  .step-flow h3 { margin: .1rem 0; }
  .step-flow p { grid-column: 2; }
  .model-list { grid-template-columns: 1fr; }
  .cta-group { align-items: flex-start; flex-direction: column; }
}
