:root {
    color-scheme: light;
    --ink: #171717;
    --soft-ink: #3d403b;
    --muted: #74796f;
    --paper: #f7f2e9;
    --surface: #fffdf8;
    --line: #ded2bd;
    --sage: #376b5a;
    --sage-dark: #254a40;
    --brick: #9a4a34;
    --amber: #d69a31;
    --shadow: 0 22px 70px rgba(39, 35, 27, .15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.72;
    background:
        linear-gradient(90deg, rgba(55, 107, 90, .06) 1px, transparent 1px),
        linear-gradient(rgba(55, 107, 90, .05) 1px, transparent 1px),
        var(--paper);
    background-size: 44px 44px;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    min-height: 84vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(18, 25, 21, .82), rgba(18, 25, 21, .4) 46%, rgba(18, 25, 21, .08)),
        url("https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=2200&q=82") center/cover;
}

.nav {
    width: min(1180px, calc(100% - 36px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 1.18rem;
    font-weight: 800;
}

.brand span {
    color: #f2c46c;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .86);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .12);
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .1);
}

.hero {
    width: min(1180px, calc(100% - 36px));
    margin: auto auto 9vh;
    display: grid;
    grid-template-columns: minmax(0, 820px) 220px;
    gap: 42px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.7rem, 7.4vw, 6.8rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy > p:last-child {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.12rem;
}

.hero-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background: rgba(22, 28, 24, .38);
    backdrop-filter: blur(12px);
}

.hero-panel span,
.hero-panel small {
    display: block;
    color: rgba(255, 255, 255, .72);
}

.hero-panel strong {
    display: block;
    margin: 6px 0;
    font-size: 4rem;
    line-height: 1;
}

main {
    width: min(1180px, calc(100% - 36px));
    margin: 54px auto 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: start;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2,
.editor h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.posts {
    min-width: 0;
}

.post {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    min-height: 210px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(50, 43, 31, .08);
}

.post.no-cover {
    grid-template-columns: 1fr;
    min-height: auto;
}

.post.no-cover .post-body {
    padding: 30px 32px;
}

.cover {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.post-body {
    padding: 26px 28px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
}

.post-meta span::before {
    content: "/";
    margin-right: 10px;
    color: #b8aa93;
}

.post h3 {
    margin: 10px 0 12px;
    color: #20221f;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.22;
}

.content {
    color: var(--soft-ink);
    white-space: normal;
}

.editor {
    position: sticky;
    top: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--shadow);
}

.editor-head {
    margin-bottom: 16px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: #343a35;
    font-size: .92rem;
    font-weight: 750;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfc4b0;
    border-radius: 7px;
    padding: 11px 12px;
    color: var(--ink);
    font: inherit;
    background: #fff;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(55, 107, 90, .14);
}

textarea {
    resize: vertical;
}

button {
    border: 0;
    border-radius: 7px;
    padding: 12px 16px;
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    background: var(--sage);
}

button:hover {
    background: var(--sage-dark);
}

.notice,
.error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: .94rem;
}

.notice {
    color: #14532d;
    background: #dcfce7;
}

.error {
    color: #7f1d1d;
    background: #fee2e2;
}

footer {
    padding: 30px 16px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, .62);
}

@media (max-width: 940px) {
    .hero,
    main {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        width: min(260px, 100%);
    }

    .editor {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 76vh;
    }

    .nav {
        width: min(100% - 28px, 1180px);
    }

    .nav-links a:first-child {
        display: none;
    }

    .hero,
    main {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 4.6rem);
    }

    .post {
        grid-template-columns: 1fr;
    }

    .cover {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .post-body,
    .editor {
        padding: 21px;
    }
}
