@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root {
  color-scheme: light;
  --page: #f5f7fc;
  --ink: #182441;
  --muted: #56647c;
  --blue: #2e54e8;
  --blue-deep: #2445c9;
  --line: #dce3ef;
  font-family: 'Segoe UI';
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02rem;
  text-align: justify;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
svg { display: block; }
.page-shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.375rem; font-weight: 700; text-decoration: none; }
.brand-light { font-weight: 450; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--blue); border-radius: 12px; }
.brand-icon svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.header-note { font-size: .875rem; font-weight: 500; color: var(--muted); }
.intro { padding: 56px 0 40px; }
h1 { margin: 0; font-size: clamp(3rem, 5.6vw, 4.5rem); font-weight: 550; line-height: 1.07; font-weight: 800 }
.title-label { display: block; margin-bottom: 18px; color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.5; letter-spacing: .025em; }
.title-accent { color: var(--blue); }
.intro > p { margin: 24px 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.resource-card { display: flex; flex-direction: column; min-width: 0; padding: 30px 32px 24px; border: 1px solid transparent; border-radius: 22px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.envelope-card { background: var(--blue); color: #fff; box-shadow: 0 10px 28px -20px #2941b8; }
.guide-card { background: #fff; border-color: var(--line); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-icon { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; }
.envelope-icon { background: #ffffff1a; border: 1px solid #ffffff33; }
.envelope-icon svg { width: 29px; height: 29px; }
.guide-icon { display: flex; align-items: baseline; justify-content: center; padding-top: 9px; background: #eef2ff; color: var(--blue); font-weight: 650; font-size: 1.875rem }
.icon-period { color: var(--blue); }
.resource-format { padding: 6px 10px; border: 1px solid #ffffff55; border-radius: 7px; font-size: .8125rem; line-height: 1.25; font-weight: 500; }
.guide-card .resource-format { border-color: var(--line); color: var(--muted); }
.card-copy { flex: 1; padding-top: 32px; padding-bottom: 30px; }
.category { margin: 0 0 12px; color: #e1e8ff; font-size: .75rem; line-height: 1.5; font-weight: 600; letter-spacing: .095em; text-transform: uppercase; }
.guide-card .category { color: #596b91; }
h2 { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.2 }
.description { max-width: 370px; margin: 16px 0 0; color: #eef1ff; font-size: 1rem; line-height: 1.65; }
.guide-card .description { color: var(--muted); }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid #ffffff40; font-size: .9375rem; line-height: 1.5; font-weight: 600; }
.guide-card .card-action { border-color: var(--line); color: var(--blue); }
.action-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #ffffff1a; transition: background-color .2s ease, transform .2s ease; }
.action-icon svg { width: 22px; height: 22px; }
.guide-card .action-icon { background: #eef2ff; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 42px; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; transform: translateY(-200%); border-radius: 8px; background: var(--ink); color: white; font-size: 1rem; }
.skip-link:focus { transform: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.resource-card:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 5px; }

@media (hover: hover) {
  .resource-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -20px #18244145; }
  .envelope-card:hover { background: var(--blue-deep); }
  .guide-card:hover { border-color: #a1b2ef; }
  .resource-card:hover .action-icon { transform: translate(2px, -2px); }
  .brand:hover { color: var(--blue); }
}

@media (min-width: 1500px) {
  .page-shell { width: min(1200px, calc(100% - 128px)); }
  .intro { padding: 72px 0 48px; }
  .resource-card { padding: 36px 38px 28px; }
  .card-copy { padding-top: 38px; padding-bottom: 40px; }
}

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 12px; }
  .header-note { max-width: 120px; text-align: right; font-size: .8125rem; line-height: 1.4; }
  .intro { padding: 38px 0 30px; }
  h1 { font-size: clamp(2.5rem, 7.6vw, 3.5rem); line-height: 1.1; }
  .title-label { margin-bottom: 14px; }
  .intro > p { margin-top: 20px; font-size: 1rem; }
  .desktop-break { display: none; }
  .resources { grid-template-columns: 1fr; gap: 18px; }
  .resource-card { padding: 24px 26px 20px; border-radius: 18px; }
  .card-copy { padding-top: 28px; padding-bottom: 24px; }
  h2 { font-size: 1.875rem; }
  .description { max-width: 100%; }
  .site-footer { align-items: flex-start; margin-top: 32px; padding-top: 22px; }
}

@media (max-width: 390px) {
  .header-note { display: none; }
  .resource-card { padding-inline: 22px; }
  .resource-format { font-size: .75rem; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .resource-card:hover, .resource-card:hover .action-icon { transform: none; }
}
