/* ==========================================================================
   FONT-FACE DEFINITIONS
   (JUMPING OUT OF /STYLES FOLDER TO FIND /FONTS FOLDER)
   ========================================================================== */

/* MERCHANT - .WOFF */
@font-face {
    font-family: 'Merchant';
    src: url('../fonts/Merchant-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* LONDON - .WOFF */
@font-face {
    font-family: 'London';
    src: url('../fonts/London.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* FEDARO - .WOFF2 */
@font-face {
    font-family: 'Fedaro';
    src: url('../fonts/Fedaro.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* MARYKATE - .WOFF */
@font-face {
    font-family: 'Marykate';
    src: url('../fonts/Marykate.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   MAIN LAYOUT - CSS GRID
   ========================================================================== */

.page-layout {
    display: grid;
    /* 3-COLUMN GRID: GUTTER | 65CH CONTENT AREA | GUTTER */
    grid-template-columns: var(--gutter) var(--main-column) var(--gutter);
    /* ROW SETUP: HEADER, HERO, INTRO, SPACER(1FR), FOOTER */
    grid-template-rows: auto auto auto 1fr auto;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: var(--brand-font-body);
    background-color: var(--brand-tilite-purple);
    color: var(--brand-white-almost);
}

/* DIRECT CHILDREN PLACEMENT INTO THE CENTER COLUMN */
.header, 
.main-content, 
.footer {
    grid-column: 2;
}

/* ==========================================================================
   GLOBAL INTERACTIVE STATES (LINKS)
   ========================================================================== */

a {
    color: var(--brand-white-almost);
    transition: opacity 0.2s ease, outline 0.1s ease;
}

/* HOVER - SLIGHT TRANSPARENCY */
a:hover {
    opacity: 0.8;
}

/* FOCUS - HIGH CONTRAST ACCESSIBILITY RING */
a:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ACTIVE - "PRESSED" FEEL */
a:active {
    transform: translateY(1px);
}

/* ==========================================================================
   HEADER & HERO
   ========================================================================== */

.header {
    padding: 3rem 0;
    justify-self: center;
}

.hero__title {
    font-family: var(--brand-font-social-heading); /* POPPINS */
    font-size: clamp(2.5rem, 8vw, 4rem);
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */

.intro {
    display: grid;
    gap: 2rem;
    justify-items: center; 
    text-align: center;
}

.intro__text {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* SUPERSCRIPT NAMING RESET */
sup {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
    font-size: 0.6em;
}

/* ==========================================================================
   COFFEE CHAT COMPONENT (BEM)
   ========================================================================== */

.coffee-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--brand-white-almost);
    color: var(--brand-tilite-purple);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    opacity: 1; /* OVERRIDE GLOBAL A TAG OPACITY */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* HOVER - LIFT AND SHADOW */
.coffee-link:hover {
    opacity: 1;
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FOCUS - ACCESSIBILITY RING */
.coffee-link:focus-visible {
    outline: 4px solid var(--brand-green);
    outline-offset: 6px;
}

/* ACTIVE - PRESS EFFECT */
.coffee-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.coffee-link__icon {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   SOCIAL LINKS BLOCK (BEM)
   ========================================================================== */

.social-links__list {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 2rem;
    justify-content: center;
    padding: 4rem 0;
    list-style: none;
}

.social-links__link {
    display: block;
    transition: transform 0.2s ease;
}

.social-links__link:hover {
    transform: scale(1.1);
}

/* TARGETS ALL CLASSES STARTING WITH ICON__ */
[class^="icon__"] {
    width: 40px;
    height: 40px;
}

/* ==========================================================================
   FOOTER & WEBRING
   ========================================================================== */

.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--brand-white-almost); 
    align-self: end;
    text-align: center;
}

.a11y-webring-club__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--brand-font-social-heading);
}

.a11y-webring-club__list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
}

.footer a {
    text-underline-offset: 4px;
}

/* ==========================================================================
   MEDIA QUERIES (TABLETS / DESKTOP)
   ========================================================================== */

@media (min-width: 48rem) {
    .intro {
        justify-items: center;
        text-align: center;
    }
}