/* All Is Well — small custom layer on top of Tailwind CDN. */
:root {
  --paper: #FAF7F2;
  --ink: #1F2A24;
  --forest: #2F6B4F;
  --amber: #E8B04B;
}
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); line-height: 1.65; font-family: "Inter", system-ui, sans-serif; }
h1, h2, h3, .font-display { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; letter-spacing: -0.01em; }

/* Honeypot: off-screen rather than display:none, and out of the tab order via tabindex=-1 */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Focus */
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

/* Links inside running text */
.prose-aiw a, .legal a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.prose-aiw a:hover, .legal a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 1.75rem; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid var(--forest); background: var(--forest); color: #fff; transition: background-color .15s, color .15s; text-align: center; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--forest); }
.btn-quiet:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .9rem; }

/* Form controls */
.field-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field-hint { font-size: .9rem; color: #54615a; margin-bottom: .45rem; }
.field-input { display: block; width: 100%; min-height: 56px; padding: .75rem 1rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c2bb; border-radius: .75rem; }
textarea.field-input { min-height: 8rem; line-height: 1.5; }
.field-input:hover { border-color: #7f8d84; }
.field-input:focus-visible { outline: 3px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
.field-invalid { border-color: #a63d2f; background: #fff8f6; }
.field-error { color: #9a3226; font-weight: 500; font-size: .95rem; margin-top: .4rem; }
.choice { display: flex; align-items: flex-start; gap: .85rem; min-height: 56px; padding: .8rem 1rem; background: #fff; border: 1.5px solid #b9c2bb; border-radius: .75rem; cursor: pointer; }
.choice:hover { border-color: #7f8d84; }
.choice:has(input:checked) { border-color: var(--forest); background: #f1f6f2; }
.choice:has(input:focus-visible) { outline: 3px solid var(--forest); outline-offset: 2px; }
.choice input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--forest); }
.choice-desc { display: block; font-size: .9rem; color: #54615a; }
fieldset.form-group { border: 0; padding: 0; margin: 0; min-width: 0; }

/* The one moment of motion: a slow glow on the warm dot */
@keyframes aiw-glow { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .9; transform: scale(1.18); } }
.aiw-glow { transform-box: fill-box; transform-origin: center; animation: aiw-glow 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .aiw-glow { animation: none; opacity: .7; } }

/* Legal copy styling (content comes from legal/*_body.html) */
.legal { max-width: 42rem; }
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; line-height: 1.25; }
.legal h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1rem; }

/* FAQ */
details.faq summary { cursor: pointer; min-height: 44px; padding: .6rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--forest); line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }

/* Admin tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-weight: 600; padding: .6rem .75rem; border-bottom: 2px solid #cfd6d0; white-space: nowrap; }
.admin-table td { padding: .65rem .75rem; border-bottom: 1px solid #e4e8e4; vertical-align: top; }
