/* Contact page. Same paper-sheet look as the résumé and cover letter. */
:root{
    --ink:        #1c2733;
    --ink-soft:   #46525e;
    --rule:       #c7ccd1;
    --rule-light: #e4e7ea;
    --accent:     #8a6a3e;
    --paper:      #ffffff;
}

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

body{
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #e9e7e2;
    line-height: 1.5;
}

.page{
    max-width: 860px;
    margin: 32px auto;
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(28,39,51,0.12), 0 8px 24px rgba(28,39,51,0.08);
    padding: 50px 68px 56px;
}

.page-head{
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 20px;
    margin-bottom: 34px;
}

.portrait{
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: #fff;
}

h1{
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: 0.2px;
    line-height: 1.15;
}

.role-tag{
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-top: 2px;
    font-weight: 500;
}

h2{
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

section + section{ margin-top: 40px; }

.intro{
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 22px;
}

/* ---- contact details ---- */
.details{ border-top: 1px solid var(--rule-light); }
.details > div{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule-light);
}
.details dt{
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.details dd{
    font-size: 0.98rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.details a{ color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.details a:hover{ border-bottom-color: var(--ink); }

.actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn{
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-secondary{ background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover{ border-color: var(--ink); }

/* ---- links to the other career pages ---- */
.doc-links{ list-style: none; }
.doc-links li:first-child a{ padding-top: 4px; }
.doc-links a{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-light);
    color: inherit;
    text-decoration: none;
}
.doc-title{ font-family: 'Source Serif 4', serif; font-size: 1.1rem; font-weight: 600; }
.doc-desc{ grid-column: 1; font-size: 0.85rem; color: var(--ink-soft); }
.doc-arrow{ grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); transition: transform 0.15s; }
.doc-links a:hover .doc-title{ text-decoration: underline; text-underline-offset: 3px; }
.doc-links a:hover .doc-arrow{ transform: translateX(3px); }

@media print {
    body{ background: var(--paper); }
    .page{ margin: 0; box-shadow: none; max-width: none; }
    .actions{ display: none; }
    @page{ margin: 0.5in; }
}

@media (max-width: 640px){
    .page{ margin: 0; padding: 32px 20px 40px; box-shadow: none; }
    .page-head{ gap: 16px; }
    .portrait{ width: 68px; height: 68px; }
    h1{ font-size: 1.8rem; }
    .details > div{ grid-template-columns: 1fr; gap: 2px; }
}

/* ===== DARK MODE ===== */
html[data-theme="dark"]{
    --ink:        #e6e9ed;
    --ink-soft:   #b4bcc5;
    --rule:       #3a4450;
    --rule-light: #2a323c;
    --accent:     #d4b27f;
    --paper:      #161b22;
}
html[data-theme="dark"] body{ background: #0d1117; }
html[data-theme="dark"] .page{ box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.4); }
