:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --surface: #fff;
  --ink: #202b27;
  --muted: #65726d;
  --line: #dce3de;
  --green: #176f5d;
  --coral: #ba513d;
  --code: #edf2ee;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
.site-header { background: var(--surface); border-top: 4px solid var(--coral); border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(1080px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--coral); padding-bottom: 5px; }
.site-main {
  width: min(790px, calc(100% - 48px));
  min-height: calc(100vh - 150px);
  margin: 54px auto 80px;
}
.site-main > h1:first-child {
  margin: 0 0 26px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.18;
}
.site-main h2 {
  margin: 2.2em 0 0.55em;
  padding-bottom: 0.3em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
}
.site-main h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.site-main p { margin: 0 0 1.1em; line-height: 1.75; }
.site-main li { margin-bottom: 0.3em; padding-inline-start: 0.25em; }
.site-main ul, .site-main ol { margin: 0 0 1.4em; padding-inline-start: 1.4em; }
.site-main hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.site-main code, .site-main pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.site-main code { padding: 0.12em 0.32em; border-radius: 3px; background: var(--code); font-size: 0.9em; }
.site-main pre {
  overflow-x: auto;
  margin: 0.8em 0 1.5em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 3px;
  background: var(--code);
  direction: ltr;
  text-align: left;
  line-height: 1.55;
}
.site-main pre code { padding: 0; background: transparent; font-size: 13px; }
.site-main table { max-width: 100%; border-collapse: collapse; }
.site-main .imgtable { margin-top: 24px; }
.site-main .imgtable td { padding: 0 24px 0 0; border: 0; text-align: left; }
.site-main .imgtable img { display: block; width: 200px; height: 220px; object-fit: cover; }
.site-main blockquote { margin: 1.5em 0; padding: 0.2em 1em; border-left: 3px solid var(--coral); color: var(--muted); }
.site-footer {
  width: min(1080px, calc(100% - 48px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.is-rtl .imgtable td { padding: 0 0 0 24px; }
@media (max-width: 700px) {
  .header-inner { width: calc(100% - 32px); min-height: 0; padding: 18px 0 14px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-nav { justify-content: flex-start; gap: 8px 18px; }
  .site-main { width: min(100% - 32px, 560px); margin: 36px auto 56px; }
  .site-main > h1:first-child { font-size: 32px; }
  .site-main h2 { font-size: 22px; }
  .site-main .imgtable, .site-main .imgtable tbody, .site-main .imgtable tr, .site-main .imgtable td { display: block; }
  .site-main .imgtable td { padding: 0 0 16px; }
  .site-footer { width: calc(100% - 32px); }
}
