/* PROJECT: blackletter.ultralightlife.com
   STYLE: Rigid 4-Column Broadsheet 
   EFFECT: Transparent Lifting Ink Cards
   FONT: Shadows Into Light
*/

/* 1. BASE SETTINGS */
body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Shadows Into Light', sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

/* 2. THE PAPER (CONTAINER) */
.container {
    max-width: 1600px; 
    margin: 0 auto;
    border: 2px solid #000;
    padding: 30px;
    box-sizing: border-box;
}

/* 3. THE MASTHEAD (TITLE & NAV) */
.masthead {
    text-align: center;
    border-bottom: 6px double #000;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.masthead h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    margin: 0;
    text-transform: lowercase;
    letter-spacing: -3px;
    line-height: 0.8;
}

/* NAVBAR */
.main-nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin: 20px 0;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: lowercase;
}

.main-nav a:hover {
    text-decoration: underline;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* 4. THE HERO */
.hero {
    border: 2px solid #000;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    background-color: #fff;
}

.hero h2 {
    font-size: 3.5rem;
    margin-top: 0;
    border-bottom: 2px dashed #000;
    display: inline-block;
    padding-bottom: 5px;
}

.hero p {
    font-size: 1.8rem;
    max-width: 900px;
    margin: 20px auto 0;
}

/* 5. THE 4-COLUMN RIGID GRID */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    width: 100%;
    align-items: stretch; 
}

/* 6. THE CARDS */
.card {
    display: flex;
    flex-direction: column;
    border: 2px solid #000; 
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    /* Invisible shadow by default */
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

/* THE TRANSPARENT HOVER EFFECT */
.card:hover {
    transform: translate(-4px, -4px);
    
    /* Changed hex #000 to rgba for transparency (15% opacity) */
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15); 
    
    /* Very faint tint (1% opacity) */
    background-color: rgba(0, 0, 0, 0.01); 
}

.card:active {
    transform: translate(0, 0);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    margin-top: 0;
    font-size: 2.2rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.card p {
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-grow: 1; 
}

.read-more {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: block;
}

/* 7. THE FOOTER */
.main-footer {
    margin-top: 60px;
    border-top: 2px solid #000;
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* 8. RESPONSIVE */
@media (max-width: 1100px) {
    .newspaper-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .newspaper-grid { grid-template-columns: 1fr; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 10px; }
    .masthead h1 { font-size: 4.5rem; }
}
