:root {
  --canvas: #f5f5f3;
  --surface: #ffffff;
  --ink: #20201e;
  --muted: #6f706b;
  --soft: #8c8d87;
  --line: #dedfd9;
  --focus: #315f50;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; }
h1, h2, p, ul { margin-top: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.app-icon { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; box-shadow: 0 10px 32px rgba(32, 32, 30, .1); }
.app-icon-small { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 5px 18px rgba(32, 32, 30, .09); }

.placeholder-page { display: grid; min-height: 100svh; padding: 32px; }
.placeholder { display: grid; justify-items: center; align-content: center; width: min(560px, 100%); margin: auto; text-align: center; }
.placeholder .app-icon { margin-bottom: 24px; }
.wordmark { margin-bottom: 15px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.placeholder h1 { margin-bottom: 0; font-size: clamp(42px, 8vw, 72px); font-weight: 560; line-height: 1; letter-spacing: -.055em; }

.document-page { min-height: 100svh; background: var(--surface); }
.document-header { border-bottom: 1px solid var(--line); }
.document-header-inner, .document, .document-footer-inner { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.document-header-inner { display: flex; align-items: center; min-height: 88px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 16px; font-weight: 680; letter-spacing: -.02em; text-decoration: none; }
.document { padding-block: 72px 96px; }
.document-heading { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.document-heading h1 { margin-bottom: 18px; font-size: clamp(42px, 8vw, 68px); font-weight: 580; line-height: 1.02; letter-spacing: -.055em; }
.document-heading p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.document section { padding-top: 42px; }
.document h2 { margin-bottom: 15px; font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.document p, .document li { color: #43443f; font-size: 16px; line-height: 1.72; }
.document p { margin-bottom: 16px; }
.document ul { margin-bottom: 16px; padding-left: 22px; }
.document li + li { margin-top: 9px; }
.document a { color: #245947; }
.contact-card { margin-top: 44px; padding: 24px; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; }
.contact-card h2 { margin-bottom: 10px; }
.contact-card p:last-child { margin-bottom: 0; }
.document-footer { border-top: 1px solid var(--line); background: var(--canvas); }
.document-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; color: var(--muted); font-size: 13px; }
.document-footer p { margin-bottom: 0; }

.error-page { display: grid; min-height: 100svh; padding: 32px; }
.error-card { display: grid; justify-items: start; align-content: center; width: min(620px, 100%); margin: auto; }
.error-card .brand-link { margin-bottom: 76px; }
.page-code { margin-bottom: 14px; color: var(--soft); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.error-card h1 { margin-bottom: 30px; font-size: clamp(44px, 9vw, 72px); font-weight: 560; line-height: 1; letter-spacing: -.055em; }
.text-link { color: #245947; font-size: 15px; font-weight: 650; }

@media (max-width: 560px) {
  .placeholder-page, .error-page { padding: 24px; }
  .document-header-inner, .document, .document-footer-inner { width: min(100% - 36px, 760px); }
  .document-header-inner { min-height: 76px; }
  .document { padding-block: 54px 72px; }
  .document-heading { padding-bottom: 38px; }
  .document section { padding-top: 34px; }
  .document-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; min-height: 112px; }
}
