:root {
  --kit: #8c0000;
  --kit-deep: #680b19;
  --ink: #34282a;
  --muted: #746367;
  --paper: #fff;
  --rose: #f7eeec;
  --line: #e8dcd9;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f8f5f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; border-top: 6px solid var(--kit); }
a { color: var(--kit); text-underline-offset: .22em; }
a:hover { color: var(--kit-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--kit); outline-offset: 5px; }
[hidden] { display: none !important; }
.site-shell { max-width: 1240px; padding: 0 64px; margin: 0 auto; }
.site-header { display: flex; align-items: center; min-height: 186px; gap: 32px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 153px; height: auto; mix-blend-mode: multiply; }
.header-caption { border-left: 1px solid var(--line); padding-left: 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.site-header nav { display: flex; gap: 25px; margin-left: auto; font-size: 13px; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-header nav a[aria-current="page"] { color: var(--kit); border-bottom: 1px solid var(--kit); }
.site-header nav a:hover { color: var(--kit); }
main:focus { outline: none; }
.farewell { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); }
.farewell-copy { padding: 57px 54px 53px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 27px; color: var(--kit); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.7; }
.eyebrow > span { display: inline-block; height: 1px; width: 26px; background: var(--kit); flex-shrink: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.2vw, 67px); font-weight: 400; line-height: 1.07; letter-spacing: -.045em; margin: 0; }
h1 em { color: var(--kit); font-weight: 400; }
.intro { font-size: 18px; line-height: 1.65; margin: 26px 0 29px; color: #665155; }
.farewell-text { max-width: 470px; color: #665b5c; font-size: 14px; line-height: 1.85; }
.farewell-text p { margin: 0 0 16px; }
.signature { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-style: italic; color: var(--kit); margin: 29px 0 0; }
.farewell-aside { position: relative; overflow: hidden; display: flex; align-items: flex-end; background: var(--kit); color: #fff7f2; min-height: 100%; padding: 47px 36px; }
.farewell-aside::before, .farewell-aside::after { content: ""; position: absolute; border: 1px solid #ffffff26; border-radius: 50%; width: 370px; height: 480px; transform: rotate(28deg); top: -145px; right: -140px; pointer-events: none; }
.farewell-aside::after { right: -98px; top: -113px; }
.aside-mark { position: absolute; top: 42px; left: 34px; font: 400 104px Georgia, serif; letter-spacing: -.08em; color: #ffffff18; }
.aside-message { position: relative; padding-top: 235px; }
.small-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .19em; color: #eed1ce; }
.aside-message p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.9vw, 35px); line-height: 1.4; letter-spacing: -.025em; margin: 21px 0 26px; }
.aside-line { width: 34px; height: 1px; background: #e5b7b1; margin-bottom: 22px; }
.aside-caption { font-size: 11px; line-height: 1.7; color: #eed1ce; letter-spacing: .04em; }
.medical-note { display: flex; align-items: flex-start; gap: 18px; margin: 28px 0 0; padding: 22px 26px; border: 1px solid var(--line); }
.note-symbol { flex-shrink: 0; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #bfa6a3; border-radius: 50%; color: var(--kit); font: italic 16px Georgia, serif; margin-top: 2px; }
.medical-note h2 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.medical-note p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; max-width: 840px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0 35px; color: var(--muted); }
.site-footer p { margin: 0; display: flex; align-items: center; gap: 13px; }
.site-footer strong { font: 700 17px Georgia, serif; color: var(--kit); }
.site-footer p span { font-size: 10px; letter-spacing: .02em; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { font-size: 11px; text-decoration: none; color: var(--muted); }
.site-footer a:hover { text-decoration: underline; }
.legal-page { padding: 55px 64px 48px; border: 1px solid var(--line); background: var(--paper); }
.legal-page h1 { font-size: clamp(39px, 5vw, 56px); overflow-wrap: anywhere; }
.legal-lead { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 700px; margin: 23px 0 38px; }
.legal-page section { max-width: 780px; margin-top: 31px; }
.legal-page h2 { font-size: 19px; line-height: 1.5; margin: 0 0 12px; font-weight: 600; }
.legal-page p, .legal-page address { font-size: 15px; line-height: 1.85; font-style: normal; overflow-wrap: anywhere; }
.legal-page p { margin: 0 0 15px; }
.notice-panel { background: var(--rose); padding: 26px 30px; border-left: 3px solid var(--kit); }
.legal-page .document-date { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 40px; font-size: 12px; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 18px; border: 1px solid var(--kit); background: var(--kit); color: #fff; padding: 13px 19px; text-decoration: none; font: 600 13px/1.6 "Segoe UI", Arial, sans-serif; cursor: pointer; text-align: left; }
.button:hover { background: var(--kit-deep); color: #fff; }
.not-found { background: var(--paper); padding: 65px 55px 72px; border: 1px solid var(--line); }
.not-found h1 { font-size: clamp(35px, 5vw, 59px); }
.not-found > p:not(.eyebrow) { max-width: 560px; font-size: 17px; line-height: 1.8; color: var(--muted); margin: 27px 0; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); z-index: 10; background: var(--paper); padding: 10px; }
.skip-link:focus { transform: translateY(0); }

@media (min-width: 1500px) { .site-shell { padding-top: 10px; } }
@media (max-width: 1000px) {
  .site-shell { padding: 0 32px; }
  .header-caption { display: none; }
  .farewell-copy { padding: 42px 34px; }
  .farewell-aside { padding: 35px 25px; }
  .aside-message p { font-size: 28px; }
}
@media (max-width: 700px) {
  body { border-top-width: 4px; }
  .site-shell { padding: 0 20px; }
  .site-header { min-height: 157px; gap: 15px; flex-wrap: wrap; padding: 19px 0 23px; }
  .brand img { width: 112px; }
  .site-header nav { gap: 17px; font-size: 11px; }
  .farewell { grid-template-columns: 1fr; }
  .farewell-copy { padding: 35px 26px 38px; }
  .eyebrow { font-size: 9px; letter-spacing: .11em; margin-bottom: 23px; }
  h1 { font-size: clamp(39px, 10vw, 57px); }
  .intro { font-size: 16px; }
  .farewell-text { font-size: 14px; }
  .farewell-aside { min-height: 240px; padding: 30px 27px; }
  .aside-message { padding-top: 0; }
  .aside-message p { font-size: 28px; margin: 14px 0 20px; }
  .aside-mark { left: auto; right: 31px; top: 39px; font-size: 88px; }
  .aside-line, .aside-caption { display: none; }
  .medical-note { padding: 19px 17px; gap: 12px; margin-top: 20px; }
  .site-footer { align-items: flex-start; gap: 20px; padding-top: 27px; }
  .site-footer p { align-items: flex-start; flex-direction: column; gap: 6px; }
  .site-footer p span { max-width: 150px; line-height: 1.6; }
  .site-footer nav { gap: 16px; padding-top: 2px; }
  .legal-page, .not-found { padding: 34px 24px; }
  .legal-lead { font-size: 16px; }
  .notice-panel { padding: 21px 18px; }
  .legal-page p, .legal-page address { font-size: 14px; }
}
@media (max-width: 360px) {
  .site-shell { padding: 0 12px; }
  .site-header nav { gap: 12px; }
  .brand img { width: 95px; }
}
