/* =============================================================================
   Linen — warm magazine theme.
   Serif display headings + clean sans body. Two-column post grid on home,
   editorial single-post layout, soft paper-ish background.
   ============================================================================= */

:root {
    --ln-bg:        #f8f4ec;
    --ln-bg-card:   #ffffff;
    --ln-ink:       #2a2422;
    --ln-muted:     #6e645d;
    --ln-soft:      #a39a92;
    --ln-line:      #e7dfd2;
    --ln-accent:    #c0492b;       /* warm terracotta */
    --ln-accent-2:  #8f3522;
    --ln-radius:    4px;
    --ln-max:       1180px;
    --ln-narrow:    720px;
}

* { box-sizing: border-box; }

body.scribe {
    margin: 0;
    background: var(--ln-bg);
    color: var(--ln-ink);
    font: 17px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ln-accent); text-decoration: none; border-bottom: 1px solid rgba(192,73,43,0.25); transition: border-color .12s ease; }
a:hover { border-bottom-color: var(--ln-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    line-height: 1.2;
    margin: 1.4em 0 .5em;
    color: var(--ln-ink);
    letter-spacing: -0.01em;
}
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

blockquote {
    margin: 1.4em 0;
    padding: 0 1.2em;
    border-left: 3px solid var(--ln-accent);
    font: italic 19px/1.6 "Lora", serif;
    color: var(--ln-muted);
}
code { background: #f0e8d8; padding: 2px 6px; border-radius: 3px;
       font: 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre  { background: #f0e8d8; padding: 14px 16px; border-radius: 6px; overflow-x: auto;
       font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
hr   { border: 0; border-top: 1px solid var(--ln-line); margin: 2em 0; }
ul, ol { padding-left: 1.4em; }

/* ---------------- header ---------------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site__main { flex: 1; padding: 24px 0 64px; }

.site-header {
    border-bottom: 1px solid var(--ln-line);
    background: var(--ln-bg-card);
}
.site-header__inner {
    max-width: var(--ln-max);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-header__brand {
    border: none;
    color: var(--ln-ink);
    line-height: 1.15;
}
.site-header__brand:hover { border: none; color: var(--ln-accent); }
.site-header__brand h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 600;
}
.site-header__brand p {
    margin: 2px 0 0;
    color: var(--ln-muted);
    font: 13px/1.4 "Inter", sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.menu, .menu--primary, .menu--footer {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 22px; flex-wrap: wrap;
    font-size: 14px;
}
.menu a {
    color: var(--ln-ink);
    border-bottom: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.menu a:hover { border-bottom-color: var(--ln-accent); }

/* ---------------- index hero + grid ---------------- */
.linen-container { max-width: var(--ln-max); margin: 0 auto; padding: 0 28px; }
.linen-container--narrow { max-width: var(--ln-narrow); }

.linen-hero {
    margin: 24px 0 40px;
}
.linen-hero__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: stretch;
    background: var(--ln-bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ln-line);
}
.linen-hero__image {
    background: #eadfc8 center/cover no-repeat;
    min-height: 320px;
}
.linen-hero__image img {
    width: 100%; height: 100%; object-fit: cover; min-height: 320px;
}
.linen-hero__body {
    padding: 36px 32px;
    display: flex; flex-direction: column; justify-content: center;
}
.linen-hero__eyebrow {
    color: var(--ln-accent);
    font: 600 12px/1 "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}
.linen-hero__title {
    font-size: 36px;
    margin: 0 0 12px;
    line-height: 1.15;
}
.linen-hero__title a { color: inherit; border: none; }
.linen-hero__title a:hover { color: var(--ln-accent); }
.linen-hero__meta { color: var(--ln-muted); font-size: 13px; margin: 0 0 14px; }
.linen-hero__excerpt { color: var(--ln-ink); margin: 0 0 18px; }
.linen-hero__more {
    align-self: flex-start;
    font: 600 14px/1 "Inter", sans-serif;
    color: var(--ln-accent);
    border: none;
}

.linen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.linen-card {
    background: var(--ln-bg-card);
    border: 1px solid var(--ln-line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.linen-card__image {
    aspect-ratio: 16 / 9;
    background: #eadfc8 center/cover no-repeat;
}
.linen-card__image img { width: 100%; height: 100%; object-fit: cover; }
.linen-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.linen-card__cats {
    color: var(--ln-accent);
    font: 600 11px/1 "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.linen-card__cats a { color: inherit; border: none; }
.linen-card__title { font-size: 22px; margin: 0 0 8px; line-height: 1.2; }
.linen-card__title a { color: var(--ln-ink); border: none; }
.linen-card__title a:hover { color: var(--ln-accent); }
.linen-card__meta { color: var(--ln-soft); font-size: 12px; margin: 0 0 12px; }
.linen-card__excerpt { color: var(--ln-muted); margin: 0 0 14px; flex: 1; }
.linen-card__more {
    align-self: flex-start;
    font: 600 13px/1 "Inter", sans-serif;
    color: var(--ln-accent); border: none;
}

/* ---------------- single ---------------- */
.linen-single { max-width: var(--ln-narrow); margin: 0 auto; padding: 0 28px; }
.linen-single__head { padding: 24px 0 8px; text-align: center; }
.linen-single__cats {
    color: var(--ln-accent);
    font: 600 12px/1 "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
}
.linen-single__cats a { color: inherit; border: none; }
.linen-single__title { font-size: 44px; margin: 0 0 16px; line-height: 1.1; letter-spacing: -0.02em; }
.linen-single__meta { color: var(--ln-muted); font-size: 14px; }
.linen-single__featured {
    max-width: var(--ln-max);
    margin: 32px auto 32px;
    padding: 0 28px;
}
.linen-single__featured img { width: 100%; border-radius: 6px; }
.linen-single__content {
    font-size: 18px;
    line-height: 1.75;
    color: #2e2722;
}
.linen-single__content :first-child { margin-top: 0; }
.linen-single__content h2 { margin-top: 2em; }
.linen-single__content h3 { margin-top: 1.8em; }
.linen-single__content img { border-radius: 6px; margin: 1.4em 0; }

.linen-single__footer {
    margin: 48px 0 0;
    padding: 22px 0;
    border-top: 1px solid var(--ln-line);
    border-bottom: 1px solid var(--ln-line);
    color: var(--ln-muted);
    font: 14px/1.5 "Inter", sans-serif;
}

/* ---------------- page ---------------- */
.linen-page { max-width: var(--ln-narrow); margin: 0 auto; padding: 24px 28px 0; }
.linen-page__title { font-size: 40px; margin: 16px 0 28px; text-align: center; }
.linen-page__content { font-size: 17px; line-height: 1.75; }

/* ---------------- archive / search ---------------- */
.linen-archive__head { text-align: center; padding: 24px 0 28px; }
.linen-archive__head h1 { font-size: 36px; margin: 0 0 8px; }
.linen-archive__head p  { color: var(--ln-muted); margin: 0; }

/* ---------------- pagination ---------------- */
.pagination { margin: 40px 0 0; font: 14px/1 "Inter", sans-serif; }
.pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pagination a {
    display: inline-block; padding: 8px 13px;
    border: 1px solid var(--ln-line); border-radius: 6px;
    background: var(--ln-bg-card); color: var(--ln-ink); border-bottom-width: 1px;
}
.pagination a:hover { background: var(--ln-bg); }
.pagination li.is-current a { background: var(--ln-accent); border-color: var(--ln-accent); color: #fff; }

/* ---------------- comments ---------------- */
.comments {
    max-width: var(--ln-narrow); margin: 56px auto 0; padding: 0 28px;
}
.comments h2 { font-size: 22px; margin: 0 0 18px; }
.comment-list, .comment-list--nested { list-style: none; padding: 0; margin: 0; }
.comment-list--nested {
    margin: 14px 0 0 24px; padding-left: 18px;
    border-left: 2px solid var(--ln-line);
}
.comment { padding: 16px 0; border-bottom: 1px solid var(--ln-line); }
.comment-list--nested .comment:last-child { border-bottom: none; }
.comment__head {
    color: var(--ln-muted);
    font: 13px/1.4 "Inter", sans-serif;
    margin-bottom: 6px;
}
.comment__head strong { color: var(--ln-ink); }
.comment__head time { margin-left: 6px; }
.comment__body p { margin: 0 0 .5em; }

.comment-form-wrap {
    margin-top: 36px;
    padding: 28px;
    background: var(--ln-bg-card);
    border: 1px solid var(--ln-line);
    border-radius: 8px;
}
.comment-form-wrap h3 { margin: 0 0 16px; font-size: 20px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font: 600 14px/1 "Inter", sans-serif; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email],
.comment-form input[type=url], .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--ln-line);
    border-radius: 4px; background: #fbf8f1; font: inherit; color: var(--ln-ink);
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: var(--ln-accent);
    box-shadow: 0 0 0 3px rgba(192,73,43,0.15);
}
.comment-form button {
    background: var(--ln-accent); color: #fff; border: 0;
    padding: 10px 22px; border-radius: 4px;
    font: 600 14px/1 "Inter", sans-serif; cursor: pointer;
}
.comment-form button:hover { background: var(--ln-accent-2); }

.comment-form-status { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.comment-form-status--ok    { background: #e6f5ec; color: #1f6f37; }
.comment-form-status--info  { background: #fef1e6; color: #8a3e08; }
.comment-form-status--error { background: #fdecec; color: var(--ln-accent); list-style: none; }
.comment-form-status--error li { margin: 2px 0; }

/* ---------------- sidebar / widgets ---------------- */
.linen-with-sidebar {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    max-width: var(--ln-max); margin: 0 auto; padding: 0 28px;
}
.linen-with-sidebar > main { min-width: 0; }
.widget-area {
    font: 14px/1.6 "Inter", sans-serif;
}
.widget { padding: 20px 0; border-bottom: 1px solid var(--ln-line); }
.widget:last-child { border-bottom: none; }
.widget__title {
    font: 600 11px/1 "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ln-muted);
    margin: 0 0 14px;
}
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { margin: 6px 0; }
.widget-list a { color: var(--ln-ink); border: none; }
.widget-list a:hover { color: var(--ln-accent); }
.widget-count { color: var(--ln-soft); font-size: 12px; }
.widget-tagcloud a {
    display: inline-block; margin: 0 4px 6px 0; padding: 4px 10px;
    background: var(--ln-bg); border-radius: 999px;
    color: var(--ln-ink); border: none; font-size: 13px;
}
.widget-tagcloud a:hover { background: var(--ln-accent); color: #fff; }
.widget-search { display: flex; gap: 6px; }
.widget-search input {
    flex: 1; padding: 8px 10px; border: 1px solid var(--ln-line);
    border-radius: 4px; background: var(--ln-bg-card); font: inherit;
}
.widget-search button {
    padding: 8px 14px; background: var(--ln-accent); color: #fff;
    border: 0; border-radius: 4px; cursor: pointer; font: 600 13px/1 "Inter", sans-serif;
}

/* ---------------- footer ---------------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--ln-line); background: var(--ln-bg-card); }
.site-footer__inner {
    max-width: var(--ln-max); margin: 0 auto;
    padding: 32px 28px;
    display: flex; justify-content: space-between; gap: 18px;
    flex-wrap: wrap;
    color: var(--ln-muted); font: 13px/1.5 "Inter", sans-serif;
}
.site-footer__credits a { color: var(--ln-muted); border: none; }
.site-footer__credits a:hover { color: var(--ln-accent); }

/* ---------------- 404 / not-found ---------------- */
.not-found { text-align: center; padding: 60px 28px; }
.not-found h1 { font-size: 48px; }
.not-found p { color: var(--ln-muted); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
    .linen-hero__inner { grid-template-columns: 1fr; }
    .linen-hero__image { min-height: 200px; }
    .linen-grid { grid-template-columns: 1fr; }
    .linen-with-sidebar { grid-template-columns: 1fr; }
    .linen-with-sidebar > aside { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ln-line); }
}
@media (max-width: 600px) {
    h1 { font-size: 30px; }
    .linen-hero__title, .linen-single__title { font-size: 28px; }
    .linen-page__title { font-size: 28px; }
    .linen-hero__body { padding: 24px 22px; }
    .site-header__inner { padding: 14px 18px; }
    .linen-container, .linen-single, .linen-page, .linen-with-sidebar, .comments { padding-left: 18px; padding-right: 18px; }
}

/* ---------------- brochure intro (journal hidden) ---------------- */
.site-intro { padding: 32px 0 8px; color: var(--ln-muted); font-size: 19px; }

/* ---------------- newsletter block ---------------- */
.newsletter-block {
    margin: 44px 0 8px;
    padding: 30px;
    background: var(--ln-bg-card);
    border: 1px solid var(--ln-line);
    border-radius: var(--ln-radius);
}
.newsletter-block__heading { margin: 0 0 8px; font-size: 24px; }
.newsletter-block__copy { margin: 0 0 18px; color: var(--ln-muted); }
.newsletter-block__row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-block__email-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.newsletter-block__email {
    flex: 1 1 220px; min-height: 46px; padding: 10px 14px;
    border: 1px solid var(--ln-line); border-radius: var(--ln-radius);
    background: var(--ln-bg); color: var(--ln-ink); font: inherit;
}
.newsletter-block__email:focus { outline: none; border-color: var(--ln-accent); box-shadow: 0 0 0 3px rgba(192,73,43,.15); }
.newsletter-block__submit {
    min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--ln-radius);
    background: var(--ln-accent); color: #fff; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.newsletter-block__submit:hover { background: var(--ln-accent-2); }
.newsletter-block__fineprint { margin: 12px 0 0; color: var(--ln-soft); font-size: 13px; }
.newsletter-block__status {
    margin: 0 0 14px; padding: 10px 14px; border-radius: var(--ln-radius);
    border: 1px solid var(--ln-line); background: var(--ln-bg); font-size: 14px;
}
.newsletter-block__status--check-email, .newsletter-block__status--already { border-color: var(--ln-accent); }
.newsletter-block__status--invalid, .newsletter-block__status--expired, .newsletter-block__status--slow-down { border-color: var(--ln-accent-2); color: var(--ln-accent-2); }

/* ---------------- footer credit (the_footer_credit) ---------------- */
.site-credit { margin: 0; }
.site-credit .site-credit__sep { color: var(--ln-soft); }
