:root { color-scheme: light; --ink: #20242a; --muted: #606873; --line: #dce0e4; --surface: #fff; --bg: #f8f9fa; --accent: #2458a6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif; }
a { color: var(--accent); }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: .55rem .9rem; }
button:hover, a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem max(1.25rem, calc((100vw - 960px)/2)); }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 1.12rem; }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
main { width: min(960px, calc(100% - 2.5rem)); margin: 0 auto; min-height: calc(100vh - 125px); padding: 3rem 0 5rem; }
h1 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.3; letter-spacing: -.025em; }
h2 { font-size: 1.1rem; margin: 2rem 0 .45rem; }
p { margin: .4rem 0 1rem; }
section > p, .section-head p { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.menu-list, .item-list { border-top: 1px solid var(--line); margin-top: 2rem; }
.menu-list a, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1.1rem .35rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.menu-list a { grid-template-columns: 10rem minmax(0, 1fr) auto; }
.menu-list a span:nth-child(2), .item-row small { color: var(--muted); }
.item-row strong { font-size: 1.04rem; font-weight: 650; }
.item-row small { grid-column: 1; display: block; font-size: .87rem; line-height: 1.5; }
.item-row .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); }
.tech-row { display: block; }
.title-line, .detail-title-line { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.item-title { color: var(--ink); text-decoration: none; font-size: 1.04rem; font-weight: 650; }
.item-title:hover { color: var(--accent); text-decoration: underline; }
.item-date { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.tech-row .source-link { display: block; width: fit-content; max-width: 100%; color: var(--accent); font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; margin: .15rem 0 .25rem; }
.tech-row small { display: block; }
.detail-title-line { margin-bottom: 1rem; }
.detail-title-line h1 { margin-bottom: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--muted); font-size: .9rem; }
.pager button:disabled { cursor: default; opacity: .45; }
.settings-form { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.settings-form label { width: 100%; font-weight: 600; }
.settings-form select { width: 11rem; }
.setting-note { color: var(--muted); font-size: .9rem; }
.setting-section { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .4rem; }
.gemini-form { display: grid; gap: .5rem; max-width: 32rem; margin-top: 1.2rem; }
.gemini-form label { font-weight: 600; }
.gemini-form input { margin-bottom: .5rem; }
.gemini-form .form-actions { flex-wrap: wrap; margin-top: .4rem; }
.back-link { display: inline-block; text-decoration: none; margin-bottom: 1.5rem; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.2rem, 4vw, 2.4rem); }
article h1 { margin-bottom: 1.5rem; }
article p { white-space: pre-line; }
.source-link { overflow-wrap: anywhere; }
.note-kind { color: var(--muted); font-size: .88rem; }
.skill-controls { display: flex; gap: 1rem; flex-wrap: wrap; }
.skill-controls label { display: flex; flex-direction: column; gap: .3rem; min-width: min(240px, 100%); }
input, select { background: white; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .7rem; color: var(--ink); width: 100%; }
.add-form { background: white; border: 1px solid var(--line); padding: 1.2rem; border-radius: 8px; margin: 1.2rem 0; }
.add-form label { display: block; margin-bottom: .8rem; }
.add-form input { display: block; margin-top: .3rem; }
.add-form p { color: var(--muted); font-size: .9rem; }
.form-actions { display: flex; gap: .5rem; }
.form-actions button:first-child { background: var(--accent); border-color: var(--accent); color: white; }
.message { min-height: 1.4rem; color: var(--muted); }
.error { color: #a32929; }
footer { border-top: 1px solid var(--line); padding: 1rem max(1.25rem, calc((100vw - 960px)/2)); color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) { main { padding-top: 2rem; } .site-header nav { gap: .8rem; font-size: .9rem; } .menu-list a { grid-template-columns: minmax(0, 1fr) auto; } .menu-list a span:nth-child(2) { grid-column: 1; } .menu-list a span:last-child { grid-column: 2; grid-row: 1 / 3; } .section-head { flex-direction: column; } }
