/* Soleus: the palette of the first website (gold, dark red, the knight in the background), made quieter and
   more legible: serif for the headings, the system's sans-serif for the text. */
:root {
    --gold: #f2c35b;
    --gold-deep: #c9962a;
    --red: #7d1a10;
    --red-bright: #a8301e;
    --ink: #120c08;
    --panel: rgba(18, 12, 8, 0.88);
    --panel-soft: rgba(255, 245, 225, 0.04);
    --edge: rgba(201, 150, 42, 0.35);
    --edge-strong: rgba(201, 150, 42, 0.7);
    --text: #f6ecd9;
    --text-soft: #c9b896;
    --ok: #79c96b;
    --bad: #e2675a;
    --planned: #8fb4d9;
    --radius: 10px;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* One language at a time: the page's root says which, and blocks in the other one hide. */
html[lang='en'] [lang='pt-PT'],
html[lang='pt-PT'] [lang='en'] {
    display: none !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 1.02rem;
    color: var(--text);
    background: var(--ink) url('../images/fundo.jpg') center top / cover fixed no-repeat;
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(10, 6, 4, 0.7), rgba(10, 6, 4, 0.92));
    z-index: -1;
}

a {
    color: var(--gold);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-family: var(--serif);
    color: var(--gold);
    font-weight: normal;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

p + p {
    margin-top: 0.7rem;
}

ul.list {
    margin: 0.5rem 0 0 1.2rem;
}

ul.list li + li {
    margin-top: 0.3rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-soft);
}

.muted {
    color: var(--text-soft);
}

.small {
    font-size: 0.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 0.55rem 1.5rem;
    background: rgba(18, 10, 6, 0.94);
    border-bottom: 1px solid var(--edge-strong);
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gold);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand img {
    width: 38px;
    height: 38px;
    image-rendering: pixelated;
}

.site-nav {
    flex: 1;
}

.site-nav ul {
    display: flex;
    gap: 1.3rem;
    list-style: none;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--edge-strong);
    border-radius: 999px;
    overflow: hidden;
}

.lang-switch button {
    margin: 0;
    padding: 0.2rem 0.65rem;
    font: 600 0.8rem var(--sans);
    letter-spacing: 1px;
    color: var(--text-soft);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
    color: var(--ink);
    background: var(--gold);
}

/* Layout */
main {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.2rem 1rem 3rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 1.7rem;
    margin-bottom: 1.6rem;
}

.panel.narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.section-head h2 {
    margin: 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.6rem;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 1.2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--panel-soft);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
}

.card p {
    color: var(--text-soft);
}

/* Buttons */
.button,
button {
    display: inline-block;
    font: 600 0.98rem var(--sans);
    cursor: pointer;
    padding: 0.7rem 1.35rem;
    color: var(--ink);
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.button:hover,
button:hover {
    color: var(--ink);
    background: var(--text);
}

.button.secondary {
    color: var(--gold);
    background: transparent;
}

.button.secondary:hover {
    color: var(--ink);
    background: var(--gold);
}

button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

/* Home */
.hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.2rem;
    align-items: center;
}

.hero .logo {
    width: 100%;
    image-rendering: pixelated;
}

.hero h1 {
    font-size: 2.5rem;
}

.pillar {
    border-left: 3px solid var(--gold-deep);
    padding: 0.2rem 0 0.2rem 1rem;
}

.pillar p {
    color: var(--text-soft);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.fact strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: normal;
}

.fact span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* Status of a feature */
.badge {
    display: inline-block;
    font: 600 0.72rem var(--sans);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.badge.done {
    color: var(--ok);
    border: 1px solid var(--ok);
}

.badge.planned {
    color: var(--planned);
    border: 1px solid var(--planned);
}

.checklist {
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.6rem;
}

.checklist li + li {
    margin-top: 0.45rem;
}

.checklist li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.checklist.done li::before {
    content: '✓';
    color: var(--ok);
}

.checklist.planned li::before {
    content: '○';
    color: var(--planned);
}

/* Vocations */
.vocation h3 {
    font-size: 1.35rem;
}

.vocation dl {
    margin-top: 0.7rem;
}

.vocation dt {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.7rem;
}

.vocation dd {
    color: var(--text-soft);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
}

th, td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--edge);
}

