@charset "UTF-8";

@font-face {
  font-family: "Pretendard";
  src: url("/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}


:root {
  color-scheme: light dark;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f5f3ed;
  color: #18334d;
  --muted: #62717b;
  --line: #d6dbd9;
  --hover: #eaece7;
  --accent: #2a5c86;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { width: calc(100% - 48px); max-width: 800px; min-width: 0; margin: 48px auto 32px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
header a { text-decoration: none; }
.wordmark { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
.wordmark { font-size: 23px; font-weight: bold; }
.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.github { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.github .icon { width: 22px; height: 22px; }
.github:hover { border-color: var(--accent); background: var(--hover); }
.banner { position: relative; width: 100%; aspect-ratio: 80 / 17; margin: 0; background: #102b50; container-type: inline-size; }
.banner > span { position: absolute; left: 4.75%; top: 50%; transform: translateY(-50%); color: #f0e6c9; font-size: clamp(18px, 6cqi, 48px); font-weight: 600; letter-spacing: .04em; line-height: 1; }
.banner img { display: block; width: 100%; max-width: 100%; height: auto; }
section { margin-top: 36px; }
h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.projects { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.projects li { border-bottom: 1px solid var(--line); }
.projects a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 10px; text-decoration: none; }
.projects a > div { flex: 1; min-width: 0; }
.projects a h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.projects a:hover { background: var(--hover); }
h3 { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
p { margin: 3px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.destination { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.projects a:hover .destination { color: var(--accent); }
.notes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 32px; }
.notes h2 { margin: 0; }
.notes a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--accent); text-decoration-color: currentColor; }
.notes a:hover { text-decoration-color: currentColor; }
.notes .icon { width: 16px; height: 16px; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 12px; background: #f5f3ed; color: #18334d; transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 480px) {
  .page { width: calc(100% - 36px); margin-top: 24px; }
  header { margin-bottom: 18px; }
  .wordmark { font-size: 21px; }
  .github { margin-right: 0; }
  section { margin-top: 28px; }
  .projects a { padding: 18px 12px; gap: 16px; }
  h3 { font-size: 17px; }
}

@media (prefers-color-scheme: dark) {
  :root { background: #101e2d; color: #e6e7df; --muted: #a0afb9; --line: #30414f; --hover: #192c3e; --accent: #bcb7a6; }
}

.project-intro { padding: 12px 0 8px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--accent); font-size: 14px; text-decoration: underline; }
.back-link:hover { color: var(--accent); }
.project-intro h1 { margin: 0; font-size: clamp(30px, 6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.project-intro p { margin-top: 12px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; font-size: 14px; }
.guide-links a { color: var(--accent); text-decoration: underline; }
.guide-links a:hover { text-decoration-color: currentColor; }

.eastward-page { max-width: 1040px; }
.eastward-page .project-intro { padding-bottom: 28px; }
.project-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.project-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; text-decoration: none; color: var(--accent); }
.project-nav a:hover { border-color: var(--accent); background: var(--hover); }
.tool-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; margin-top: 0; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.tool-kind { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.tool-heading h2 { color: inherit; font-size: 25px; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 8px; overflow-wrap: anywhere; }
.tool-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tool-links a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; color: var(--accent); text-decoration: none; }
.tool-links a:hover { border-color: var(--accent); background: var(--hover); }
.tool-links .icon { width: 16px; height: 16px; }
.tool-body > p { margin-top: 0; font-size: 15px; color: inherit; line-height: 1.8; }
.tool-body > p + p { margin-top: 18px; }
.tool-features { margin: 24px 0 0; display: grid; gap: 18px; }
.tool-features dt { font-size: 14px; font-weight: 600; }
.tool-features dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tool-features code { font-size: 12px; }
.tool-connection { margin-top: 36px; padding: 24px; background: var(--hover); }
.connection-flow { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.connection-flow li { position: relative; padding-right: 18px; }
.connection-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 0; color: var(--muted); }
.connection-flow span { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.connection-flow small { color: var(--muted); font-size: 12px; }
.project-libraries { margin-top: 44px; }
.library-list { padding: 0; margin: 0; list-style: none; }
.library-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; border-top: 1px solid var(--line); padding: 16px 0; }
.library-list a { width: fit-content; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; }
.library-list a:hover { color: var(--accent); }
.library-list p { margin: 0; }
@media (max-width: 640px) {
  .tool-section { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0; }
  .tool-heading h2 { font-size: 23px; }
  .tool-links { margin-top: 16px; }
  .tool-body > p { font-size: 14px; }
  .tool-connection { padding: 20px; }
  .connection-flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .connection-flow li:not(:last-child)::after { content: "↓"; top: auto; bottom: -24px; left: 0; right: auto; }
  .library-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
