/* legal.fline.dev: one calm reading column. The page's own colour (--accent) comes from the app or service. */

:root {
   --paper: #f4f5f7;
   --surface: #ffffff;
   --ink: #1c1f26;
   --muted: #586071;
   --rule: #d9dde4;
   --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
   --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", sans-serif;
   color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
   :root {
      --paper: #13151a;
      --surface: #1c1f26;
      --ink: #e8eaef;
      --muted: #a2a8b5;
      --rule: #2e333d;
   }
}

/* Safari picks up the reader's Dynamic Type size here; everything else is in rem. */
html { font-size: 100%; }
@supports (font: -apple-system-body) {
   html { font: -apple-system-body; }
}

* { box-sizing: border-box; }

body {
   margin: 0;
   background: var(--paper);
   color: var(--ink);
   font-family: var(--sans);
   font-size: 1.0625rem;
   line-height: 1.6;
   -webkit-text-size-adjust: 100%;
}

:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant) { line-height: 1.75; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
   position: absolute; width: 1px; height: 1px; overflow: hidden;
   clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar: site name and language switcher. */
.bar {
   max-width: 42rem;
   margin: 0 auto;
   padding: 1rem 1.25rem 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   font-size: 0.9375rem;
}

.home { color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.home:hover { color: var(--ink); }

.langs { position: relative; }
.langs summary {
   list-style: none;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   padding: 0.35rem 0.75rem;
   border: 1px solid var(--rule);
   border-radius: 999px;
   background: var(--surface);
   color: var(--ink);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs ul {
   position: absolute;
   right: 0;
   z-index: 2;
   margin: 0.4rem 0 0;
   padding: 0.35rem;
   list-style: none;
   min-width: 11rem;
   background: var(--surface);
   border: 1px solid var(--rule);
   border-radius: 12px;
   box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}
.langs li a {
   display: block;
   padding: 0.45rem 0.75rem;
   border-radius: 8px;
   color: var(--ink);
   text-decoration: none;
}
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current="page"] { color: var(--accent); font-weight: 600; }

main {
   max-width: 42rem;
   margin: 0 auto;
   padding: 2rem 1.25rem 3rem;
}

/* Convenience-translation notice: the same look on every non-German page. */
.notice {
   margin: 0 0 2rem;
   padding: 0.85rem 1rem;
   border: 1px solid var(--rule);
   border-radius: 12px;
   background: var(--surface);
   font-size: 0.9375rem;
   color: var(--muted);
}
.notice p { margin: 0; }
.notice a { font-weight: 600; white-space: nowrap; }

/* App or service identity. */
.identity {
   display: flex;
   align-items: center;
   gap: 1.25rem;
   margin-bottom: 2.25rem;
}
.identity .icon {
   flex: none;
   width: 4.5rem;
   height: 4.5rem;
   border-radius: 22%;
   box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 8px 24px -8px var(--accent);
}
h1 {
   margin: 0;
   font-family: var(--serif);
   font-size: clamp(2rem, 6vw, 2.75rem);
   font-weight: 600;
   line-height: 1.1;
   letter-spacing: -0.01em;
}
.kind { margin: 0.35rem 0 0; font-size: 1.125rem; color: var(--ink); }
.updated { margin: 0.1rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* At a glance: four plain answers, the part most people read. */
.glance {
   margin: 0 0 2.75rem;
   padding: 1.25rem 1.5rem 0.5rem;
   background: var(--surface);
   border-radius: 16px;
   border-top: 5px solid var(--accent);
}
.glance h2 {
   margin: 0 0 0.5rem;
   font-family: var(--serif);
   font-size: 1.375rem;
   font-weight: 600;
}
.glance dl { margin: 0; }
.glance-row {
   display: grid;
   grid-template-columns: 10rem 1fr;
   gap: 0.25rem 1.25rem;
   padding: 0.85rem 0;
   border-top: 1px solid var(--rule);
}
.glance-row:first-child { border-top: 0; }
.glance dt { font-weight: 650; color: var(--accent); line-height: 1.45; }
.glance dd { margin: 0; line-height: 1.5; }

@media (max-width: 34rem) {
   .glance { padding: 1.1rem 1.1rem 0.4rem; }
   .glance-row { grid-template-columns: 1fr; }
   .identity { gap: 1rem; }
   .identity .icon { width: 3.75rem; height: 3.75rem; }
}

/* Details. */
main > h2 {
   margin: 2.25rem 0 0.5rem;
   font-size: 1.1875rem;
   font-weight: 650;
   line-height: 1.3;
}
main > p, main > ul { margin: 0 0 0.9rem; }
main > ul { padding-left: 1.25rem; }
main > ul li { margin: 0.2rem 0; }

/* Overview list. */
.entries { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.75rem; }
.entries a {
   display: flex;
   align-items: center;
   gap: 1rem;
   padding: 0.9rem 1rem;
   background: var(--surface);
   border: 1px solid var(--rule);
   border-radius: 16px;
   color: var(--ink);
   text-decoration: none;
}
.entries a:hover { border-color: var(--accent); }
.entries img { flex: none; width: 3rem; height: 3rem; border-radius: 22%; }
.entries strong { display: block; font-size: 1.0625rem; }
.entries span span { display: block; color: var(--muted); font-size: 0.9375rem; }

footer {
   max-width: 42rem;
   margin: 0 auto;
   padding: 1.5rem 1.25rem 2.5rem;
   border-top: 1px solid var(--rule);
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem 1.5rem;
   font-size: 0.9375rem;
}
footer a { color: var(--muted); }
