:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #1c2c34; background: #f6f3ef; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #903b34; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #80412c; outline-offset: 4px; }
.vg-header, .vg-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px max(24px, calc((100vw - 1180px) / 2)); background: #fff; font-weight: 700; }
.vg-header a, .vg-footer a { text-decoration: none; }
.vg-main { max-width: 1228px; padding: clamp(20px, 4vw, 48px) 24px 48px; margin: 0 auto; }
.vg-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); align-items: stretch; gap: 24px; }
.vg-intro { background: #e6efef; border: 1px solid #c8dbdc; padding: clamp(20px, 4vw, 44px); border-radius: 24px; }
.vg-kicker { color: #823c38; font-size: .8rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.vg-intro h1 { margin: .2em 0 .35em; max-width: 760px; font-size: clamp(2.3rem, 6vw, 4.4rem); letter-spacing: -.055em; line-height: 1; }
.vg-intro p { max-width: 620px; line-height: 1.55; font-size: clamp(1rem, 2vw, 1.25rem); }
.vg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.vg-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid #863630; border-radius: 12px; padding: 10px 18px; background: #953f38; color: #fff; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.vg-button:hover { background: #782f2b; }
.vg-login { font-weight: 650; }
.vg-topics { background: #fff; padding: clamp(20px, 4vw, 34px); border: 1px solid #e6ddd4; border-radius: 24px; }
.vg-topics h2 { margin-top: 0; font-size: 1.3rem; }
.vg-topics ul { padding: 0; margin: 0; list-style: none; }
.vg-topics li { border-top: 1px solid #e6ddd4; }
.vg-topics a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; color: inherit; text-decoration: none; }
.vg-topics a span { color: #943e37; }
.vg-topics a:hover { color: #943e37; text-decoration: underline; }
.vg-section { margin-top: clamp(34px, 6vw, 66px); }
.vg-section h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.12; margin: .2em 0 .65em; }
.vg-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4dcd4; border-radius: 18px; padding: 22px; min-width: 0; }
.vg-tag { color: #45594e; font-size: .85rem; font-weight: 700; }
.vg-card h3 { font-size: 1.28rem; margin: .55em 0 .1em; line-height: 1.2; }
.vg-card p, .vg-muted, .vg-disclosure { line-height: 1.55; color: #4c585c; }
.vg-card .vg-original { font-size: .82rem; margin-top: 0; overflow-wrap: anywhere; }
.vg-card a { margin-top: auto; padding-top: 8px; font-weight: 700; }
.vg-search { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.vg-search label { display: grid; gap: 6px; font-weight: 650; }
.vg-search input, .vg-search select { min-width: 0; width: 100%; min-height: 48px; border: 1px solid #b9c1bf; border-radius: 10px; padding: 10px; background: #fff; color: inherit; font: inherit; }
.vg-locked { padding: clamp(20px, 4vw, 42px); background: #eee6dd; border-radius: 20px; line-height: 1.55; }
.vg-disclosure { margin: 34px 0 0; font-size: .88rem; }
.vg-footer { background: #25292c; }
.vg-footer a { color: #f9f7f2; }
@media (max-width: 850px) { .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 630px) { .vg-hero, .vg-grid, .vg-search { grid-template-columns: 1fr; } .vg-main { padding-inline: 16px; } }
.vg-main section[id], .vg-main article[id] { scroll-margin-top: 24px; }
.vg-reading { max-width: 860px; margin-inline: auto; }
.vg-reading p, .vg-collection p, .vg-open p, .vg-points dd { line-height: 1.65; }
.vg-jumps { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 22px 0; font-weight: 650; }
.vg-open { border: 1px solid #ded9d1; border-radius: 22px; background: #fff; padding: clamp(20px, 4vw, 36px); }
.vg-open { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.vg-open p { margin-bottom: 0; }
.vg-open h2 { margin-bottom: .25em; }
.vg-open .vg-button { flex-shrink: 0; }
.vg-steps { display: grid; gap: 12px; padding-inline-start: 1.5em; }
.vg-steps li { padding-inline-start: 8px; }
.vg-steps li::marker { color: #823c38; font-weight: 750; }
.vg-steps h3, .vg-steps h4 { margin: 0 0 .25em; font-size: 1.12rem; }
.vg-steps p { margin: 0; }
.vg-points, .vg-related { padding: 0; list-style: none; display: grid; gap: 10px; }
.vg-points > div, .vg-related li { background: #f1eee8; border-radius: 14px; padding: 14px 18px; }
.vg-points dt, .vg-related a { font-weight: 700; }
.vg-points dd { margin: .35em 0 0; }
.vg-related p { margin: .35em 0 0; }
@media (max-width: 630px) { .vg-open { flex-direction: column; align-items: flex-start; gap: 16px; } }
.vg-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 0 clamp(20px, 4vw, 48px);
  margin-top: 28px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #e4dcd4;
  border-radius: 24px;
  background: #fff;
  line-height: 1.6;
}
.vg-about h2, .vg-about h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.vg-about p { margin: 0 0 12px; }
.vg-about a { font-weight: 650; }
.vg-about-guide { border-inline-start: 1px solid #ebe4dd; padding-inline-start: clamp(18px, 3vw, 32px); }
.vg-about-guide ul { display: grid; gap: 10px; margin: 0; padding-inline-start: 1.2em; }
.vg-about-guide li::marker { color: #a04b45; }
.vg-about .vg-about-access { grid-column: 1 / -1; margin: 22px 0 0; padding: 12px 16px; border-radius: 12px; background: #f2ede7; }
@media (max-width: 700px) {
  .vg-about { grid-template-columns: 1fr; }
  .vg-about-guide { margin-top: 20px; padding: 20px 0 0; border-inline-start: 0; border-top: 1px solid #ebe4dd; }
}

.vg-main { max-width: 1240px; }
.vg-intro { background: radial-gradient(ellipse at 85% 5%, #f1e1d9, transparent 70%), #faf7f3; border-color: #e5dbd1; }
.vg-button { background: #a04b45; border-color: #a04b45; }
.vg-button:hover { background: #823b35; }
.vg-main li[id] { scroll-margin-top: 88px; }
.vg-recommendations li.vg-covered { padding: 0 0 14px; overflow: hidden; border: 1px solid #e4dcd4; background: #fff; }
.vg-covered a { display: block; }
.vg-covered a, .vg-covered p { padding-inline: 16px; }
.vg-covered a:focus-visible { outline-offset: -3px; }
.vg-cover { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -16px 12px; }
.vg-task-cover { filter: grayscale(1); background: #f4f4f2; }
.vg-page-nav { margin-bottom: clamp(20px, 4vw, 36px); color: #243e48; }
.vg-page-nav ol, .vg-page-nav li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.vg-page-nav ol { list-style: none; padding: 0; margin: 0; }
.vg-page-nav a { color: inherit; text-decoration: none; }
.vg-page-nav a:hover { text-decoration: underline; }
.vg-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 24px; color: #4c585c; }
.vg-pagination a { padding: 10px 14px; border: 1px solid #e4dcd4; border-radius: 10px; background: #fff; font-weight: 700; }
.vg-collection-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: clamp(20px, 4vw, 36px); }
.vg-collection-nav .vg-page-nav { margin: 0; }
.vg-switcher { position: relative; max-width: 100%; }
.vg-switcher summary { padding: 8px 13px; border: 1px solid #e4dcd4; border-radius: 10px; background: #fff; color: #243e48; cursor: pointer; font-weight: 700; }
.vg-switcher summary:focus-visible { outline: 2px solid #80412c; outline-offset: 4px; }
.vg-switcher nav { position: absolute; z-index: 2; inset-inline-end: 0; inset-block-start: calc(100% + 6px); width: 300px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid #e4dcd4; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px #221d1a1a; }
.vg-switcher ul { margin: 0; padding: 0; list-style: none; }
.vg-switcher a { display: block; padding: 7px 10px; border-radius: 7px; color: #243e48; text-decoration: none; }
.vg-switcher a:hover { background: #f2ede7; }
@media (max-width: 600px) { .vg-switcher nav { inset-inline-end: auto; inset-inline-start: 0; } }
.vg-recommendation-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vg-recommendation-columns h3 { margin: 0 0 10px; font-size: 1rem; }
.vg-recommendation-columns .vg-related { margin: 0; grid-template-columns: minmax(0, 1fr); }
.vg-recommendation-columns .vg-covered p { margin-bottom: 0; font-size: .9rem; }
.vg-recommendation-columns .vg-muted { margin: 9px 0 0; font-size: .85rem; }
@media (max-width: 690px) {
  .vg-recommendation-columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vg-recommendation-columns li.vg-covered { padding: 12px; }
  .vg-recommendation-columns .vg-covered a { display: flex; align-items: center; gap: 12px; padding: 0; }
  .vg-recommendation-columns .vg-cover { flex: 0 0 85px; width: 85px; margin: 0; border-radius: 6px; }
  .vg-recommendation-columns .vg-covered p { padding: 0; }
  .vg-switcher nav { max-height: min(55vh, 360px); overflow-y: auto; }
}
