/* Light-theme type from AppTheme. Layout follows a 66-character measure,
   underlined links, and a visible focus style so the pages stay readable. */

@font-face {
  font-family: Poppins;
  src: url("/assets/packages/common_assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("/assets/packages/common_assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("/assets/packages/common_assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --on-surface: #333333;
  --on-surface-variant: #7a7a7a;
  --primary: #5f61fb;
  --primary-pressed: #5151db;
  --surface: #ffffff;
  --page: #f5f5f5;
  --panel: #f9f9f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--on-surface);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.site,
main {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.site {
  padding: 24px 20px 0;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

main {
  margin-top: 16px;
  margin-bottom: 32px;
  padding: 40px 32px 56px;
  background: var(--surface);
  border-radius: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.375;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.333;
  letter-spacing: 0;
  scroll-margin-top: 24px;
  text-wrap: balance;
}

main > h2:first-of-type,
.contents + h2 {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

p,
li {
  margin: 0 0 16px;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

li:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--primary-pressed); }

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
}

.updated {
  margin: 0 0 24px;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.contents {
  margin: 0 0 8px;
  padding: 16px 20px 8px;
  background: var(--panel);
  border-radius: 12px;
}

.contents p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.contents ol {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.contents li { margin-bottom: 8px; }

.contents a { font-weight: 400; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

a.button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 12px;
}

a.button:hover {
  background: var(--primary-pressed);
  color: #ffffff;
}

@media (max-width: 640px) {
  .site { padding: 20px 20px 0; }

  main {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 32px 20px 48px;
    border-radius: 0;
  }

  h1 { font-size: 28px; line-height: 1.286; }
}
