﻿/* ============================================
   MINIMALIST BIOGRAPHY SITE - styles.css
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2c2c2c;
    background: #fdfdfd;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 1.6em 0 0.5em;
}

h1 { font-size: 2em; font-weight: 700; }
h2 { font-size: 1.45em; font-weight: 600; }
h3 { font-size: 1.15em; font-weight: 600; }
h4 { font-size: 1em; font-weight: 600; }

p {
    margin-bottom: 1.1em;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* Header */
header {
    padding: 24px 0 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

header a {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
}

header a:hover {
    color: #2563eb;
    text-decoration: none;
}

header span {
    font-size: 0.82em;
    color: #777;
    font-style: italic;
}

/* Navigation / Breadcrumb */
nav {
    font-size: 0.82em;
    color: #888;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: #555;
    font-weight: 500;
}

nav a:hover {
    color: #2563eb;
}

nav span {
    color: #bbb;
}

/* Main content */
main {
    min-height: 60vh;
}

/* Hero section (homepage) */
section:first-of-type h1 {
    margin-top: 0.3em;
}

section:first-of-type p {
    font-size: 1.05em;
    color: #555;
    max-width: 560px;
}

/* Card grid (homepage) */
main > section > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Article cards */
article {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px;
    transition: border-color 0.15s ease;
    background: #fff;
}

article:hover {
    border-color: #2563eb;
}

article a {
    display: block;
    color: inherit;
}

article a:hover {
    text-decoration: none;
}

article h3 {
    font-size: 1.05em;
    margin: 0 0 4px;
    color: #1a1a1a;
}

article p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

article p small {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

article span {
    font-size: 0.75em;
    color: #999;
}

article > a > span:last-child {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

/* Biography page */
article > header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
    margin-bottom: 18px;
    display: block;
}

article > header > span {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.72em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

article > header h1 {
    margin-top: 4px;
}

article > header > div {
    font-size: 0.85em;
    color: #777;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

article > div:first-of-type {
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.95em;
    line-height: 1.7;
    border-radius: 0 3px 3px 0;
}

/* Facts box */
aside {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

aside h3 {
    margin-top: 0;
    font-size: 0.95em;
    color: #1a1a1a;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside li {
    font-size: 0.85em;
    color: #444;
    padding: 4px 0 4px 18px;
    position: relative;
}

aside li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.75em;
    top: 5px;
}

/* Bio sections */
article > section {
    margin-bottom: 22px;
}

article > section h2,
article > section h3 {
    margin-top: 1.2em;
}

/* Quote */
blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    background: #fafafa;
    border-left: 3px solid #2563eb;
    font-style: italic;
    color: #444;
    border-radius: 0 3px 3px 0;
}

blockquote p {
    margin-bottom: 6px;
}

blockquote cite {
    font-size: 0.82em;
    color: #888;
    font-style: normal;
}

/* FAQ */
article > section:last-of-type h2 {
    margin-bottom: 12px;
}

article > section:last-of-type > div {
    border: 1px solid #eaeaea;
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

article > section:last-of-type h4 {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.88em;
    background: #fafafa;
    cursor: pointer;
    font-weight: 600;
}

article > section:last-of-type p {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 0.84em;
    color: #555;
}

/* Related figures */
article > section:nth-last-of-type(2) ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
}

article > section:nth-last-of-type(2) li {
    margin: 0;
}

article > section:nth-last-of-type(2) a {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f4ff;
    border-radius: 3px;
    font-size: 0.82em;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

article > section:nth-last-of-type(2) a:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* Sidebar */
main > aside {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px;
    margin-top: 22px;
}

main > aside h3 {
    margin-top: 0;
    font-size: 0.95em;
}

main > aside table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84em;
}

main > aside td {
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
}

main > aside td:first-child {
    color: #888;
    font-weight: 600;
    width: 40%;
}

main > aside tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    padding: 20px 0;
    margin-top: 44px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 0.82em;
    color: #888;
}

footer a {
    color: #555;
    font-weight: 500;
}

footer div {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

/* Utility */
hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 28px 0;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 0 16px;
    }

    h1 { font-size: 1.6em; }

    main > section > div {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    article > header > div {
        flex-direction: column;
        gap: 4px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    main > section > div {
        grid-template-columns: repeat(2, 1fr);
    }
}