/* Kim Larsen — larsenkim.no */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
    --bg:       #F7F3EC;
    --bg2:      #F0EBE0;
    --text:     #1a1a1a;
    --muted:    #8a7f70;
    --border:   #DDD5C5;
    --border2:  #EAE4D8;
    --forest:   #1E2A1F;
    --gold:     #B8923A;
    --max:      720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }

body {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
header {
    background: var(--bg);
    text-align: center;
    padding: 36px 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.h-top { margin-bottom: 20px; }

.h-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    display: block;
    line-height: 1;
}

.h-pos {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 7px;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--text);
    padding: 0 8px;
}

nav a {
    font-family: 'EB Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s;
    white-space: nowrap;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--text); border-bottom: 2px solid var(--text); }

.nav-tog {
    display: none;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-tog span { display: block; width: 20px; height: 1.5px; background: var(--text); }

/* ── MAIN ── */
main { flex: 1; }

/* ── PHOTO BANNER ── */
.photo-banner {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}
.photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}
.photo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20,30,20,0.05) 0%,
        rgba(20,30,20,0.65) 100%
    );
}
.photo-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 36px 48px;
    z-index: 1;
    max-width: 480px;
    text-align: right;
}
.photo-caption h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}
.photo-caption h1 em { color: #C9A84C; font-style: italic; }
.photo-caption .hero-sub {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, #B8923A 0%, #C9A84C 40%, transparent 100%);
}

@media (max-width: 640px) {
    .photo-banner { height: 280px; }
    .photo-caption { padding: 24px 20px; }
}

/* ── PAGE HEADER ── */
.ph {
    background: var(--forest);
    padding: 48px 24px 36px;
    text-align: center;
}
.ph::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ph h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
}

/* ── BODY WRAP ── */
.body-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px 24px 72px;
}

/* ── PROSE ── */
.prose p { margin-bottom: 1.4em; font-size: 1.01rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* ── YEAR HEADINGS ── */
.yr {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--forest);
    margin: 44px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gold);
}
.yr:first-of-type { margin-top: 0; }

/* ── PUB LIST ── */
ul.pub-list { list-style: none; }

ul.pub-list li {
    padding: 12px 0 12px 14px;
    border-bottom: 1px solid var(--border2);
    font-size: 0.97rem;
    line-height: 1.7;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, padding-left 0.2s, background 0.2s;
}

ul.pub-list li:hover {
    border-left-color: var(--gold);
    padding-left: 18px;
    background: var(--bg2);
}

ul.pub-list a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
ul.pub-list a:hover { text-decoration-color: var(--text); }

/* ── TAGS ── */
.tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.9;
}
.tag-main  { color: var(--forest); border-color: var(--forest); background: transparent; }
.tag-muted { color: var(--muted);  border-color: var(--border); background: transparent; }

/* ── SIMPLE LIST ── */
ul.simple-list { list-style: none; }

ul.simple-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border2);
    align-items: start;
}
ul.simple-list li:first-child { border-top: 1px solid var(--border2); }

.sl-year {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1.05rem;
    padding-top: 2px;
}

.sl-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.97rem; }
.sl-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.sl-body a:hover { text-decoration-color: var(--text); }
.sl-src { font-size: 0.83rem; color: var(--muted); font-style: italic; }

.empty { color: var(--muted); font-style: italic; padding: 24px 0; border-top: 1px solid var(--border2); }

/* ── CONTACT ── */
.contact-form { max-width: 460px; }
.field { margin-bottom: 22px; }
.field label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.field input, .field textarea {
    width: 100%;
    padding: 9px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: none;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--text); }
.field textarea { resize: vertical; min-height: 100px; }

.contact-form button {
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 11px 36px;
    font-family: 'EB Garamond', serif;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.15s;
}
.contact-form button:hover { background: var(--gold); }

.success-msg { color: #2a5e2a; font-style: italic; padding: 16px 0; }
.error-msg { color: #7a1a1a; font-size: 0.9rem; margin-bottom: 14px; }

/* ── FOOTER ── */
footer {
    background: var(--forest);
    border-top: 2px solid var(--gold);
    padding: 18px 24px;
}
.foot-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ── MOBIL ── */
@media (max-width: 640px) {
    .nav-tog { display: flex; }
    header { position: static; padding: 24px 16px 0; }
    nav { display: none; }
    nav.open { display: flex; }
    nav a { padding: 10px 14px; }
    .hero { padding: 48px 20px 40px; }
    ul.simple-list li { grid-template-columns: 1fr; gap: 3px; }
    .body-wrap { padding: 36px 20px 56px; }
}
