/* dahicik.com: the app's own palette (app/lib/ui/theme.dart) on paper, one
   column for reading. System fonts only: the site loads nothing from anyone
   else, as the privacy policy promises. */
:root {
  --paper: #f7f4ea;
  --card: #ffffff;
  --edge: #e4dcc4;
  --ink: #1e2430;
  --muted: #5f6673;
  --leaf: #3e6b1e;
  --leaf-soft: #e6efd9;
  --sun: #ffd54a;
  --notice: #fff8dc;
  --todo: #ffe58a;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15191f;
    --card: #1d232b;
    --edge: #2e3640;
    --ink: #edeff2;
    --muted: #a3aab5;
    --leaf: #9fd16f;
    --leaf-soft: #233220;
    --sun: #ffd54a;
    --notice: #2d2a1a;
    --todo: #5a4a12;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--leaf); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header: the icon and the name, home on the left. */
.top { padding-block: 1rem; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; }

/* Home. */
.hero { padding-block: 2rem 2.5rem; display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
.hero img { width: 152px; height: 152px; border-radius: 34px; box-shadow: 0 10px 30px rgb(30 36 48 / 0.18); }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.12; margin: 0; text-wrap: balance;
}
.hero p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 34rem; }
.soon {
  display: inline-block; justify-self: start;
  background: var(--sun); color: #1e2430;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
  padding: 0.45rem 0.9rem; border-radius: 999px;
}
.hero > div { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .hero { grid-template-columns: auto 1fr; gap: 2rem; }
}

.section-title {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  margin: 0 0 1rem; text-wrap: balance;
}
.features {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.features li {
  background: var(--card); border: 1px solid var(--edge); border-radius: 18px;
  padding: 1rem 1.1rem; min-width: 0;
}
.features strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.features span { color: var(--muted); font-size: 0.98rem; }

.parents {
  background: var(--leaf-soft); border-radius: 22px;
  padding: 1.25rem 1.25rem 1.1rem; margin-bottom: 2.5rem;
}
.parents ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.parents p { margin: 0.9rem 0 0; font-size: 0.95rem; }

.skills { color: var(--muted); margin: -0.25rem 0 2.5rem; }

/* Legal pages. */
.doc { padding-block: 1rem 3rem; }
.doc h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.2; margin: 0.5rem 0 1rem; text-wrap: balance;
}
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 2.2rem 0 0.6rem; text-wrap: balance; }
.doc h3 { font-size: 1.08rem; margin: 1.6rem 0 0.4rem; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc blockquote {
  margin: 1rem 0; padding: 0.75rem 1rem;
  background: var(--notice); border: 1px solid var(--edge); border-radius: 14px;
}
.doc blockquote p { margin: 0.35rem 0; }
.table { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); }
.table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--edge); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 700; }
mark.todo { background: var(--todo); color: inherit; border-radius: 4px; padding: 0 0.2em; }

/* Footer: every page's way to the others. */
.foot { border-top: 1px solid var(--edge); padding-block: 1.5rem 2.5rem; font-size: 0.92rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.foot p { margin: 0; }
