/* DTTASA Care's web deletion page (R1.10), in Care's approved design (Apothecary Glass, 8 November 2026): Fraunces for
   the title, Hanken Grotesk for everything else, the apothecary green on the screen's pale ground, and the living
   ground's green and gold light behind. The sentence that says what is deleted sits on a solid card: never glass behind
   it. Colours are Care's own tokens (apps/care/src/design/palette.ts), light and dark. */
@font-face {
  font-family: 'Care Fraunces';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/care/fonts/Fraunces24pt-Medium.ttf) format('truetype');
}
@font-face {
  font-family: 'Care Hanken';
  font-weight: 400;
  font-display: swap;
  src: url(/assets/care/fonts/HankenGrotesk-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Care Hanken';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/care/fonts/HankenGrotesk-SemiBold.ttf) format('truetype');
}

:root {
  --screen: #f7faf9;
  --card: #ffffff;
  --ink: #13211e;
  --ink2: #3a4b47;
  --muted: #62736f;
  --rule: #d5e0dc;
  --apothecary: #0d5c52;
  --on-apothecary: #ffffff;
  --gold: #b8862a;
  --stop: #b23a2e;
  --warn: #8e600d;
  --ok: #2e784d;
  --glow-green: rgba(13, 92, 82, 0.1);
  --glow-gold: rgba(184, 134, 42, 0.1);
  --focus: #0d5c52;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --screen: #0f1a18;
    --card: #13211e;
    --ink: #e6efec;
    --ink2: #bfd0cb;
    --muted: #8fa39e;
    --rule: #22332f;
    --apothecary: #5cc4b0;
    --on-apothecary: #0f1a18;
    --gold: #e0b04f;
    --stop: #ec8478;
    --warn: #e3ae4a;
    --ok: #6cc28c;
    --glow-green: rgba(92, 196, 176, 0.08);
    --glow-gold: rgba(224, 176, 79, 0.07);
    --focus: #5cc4b0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--screen);
  color: var(--ink);
  font: 400 1.0625rem/1.55 'Care Hanken', system-ui, sans-serif;
}
.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 12% -10%, var(--glow-green), transparent 70%),
    radial-gradient(50rem 36rem at 100% 0%, var(--glow-gold), transparent 70%);
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0.375rem; }

.top { max-width: 36rem; margin: 0 auto; padding: 1.5rem 1rem 0; }
.mark {
  font-weight: 600;
  color: var(--apothecary);
  text-decoration: none;
}
.mark:hover { text-decoration: underline; }

main { max-width: 36rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
main:focus { outline: none; }
h1 {
  font: 500 clamp(2rem, 6.5vw, 2.75rem)/1.12 'Care Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 { font: 500 1.5rem/1.25 'Care Fraunces', Georgia, serif; margin: 0 0 0.75rem; text-wrap: balance; }
.lead { color: var(--ink2); margin: 0 0 1.75rem; max-width: 34em; }

/* The one sentence that matters: solid, edged, never glass. */
.sentence {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: 1.25rem 1.375rem;
  margin: 0 0 1.75rem;
}
.sentence p { margin: 0; font-weight: 600; font-size: 1.125rem; line-height: 1.5; }

#state { min-height: 7rem; }
.panel { display: grid; gap: 1rem; }
.who { color: var(--ink2); margin: 0; }
.status {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: 1.25rem 1.375rem;
  display: grid;
  gap: 0.5rem;
}
.status strong { font-size: 1.125rem; line-height: 1.45; }
.status p { margin: 0; color: var(--ink2); }

.buttons { display: grid; gap: 0.75rem; }
@media (min-width: 30rem) { .buttons.row { grid-template-columns: 1fr 1fr; } }
button {
  font: 600 1.0625rem/1.2 'Care Hanken', system-ui, sans-serif;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms;
}
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.main { background: var(--apothecary); color: var(--on-apothecary); }
.stop { background: var(--stop); color: #ffffff; }
@media (prefers-color-scheme: dark) { .stop { color: #0f1a18; } }
.quiet { background: transparent; color: var(--apothecary); border-color: var(--apothecary); }
.plain {
  background: none;
  border: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  color: var(--apothecary);
  text-decoration: underline;
  justify-self: start;
}

.notice {
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid currentColor;
  margin: 0 0 1rem;
}
.notice.warn { color: var(--warn); }
.notice.stop { color: var(--stop); }
.notice.ok { color: var(--ok); }
.notice p { margin: 0; color: var(--ink); }
.notice p + p { margin-top: 0.25rem; color: var(--ink2); }

.aside { color: var(--muted); font-size: 0.9375rem; margin: 2rem 0 0; }
.aside + .aside { margin-top: 0.75rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
a { color: var(--apothecary); }

/* Loading: a still outline of what comes, softly breathing; still with reduced motion. */
.skeleton { display: grid; gap: 0.75rem; }
.skeleton span { display: block; height: 3.25rem; border-radius: 999px; background: var(--rule); opacity: 0.6; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.3; } }

dialog {
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  padding: 1.5rem;
  max-width: min(30rem, calc(100vw - 2rem));
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop { background: rgba(10, 18, 16, 0.45); }
dialog[open] { animation: rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: scale(0.95); } }
dialog p { color: var(--ink2); margin: 0 0 1.25rem; }
.actions { display: grid; gap: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .sentence, .status, dialog, .notice { border: 1px solid CanvasText; }
}

/* The bar and the foot every dttasa.org/care page shares: copied from care.css (tools/care/web-pages.mjs in dttasa-apps). */
img { display: block; }
/* The bar: Care's mark, the five pages people look for first, and the way back to dttasa.org. It stays at the top. */
.bar { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--screen) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; min-height: 4rem; display: flex; align-items: center; gap: 0.5rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font: 500 1.1875rem/1 'Care Fraunces', Georgia, serif; white-space: nowrap; }
.brand img { border-radius: 0.5rem; }
.primary { flex: 1 1 auto; min-width: 0; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.primary ul::-webkit-scrollbar { display: none; }
.primary li + li { margin-top: 0; }
.primary a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: var(--ink2); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.primary a:hover { color: var(--ink); background: color-mix(in srgb, var(--apothecary) 8%, transparent); }
.primary a[aria-current="page"] { color: var(--apothecary); font-weight: 600; background: color-mix(in srgb, var(--apothecary) 10%, transparent); }
.site { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 47.99rem) {
  .bar-in { flex-wrap: wrap; padding-top: 0.75rem; justify-content: space-between; gap: 0.25rem 1rem; }
  .primary { order: 3; flex-basis: 100%; margin: 0 -0.75rem; }
  .primary ul { padding: 0 0 0.5rem; }
  html { scroll-padding-top: 7.5rem; }
}

.foot { border-top: 1px solid var(--rule); background: var(--card); color: var(--ink2); font-size: 0.925rem; line-height: 1.6; }
.foot-in { max-width: 70rem; margin: 0 auto; padding: 3rem 1.25rem 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; }
@media (min-width: 48rem) { .foot-in { grid-template-columns: 1fr 1fr; } .foot .legal { grid-column: 1 / -1; } }
@media (min-width: 60rem) { .foot-in { grid-template-columns: 15rem 15rem minmax(0, 1fr); } .foot .legal { grid-column: auto; } }
.foot nav p { color: var(--ink); font-weight: 600; margin-bottom: 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 0.25rem; }
.foot a { color: var(--ink2); text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--apothecary); text-decoration: underline; }
.foot .legal { color: var(--muted); font-size: 0.875rem; }
.foot .legal a { text-decoration: underline; }
.foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink2); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

