:root {
    --primary-bg: #1a1a1a;
    --intro-bg: rgba(215, 194, 162, 0.85);
    --envision-bg: rgba(137, 141, 124, 0.85);
    --make-bg: rgba(130, 154, 112, 0.85);
    --footer-bg: rgba(200, 200, 200, 0.85);
    --text-color: #2b2b2b;
    --accent-color: #3d5f2f;
}

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

body {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--primary-bg), #2c2c2c);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

a { color: var(--accent-color); text-decoration: none; }
a:hover, a:focus { color: #1f3a16; text-decoration: underline; }

.container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

.section {
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.intro    { background: var(--intro-bg); font-size: 1.05rem; }
.been     { background: var(--envision-bg); }
.am       { background: var(--make-bg); }
.footer   { background: var(--footer-bg); text-align: center; }

.section h2 {
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.doors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 14px;
}

.door {
    width: 122px;
    text-align: center;
}

.door a { display: block; color: #1a1a1a; }
.door a:hover, .door a:focus { text-decoration: none; }

.door img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.door a:hover img, .door a:focus img { transform: scale(1.06) rotate(-2deg); }

.door .label {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.door .note {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    font-style: italic;
}


.patents {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.patents h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.patents h3 span { font-weight: normal; font-style: italic; }

.patents a { color: #14280e; text-decoration: underline; text-decoration-color: rgba(20, 40, 14, 0.35); text-underline-offset: 2px; }
.patents a:hover, .patents a:focus { text-decoration-color: #14280e; }

.patents ul { list-style: none; }

.patents li {
    font-size: 0.92rem;
    line-height: 1.35;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.patents li:last-child { border-bottom: none; }

.patents .num {
    display: block;
    font-size: 0.82rem;
    color: #3a3a3a;
}

.footer p { margin-bottom: 8px; }

.footer .links {
    display: flex;
    justify-content: center;
    gap: 36px;
}

.footer .links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.footer .links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    body { padding: 10px; }
    .section { padding: 16px; }
    .door { width: 120px; }
    .door img { width: 68px; height: 68px; }
}

/* FXPAL sub page */
.back { font-size: 0.95rem; }
.back a { color: #f0e8d7; }
.back a:hover, .back a:focus { color: #ffffff; }
.subhead { display: flex; gap: 20px; align-items: center; }
.subhead img { width: 120px; height: auto; border-radius: 6px; flex-shrink: 0; }
.subhead h1 { font-size: 1.4rem; line-height: 1.3; }
.subhead p { margin-top: 4px; font-style: italic; }
.patents.standalone { margin-top: 0; padding-top: 0; border-top: none; }
@media (max-width: 600px) {
    .subhead { flex-direction: column; align-items: flex-start; }
}
