@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --canvas:       #f7f7f4;
    --canvas-soft:  #fafaf7;
    --card:         #ffffff;
    --strong:       #e6e5e0;
    --hairline:     #e6e5e0;
    --hairline-soft:#efeee8;
    --hairline-str: #cfcdc4;
    --ink:          #26251e;
    --body:         #5a5852;
    --muted:        #807d72;
    --muted-soft:   #a09c92;
    --primary:      #f54e00;
    --primary-act:  #d04200;
    --on-primary:   #ffffff;
    --success:      #1f8a65;
    --error:        #cf2d56;
    --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 9999px;
    --sp-xxs:4px; --sp-xs:8px; --sp-sm:12px; --sp-base:16px; --sp-md:20px;
    --sp-lg:24px; --sp-xl:32px; --sp-xxl:48px; --sp-section:80px;
    --font: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--canvas); color: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.ws-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xl); }

.ws-nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    height: 64px; display: flex; align-items: center;
}
.ws-nav__inner { display: flex; align-items: center; gap: var(--sp-xl); width: 100%; }
.ws-nav__logo {
    font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
    color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.ws-nav__logo:hover { color: var(--primary); }
.ws-nav__list { display: flex; gap: var(--sp-lg); margin-left: auto; flex-wrap: wrap; }
.ws-nav__list a {
    font-size: 14px; font-weight: 500; color: var(--body);
    text-decoration: none; line-height: 1.4; white-space: nowrap;
}
.ws-nav__list a:hover { color: var(--ink); }
.ws-nav__list a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.ws-nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: var(--sp-xs);
    margin-left: auto;
}
.ws-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.ws-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ws-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ws-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ws-hero {
    padding: var(--sp-section) 0 calc(var(--sp-section) * 0.75);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}
.ws-hero__label {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px;
    text-transform: uppercase; color: var(--muted);
    background: var(--strong); padding: 4px 10px; border-radius: var(--r-pill);
    margin-bottom: var(--sp-lg);
}
.ws-hero h1 {
    font-size: clamp(32px, 5vw, 72px); font-weight: 400; line-height: 1.1;
    letter-spacing: -0.03em; color: var(--ink); max-width: 820px;
    margin-bottom: var(--sp-lg);
}
.ws-hero__sub {
    font-size: 16px; color: var(--body); max-width: 580px; line-height: 1.6;
    margin-bottom: var(--sp-xxl);
}
.ws-hero__image { margin-top: var(--sp-xxl); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.ws-hero__image img { width: 100%; height: 420px; object-fit: cover; }

.ws-section { padding: var(--sp-section) 0; }
.ws-section--alt { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.ws-section__label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.88px;
    text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-lg);
}
.ws-section h2 {
    font-size: clamp(22px, 3vw, 36px); font-weight: 400; letter-spacing: -0.02em;
    color: var(--ink); line-height: 1.2; margin-bottom: var(--sp-lg); max-width: 680px;
}
.ws-section__intro { font-size: 16px; color: var(--body); max-width: 640px; line-height: 1.6; margin-bottom: var(--sp-xxl); }

.ws-grid { display: grid; gap: var(--sp-lg); }
.ws-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ws-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ws-grid--article { grid-template-columns: 1fr 320px; gap: var(--sp-xxl); align-items: start; }

.ws-card {
    background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
    padding: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-sm);
}
.ws-card--link { text-decoration: none; transition: border-color .15s; }
.ws-card--link:hover { border-color: var(--hairline-str); color: var(--body); }
.ws-card__img { border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-sm); }
.ws-card__img img { width: 100%; height: 200px; object-fit: cover; }
.ws-card__tag {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px;
    text-transform: uppercase; color: var(--muted); background: var(--strong);
    padding: 4px 10px; border-radius: var(--r-pill);
}
.ws-card__title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ws-card__excerpt { font-size: 14px; color: var(--body); line-height: 1.5; margin-top: auto; }
.ws-card__meta { font-size: 13px; color: var(--muted); margin-top: var(--sp-xs); }

.ws-article-header { padding: var(--sp-section) 0 var(--sp-xxl); border-bottom: 1px solid var(--hairline); }
.ws-article-header__label {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.88px;
    text-transform: uppercase; color: var(--muted); background: var(--strong);
    padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: var(--sp-md);
}
.ws-article-header h1 {
    font-size: clamp(26px, 4vw, 48px); font-weight: 400; letter-spacing: -0.025em;
    color: var(--ink); line-height: 1.15; max-width: 800px; margin-bottom: var(--sp-md);
}
.ws-article-header__meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }
.ws-article-header__meta span { margin-right: var(--sp-md); }
.ws-article-header__image { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); margin-top: var(--sp-xl); }
.ws-article-header__image img { width: 100%; max-height: 480px; object-fit: cover; }

.ws-prose { font-size: 16px; line-height: 1.7; color: var(--body); }
.ws-prose h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.013em; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); line-height: 1.25; }
.ws-prose h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); line-height: 1.3; }
.ws-prose p { margin-bottom: var(--sp-md); }
.ws-prose ul, .ws-prose ol { margin: var(--sp-md) 0 var(--sp-md) var(--sp-xl); list-style: disc; }
.ws-prose ol { list-style: decimal; }
.ws-prose li { margin-bottom: var(--sp-xs); }
.ws-prose a { color: var(--ink); }
.ws-prose blockquote { border-left: 3px solid var(--hairline-str); padding-left: var(--sp-lg); margin: var(--sp-xl) 0; color: var(--muted); font-style: italic; }
.ws-prose figure { margin: var(--sp-xl) 0; }
.ws-prose figure img { border-radius: var(--r-md); border: 1px solid var(--hairline); width: 100%; }
.ws-prose figcaption { font-size: 13px; color: var(--muted); margin-top: var(--sp-xs); }
.ws-prose code { font-family: var(--mono); font-size: 13px; background: var(--card); padding: 2px 6px; border-radius: var(--r-xs); border: 1px solid var(--hairline); }