th {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

th.number,
td.number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.shot {
    margin: 0;
    background: var(--panel-soft);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    overflow: hidden;
}

.shot button {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #000;
    cursor: zoom-in;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 736;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.shot button:hover img {
    transform: scale(1.03);
}

.shot figcaption {
    padding: 0.8rem 1rem 1rem;
}

.shot figcaption strong {
    display: block;
    font-family: var(--serif);
    font-weight: normal;
    color: var(--gold);
    font-size: 1.08rem;
}

.shot figcaption span {
    color: var(--text-soft);
    font-size: 0.93rem;
}

.lightbox {
    width: min(1400px, 96vw);
    max-height: 94vh;
    margin: auto;
    padding: 0;
    color: var(--text);
    background: var(--ink);
    border: 1px solid var(--edge-strong);
    border-radius: var(--radius);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.lightbox .bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
}

.lightbox .bar p {
    flex: 1;
    margin: 0;
    color: var(--text-soft);
}

.lightbox .bar button {
    padding: 0.4rem 0.9rem;
}

/* News */
.news-item {
    border-bottom: 1px solid var(--edge);
    padding: 1.1rem 0;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item time {
    color: var(--gold-deep);
    font-size: 0.88rem;
}

.news-item h3 {
    margin: 0.15rem 0 0.4rem;
}

.news-item p {
    color: var(--text-soft);
}

/* FAQ */
details {
    border-bottom: 1px solid var(--edge);
    padding: 0.9rem 0;
}

summary {
    cursor: pointer;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.08rem;
}

details p {
    margin-top: 0.5rem;
    color: var(--text-soft);
}

.with-banner {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
    align-items: start;
}

/* Only the banner beside the text: a picture inside the text keeps its own size. */
.with-banner > img {
    width: 100%;
    border-radius: 6px;
}

/* A Sol, beside the words, at its size. */
.coin {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.5rem;
    image-rendering: pixelated;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.field {
    margin-top: 1rem;
}

.field > label,
.field > .label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.field .hint {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.25rem;
}

input[type='text'],
input[type='email'],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.62rem 0.75rem;
    font: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--edge-strong);
    border-radius: 6px;
}

select option {
    color: var(--text);
    background: var(--ink);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--edge-strong);
    border-radius: 6px;
    cursor: pointer;
}

.choice:has(input:checked) {
    border-color: var(--gold);
    background: rgba(242, 195, 91, 0.12);
}

.consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.2rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.consent input {
    margin-top: 0.35rem;
    accent-color: var(--gold);
}

/* Off the screen and out of the reading order: only bots fill it. */
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error {
    color: var(--bad);
    min-height: 1.4em;
    margin-top: 0.8rem;
}

.ok {
    color: var(--ok);
}

.thanks {
    text-align: center;
    padding: 1rem 0;
}

.thanks h2 {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: rgba(10, 6, 4, 0.94);
    border-top: 1px solid var(--edge);
    padding: 2rem 1.5rem 1.2rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.site-footer .columns {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.site-footer h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.2rem;
}

.site-footer a {
    color: var(--text-soft);
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer .legal {
    max-width: 1120px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--edge);
    text-align: center;
    font-size: 0.82rem;
}

/* Phones */
@media (max-width: 760px) {
    .site-header {
        padding: 0.5rem 1rem;
        gap: 0.6rem;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
    }

    .site-nav ul {
        gap: 0.9rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
    }

    .site-nav a {
        white-space: nowrap;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-actions .button {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .brand {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    main {
        padding: 1.4rem 1rem 2.5rem;
    }

    .panel {
        padding: 1.3rem 1.1rem;
    }

    .hero,
    .with-banner,
    .form-grid,
    .site-footer .columns {
        grid-template-columns: 1fr;
    }

    .hero .logo {
        max-width: 140px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .with-banner > img {
        display: none;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
