@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('assets/inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101112;
  --surface: #18191a;
  --text: #f2f2f0;
  --muted: #b3b3af;
  --accent: #c5aa7d;
  --accent-ink: var(--accent);
  --line: #343536;
  --selection: #655740;
  --display: 'Instrument Serif', Georgia, serif;
  --body: Inter, Arial, sans-serif;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f2f2ee;
  --text: #252625;
  --muted: #61625d;
  --accent: #9f804d;
  --accent-ink: var(--text);
  --line: #d9dad5;
  --selection: #ead6c4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 1rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:active { transform: scale(.98); }
.page-shell { width: min(100% - 6rem, 1080px); margin: 0 auto; }
.site-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.profile { display: inline-flex; align-items: center; gap: 14px; }
.profile-avatar { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.profile-details { display: flex; flex-direction: column; gap: 2px; }
.profile-name { font: 400 1.875rem/1.1 var(--display); }
.profile-handle { font-size: .8125rem; line-height: 1.5; color: var(--accent-ink); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-size: .8125rem;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}
.moon-icon, [data-theme='light'] .sun-icon { display: none; }
[data-theme='light'] .moon-icon { display: block; }
.hero { text-align: center; padding: 62px 0 43px; }
h1 {
  font: 400 clamp(3.5rem, 6.5vw, 5.625rem)/1.03 var(--display);
  letter-spacing: -.025em;
  margin: 0 0 21px;
}
h1 em, h2 em { font-weight: 400; color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: .9375rem; }
.contents {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.contents-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.contents-link.is-current { color: var(--accent-ink); border-bottom-color: var(--accent); }
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .8125rem;
}
.guide-content { max-width: 880px; margin: 0 auto; }
.guide-section { padding: 45px 0 43px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
h2 { font: 400 2.875rem/1.1 var(--display); letter-spacing: -.018em; margin: 0 0 27px; }
h3 { font-size: 1rem; line-height: 1.6; font-weight: 500; margin: 0 0 8px; }
.preparation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.preparation-list h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.list-symbol { color: var(--accent); font-size: 1.375rem; font-weight: 300; line-height: 1; }
.care-list { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.care-list li { position: relative; padding: 0 0 17px 18px; }
.care-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.care-list li:last-child { padding-bottom: 0; }
.care-list strong { color: var(--text); font-weight: 450; }
.priority-note {
  margin: 0 0 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  break-inside: avoid;
}
.priority-note span { display: block; margin-bottom: 5px; color: var(--accent-ink); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.priority-note strong { font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { flex: 0 0 32px; font: 400 2.75rem/1.1 var(--display); color: var(--accent); }
.steps p { color: var(--muted); margin: 0; }
.care-note { color: var(--muted); font-size: .875rem; margin: 27px 0 0; border-left: 2px solid var(--accent); padding-left: 17px; }
.healing-list { max-width: 790px; }
.healing-section { border-bottom: 0; }
.site-footer { position: relative; min-height: 114px; border-top: 1px solid var(--line); padding: 25px 88px 30px 0; }
.footer-monogram {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: 66px;
  height: 76px;
  background: var(--accent);
  -webkit-mask: url('assets/amala-monogram.png') center / contain no-repeat;
  mask: url('assets/amala-monogram.png') center / contain no-repeat;
}
.contact-link { display: inline-block; font-size: .875rem; padding: 6px 0; }
.contact-link span { color: var(--accent-ink); }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 15px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { background: var(--surface); }
  .contents-link:hover, .download-button:hover { color: var(--text); }
  .profile:hover .profile-handle, .contact-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 800px) {
  .page-shell { width: calc(100% - 3.5rem); }
  .site-header { min-height: 96px; }
  .hero { padding: 45px 0 35px; }
  h1 { font-size: 4.25rem; }
  .contents { gap: 22px; }
  .contents-link { font-size: .8125rem; }
  .download-button { font-size: .75rem; }
  .preparation-grid { gap: 28px; }
}
@media (max-width: 580px) {
  .page-shell { width: calc(100% - 2.75rem); }
  .site-header { min-height: 94px; gap: 14px; }
  .profile { gap: 10px; }
  .profile-avatar { width: 43px; height: 43px; }
  .profile-name { font-size: 1.625rem; }
  .profile-handle { font-size: .75rem; }
  .theme-toggle { width: 44px; padding: 0; flex: 0 0 44px; }
  .theme-toggle span { display: none; }
  .hero { padding: 36px 0 30px; }
  h1 { font-size: clamp(2.625rem, 10.4vw, 3.75rem); line-height: 1.08; margin-bottom: 17px; }
  .hero p { font-size: .875rem; max-width: 270px; margin: 0 auto; line-height: 1.7; }
  .contents { flex-wrap: wrap; gap: 4px 20px; padding: 10px 0; }
  .contents-link { min-height: 40px; font-size: .8125rem; }
  .download-button { margin-left: 0; min-height: 40px; gap: 7px; }
  .guide-section { padding: 31px 0 32px; }
  h2 { font-size: 2.5rem; margin-bottom: 23px; }
  .preparation-grid { grid-template-columns: 1fr; gap: 27px; }
  .care-list li { padding-bottom: 16px; }
  .steps li { gap: 15px; padding: 19px 0; }
  .step-number { flex-basis: 25px; font-size: 2.375rem; }
  .steps h3 { line-height: 1.5; margin-bottom: 7px; }
  .care-note { font-size: .875rem; padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { size: A4; margin: 17mm; }
  html, body { background: #fff !important; color: #222 !important; font-size: 10pt; }
  body { --bg: #fff; --text: #222; --muted: #444; --accent: #715218; --surface: #f6f6f6; --line: #ccc; }
  .page-shell { width: 100%; max-width: none; }
  .site-header { min-height: 65px; padding-bottom: 12px; }
  .profile-avatar { width: 40px; height: 40px; }
  .profile-name { font-size: 22pt; }
  .profile-handle { font-size: 9pt; }
  .theme-toggle, .contents, .skip-link { display: none !important; }
  .hero { padding: 22px 0; }
  h1 { font-size: 33pt; }
  .hero p { font-size: 10pt; max-width: none; }
  .guide-content { max-width: none; }
  .guide-section { padding: 20px 0; }
  h2 { font-size: 25pt; break-after: avoid; margin-bottom: 17px; }
  h3 { font-size: 10pt; break-after: avoid; }
  .preparation-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .care-list li { padding-bottom: 10px; break-inside: avoid; }
  .care-list li::before { top: 10px; }
  .steps li { padding: 12px 0; break-inside: avoid; gap: 17px; }
  .step-number { font-size: 26pt; }
  .care-note { font-size: 9pt; }
  .site-footer { min-height: 0; padding: 15px 0 0; break-inside: avoid; }
  .footer-monogram { display: none; }
  .contact-link { font-size: 9pt; }
}
