/* TreatMark support site - no external fonts, no JavaScript, no tracking. */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #111111;
  --text-secondary: #64645F;
  --border: #D8DDE5;
  --link: #2F5D8C;
  --link-hover: #1F3F60;
  --focus: #2F5D8C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --surface: #202327;
    --text: #F7F7F2;
    --text-secondary: #AAA9A3;
    --border: #373B40;
    --link: #8FA9FF;
    --link-hover: #B9C8FF;
    --focus: #8FA9FF;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}
.brand:hover, .brand:focus-visible { color: var(--link); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--link);
  background: var(--bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.lang-switch:hover, .lang-switch:focus-visible {
  color: var(--link-hover);
  border-color: var(--link);
}

/* Nav */
.site-nav { background: var(--surface); border-top: 1px solid var(--border); }
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-top: 2px;
  padding-bottom: 2px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--link-hover); text-decoration: underline; }
.site-nav a.is-current { color: var(--text); text-decoration: none; cursor: default; }

/* Content */
main { padding-top: 8px; padding-bottom: 40px; }
h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 24px 0 12px;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 24px 0 8px;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin: 0 0 8px; }
strong { font-weight: 700; }
a { color: var(--link); }
a:hover, a:focus-visible { color: var(--link-hover); }

/* Home page cards */
.lead { color: var(--text-secondary); margin-bottom: 28px; }
.card-list { list-style: none; margin: 0 0 24px; padding: 0; }
.card-list li { margin: 0 0 12px; }
.card {
  display: block;
  min-height: 44px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.card:hover, .card:focus-visible { border-color: var(--link); }
.card .card-title { display: block; font-weight: 700; color: var(--link); }
.card .card-desc { display: block; font-size: 15px; color: var(--text-secondary); margin-top: 2px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0 32px;
  margin-top: 24px;
}
.site-footer p { margin: 0 0 6px; font-size: 15px; }
.contact a { min-height: 44px; display: inline-block; padding: 10px 0; }
.copyright { color: var(--text-secondary); }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--link);
  padding: 12px 16px;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .wrap { padding: 0 24px; }
}
