/* ============================================
   rabas.es — Editorial Design System
   Inspired by classic newspaper layouts (NYT)
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FAFAFA;
    color: #1A1A1A;
    font-family: 'Source Serif 4', 'Georgia', serif;
    line-height: 1.7;
}

a {
    color: #A0522D;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7a3e22;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Layout Container ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Masthead ---- */
.masthead {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.masthead h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #1A1A1A;
}

.masthead h1 a {
    color: inherit;
    text-decoration: none;
}

.masthead h1 a:hover {
    color: inherit;
}

.masthead .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    color: #666;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Navigation ---- */
.nav {
    border-top: 2px solid #1A1A1A;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A1A1A;
    padding: 0.25rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: #A0522D;
}

/* ---- Article Layout ---- */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 5rem);
}

.article-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
}

.article p {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    margin-bottom: 1.25rem;
}

.article h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.article ul,
.article ol {
    margin: 0 0 1.25rem 1.5rem;
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
}

.article li {
    margin-bottom: 0.5rem;
}

/* ---- Drop Cap ---- */
.drop-cap::first-letter {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.08em;
    margin-top: 0.05em;
    color: #1A1A1A;
}

/* ---- Horizontal Rule / Separator ---- */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* ---- Homepage Editorial Grid ---- */
.editorial-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 5rem);
}

.featured-article {
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.featured-article .teaser-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.featured-article .teaser-headline a {
    color: #1A1A1A;
}

.featured-article .teaser-headline a:hover {
    color: #A0522D;
}

.featured-article .teaser-extract {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: #444;
    line-height: 1.6;
}

.secondary-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.secondary-article {
    border-top: 3px solid #1A1A1A;
    padding-top: 1rem;
}

.secondary-article .teaser-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.secondary-article .teaser-headline a {
    color: #1A1A1A;
}

.secondary-article .teaser-headline a:hover {
    color: #A0522D;
}

.secondary-article .teaser-extract {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* ---- Restaurant Cards ---- */
.restaurant-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.restaurant-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    background: #fff;
}

.restaurant-card.featured {
    grid-column: 1 / -1;
    border: 2px solid #A0522D;
    background: #fdf8f5;
}

.restaurant-card h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #1A1A1A;
}

.restaurant-card .dateline {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A0522D;
    margin-bottom: 0.75rem;
}

.restaurant-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.55;
}

/* ---- Footer ---- */
.footer {
    border-top: 2px solid #1A1A1A;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: #A0522D;
}

.footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .secondary-articles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .nav ul {
        gap: 0.75rem;
    }
}