.ws-sidebar { position: sticky; top: 80px; }
.ws-sidebar__card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-lg); margin-bottom: var(--sp-lg); }
.ws-sidebar__card h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-md); }
.ws-sidebar__card ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.ws-sidebar__card ul li a { font-size: 14px; color: var(--body); text-decoration: none; }
.ws-sidebar__card ul li a:hover { color: var(--ink); }

.ws-form-section { padding: var(--sp-section) 0; border-top: 1px solid var(--hairline); }
.ws-form-section h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.013em; color: var(--ink); margin-bottom: var(--sp-xxl); }
.ws-form { max-width: 560px; }
.ws-form__group { display: flex; flex-direction: column; gap: var(--sp-xs); margin-bottom: var(--sp-lg); }
.ws-form__group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.ws-form__group input,
.ws-form__group textarea {
    background: var(--card); color: var(--ink); border: 1px solid var(--hairline-str);
    border-radius: var(--r-md); padding: 12px var(--sp-base); font-size: 16px;
    font-family: var(--font); height: 44px; width: 100%; outline: none;
    transition: border-color .15s;
}
.ws-form__group textarea { height: 120px; resize: vertical; }
.ws-form__group input:focus,
.ws-form__group textarea:focus { border-color: var(--ink); }
.ws-form__group .ws-form__error { font-size: 13px; color: var(--error); display: none; }
.ws-form__group.has-error input,
.ws-form__group.has-error textarea { border-color: var(--error); }
.ws-form__group.has-error .ws-form__error { display: block; }
.ws-btn {
    background: var(--ink); color: var(--canvas); font-size: 14px; font-weight: 500;
    padding: 12px 20px; height: 44px; border-radius: var(--r-md); border: none;
    cursor: pointer; font-family: var(--font); display: inline-flex; align-items: center;
    gap: var(--sp-xs); transition: background .15s;
}
.ws-btn:hover { background: #3a3930; }
.ws-btn:disabled { opacity: .6; cursor: not-allowed; }
.ws-form__success { display: none; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-lg); font-size: 15px; color: var(--success); margin-top: var(--sp-lg); }

.ws-cookie {
    display: none; position: fixed; bottom: var(--sp-xl); left: 50%;
    transform: translateX(-50%); z-index: 999; background: var(--ink);
    color: var(--canvas); border-radius: var(--r-lg); padding: var(--sp-lg) var(--sp-xl);
    max-width: 640px; width: calc(100% - var(--sp-xl) * 2);
    display: flex; align-items: flex-start; gap: var(--sp-xl); box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.ws-cookie[data-hidden="true"] { display: none !important; }
.ws-cookie__text { font-size: 14px; color: #c8c7c0; line-height: 1.5; flex: 1; }
.ws-cookie__text a { color: #e6e5e0; }
.ws-cookie__actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; flex-wrap: wrap; }
.ws-cookie__btn {
    font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--r-md);
    border: none; cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.ws-cookie__btn--accept { background: var(--canvas); color: var(--ink); }
.ws-cookie__btn--reject { background: transparent; color: #a09c92; border: 1px solid #4a4940; }

.ws-page-header { padding: var(--sp-section) 0 var(--sp-xxl); border-bottom: 1px solid var(--hairline); }
.ws-page-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; letter-spacing: -0.025em; color: var(--ink); line-height: 1.15; max-width: 700px; margin-bottom: var(--sp-md); }
.ws-page-header__sub { font-size: 16px; color: var(--body); max-width: 580px; line-height: 1.6; }

.ws-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: var(--sp-section) 0 0; }
.ws-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xxl); padding-bottom: var(--sp-xxl); }
.ws-footer__brand { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: var(--sp-sm); }
.ws-footer__col p { font-size: 14px; color: var(--body); line-height: 1.6; }
.ws-footer__col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-md); }
.ws-footer__col ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.ws-footer__col ul li a { font-size: 14px; color: var(--body); text-decoration: none; }
.ws-footer__col ul li a:hover { color: var(--ink); }
.ws-footer__bottom { border-top: 1px solid var(--hairline-soft); padding: var(--sp-lg) 0; }
.ws-footer__bottom p { font-size: 13px; color: var(--muted); }
.ws-footer__bottom a { color: var(--muted); }
.ws-footer__updated { margin-top: 4px; }

.ws-breadcrumb { padding: var(--sp-lg) 0; }
.ws-breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-xs); font-size: 13px; color: var(--muted); list-style: none; }
.ws-breadcrumb ol li::after { content: '/'; margin-left: var(--sp-xs); }
.ws-breadcrumb ol li:last-child::after { display: none; }
.ws-breadcrumb ol li a { color: var(--muted); text-decoration: none; }
.ws-breadcrumb ol li a:hover { color: var(--ink); }

@media (max-width: 1024px) {
    .ws-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ws-grid--article { grid-template-columns: 1fr; }
    .ws-sidebar { position: static; }
    .ws-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .ws-nav__toggle { display: flex; }
    .ws-nav__list { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; padding: var(--sp-lg) var(--sp-xl); gap: var(--sp-md); }
    .ws-nav__list.is-open { display: flex; }
    .ws-grid--3, .ws-grid--2 { grid-template-columns: 1fr; }
    .ws-footer__inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .ws-cookie { flex-direction: column; gap: var(--sp-md); }
}
@media (max-width: 640px) {
    .ws-container { padding: 0 var(--sp-base); }
    .ws-hero__image img { height: 240px; }
}
