/*
 * MODERN LIGHTWEIGHT RESET 
 * (Place this at the top of your styles.css)
 */

/* 1. Reset Box-Sizing for better layout control */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin/padding from common elements */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* 3. Set up responsive media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%h;
}

/* 4. Improve font rendering and link accessibility */
body {
  min-height: 100vh; /* Ensures full viewport height */
  line-height: 1.5; /* Default line height for better readability */
  -webkit-font-smoothing: antialiased; /* Better font rendering in WebKit */
}

/* 5. Ensure form elements and buttons inherit font styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* 6. Remove text decoration and color inherited from anchor tags on interactive items */
a {
    text-decoration: none;
    color: inherit;
}

/* 7. Remove list styles from nav elements (Optional, but often desirable for navigation) */
nav ul, nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 8. Fix button default border/background for easier styling (Crucial for your design) */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    /* You may need to inherit the font color: color: inherit; */
}
#bio-content.active {
    background-color: rgba(0,0,0,0.3);
    padding-bottom: 20px;
}
#bio-content .collapsible-content {
    /* Initially hide the bio content */
    display: none; 
}

#bio-content.active .collapsible-content {
    /* Show the content when the 'active' class is present */
    display: block; 
}
#bio-content p {
    padding: 20px
}
.controller-hidden {
    display: none;
}

/*Main body styles*/
body {
    background: #5A5B3D url(assets/desk-bg.jpg) no-repeat fixed center center / cover;
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
}
main {
    /*border: solid red;*/
    /*padding: 0 20px;*/
}
footer {
    /*border: solid blue;*/
    padding: 0 20px;
}

/*CSS grids*/
/* Apply these styles to your main stylesheet (styles.css) */

/* Apply the grid container properties to the body */
.layout {
    min-height: 100vh;
    display: grid; 
    
    /* Grid Template Rows: Row 1 (main) + Row 2 (footer) + Row 3 (copyright) */
    grid-template-rows: minmax(60vh, auto) 20vh 5vh;
    
    grid-template-columns: 18px 1fr 18px;
    height: auto;
}

/* 1. Top Row: The <main> element */
main {
    grid-row: 1; 
    grid-column: 2;
    /* The content within <main> will be constrained by the 70vh minimum, 
       but will automatically grow taller if the biography expands, 
       thanks to the 'auto' value in minmax(). */
}

/* 2. Bottom Row: The <footer> element */
footer {
    grid-row: 2; 
    grid-column: 2;
    /* The <footer> will always occupy 30vh of height, placed directly 
       after the <main> content. */
}

/* 3. New Bottom Row: .copyright element */
.copyright {
    grid-row: 3; 
    grid-column: 2;
    text-align: center;
    color: #C3C1AF;
    font-size: 12px;
    /* This element is now assigned to the thin 10vh row. */
}

/*fonts*/
.ibm-plex-mono-regular {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-mono-bold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-mono-bold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

.status-headline {
    padding: 60px 0 60px 20px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-size: 28px;
    line-height: 1.2;
}
.main-nav {
    padding-bottom: 40px;
    max-width: 415px;
}
.main-nav h1, 
.main-nav a {
    font-size: 16px;
    font-weight: normal;
    display: block
}
.main-nav h1 {
    text-decoration: underline;
    cursor: pointer;
    line-height: 1;
    margin: 0;
    padding: 20px 20px 0 20px;
}
.main-nav a {
    padding: 0 20px
}
.main-nav li {
    margin: 0 0 10px;
    padding: 0;
}
.main-nav a {
    text-decoration: underline;
}

/*decorative arrows*/
.main-nav a::after, .main-nav h1::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 12px;
    width: 12px;
    background-color: red;
}
.main-nav a::after {
    background: url(assets/arrow-right.png) no-repeat center/100%;
    margin-left: 10px;
}
.main-nav h1::after {
    background: url(assets/arrow-down.png) no-repeat center/100%;
    margin-left: 10px;
}
.main-nav .active h1::after {
    background: url(assets/arrow-up.png) no-repeat center/100%;
}
.component_audio {
}
.component_audio h3 {
    font-weight: normal;
    vertical-align: middle;
    font-size: 14px;
    padding-bottom: 15px;
}
.component_audio button {
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
}
.component_audio button::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    background: url(assets/play.png) no-repeat center/100%;
    margin-left: 10px;
}
#my-audio-pause::after {
    background: url(assets/stop.png) no-repeat center/100%;
}
button.hidden {
    display: none;
}
/* trigger desktop rules */
@media screen and (min-width: 800px) {
    .status-headline {
        width: 375px;
        font-size: 32px;
        padding-top: 170px;
    }
    .layout {
        max-width: 75%;
        margin: 0 auto;
    }
    /* 1. Reset the grid context established on the <body> for the footer row */
    footer {
        /* The body grid remains active, but we can set the footer to use Flex or Grid 
           for its internal content distribution and width management. */
        
        /* Set footer width to roughly one-third of the page */
        width: 33.33%; 
        
        /* 2. Align the footer element itself to the right within the grid column 2. 
           Since the body uses grid-template-columns: 1fr, the footer spans 1fr 
           of the width by default. We can use margin to push it right. */
        margin-left: auto; /* Pushes the element to the right edge of its grid cell */
        margin-right: 0; 

        /* Optional: Use Flexbox to align content (like copyright) inside the footer */
        display: flex;
        justify-content: flex-end; /* Aligns content to the right */
        
        /* Since the footer is 30vh tall, you might need to adjust padding */
        padding-right: 20px; /* Adjust padding to look good on mobile */
    }
    /* We ensure the new bottom row remains full width, overriding the footer's width change */
    .copyright {
        width: 100%;
        margin: 0; /* Resetting any potential margin alignment */
    }
    .component_audio {
        display: block
    }
    /* You may also need to adjust the content inside the corner-callout if it's separate 
       from the main copyright notice, to ensure it doesn't collide with the smaller footer. */
    .corner-callout {
        /* ... mobile adjustments for this element ... */
    }
   
}