/* shared stylesheet 940px grid */

/* bebas neue light for body regular for heading */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
}

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

a {
    color: inherit;
}

body {
    background-color: #f8f9fa;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
}

/* header uses top margin */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5em;
    height: 85px;
}


.leftbar {
    width: 25px;
    height: 85px;
    background-color: #000000;
    flex-shrink: 0;
}

/* right bar shorter thinner */
.rightbar {
    width: 10px;
    height: 45px;
    background-color: #000000;
    flex-shrink: 0;
    margin-right: 16px;
}

/* nav to the right */
.title {
    flex-grow: 1;
    margin-left: 20px;
    display: flex;
    align-items: center;
}


.title h1 {
    font-size: 1.65em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* nav flex */
nav {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 24px;
}

nav ul li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.25em;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #000000;
}

nav ul li a:hover {
    text-decoration: none;
}

/* current page thick underline */
nav ul li a.current {
    text-decoration: underline;
    text-decoration-thickness: 5px;
    text-underline-offset: 4px;
}


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

/* content wrapper 80% centered */
.wrapper {
    width: 80%;
    margin: 0 auto;
}

/* breathing room */
main {
    margin: 40px 0;
}


.hero {
    margin-bottom: 6px; /* same as cascade */
}

.hero img {
    width: 100%;
    display: block;
}

/* cascade columns*/
.cascade {
    column-count: 3;
    column-gap: 8px;
}

.cascade a {
    display: block;
    break-inside: avoid;
}

.cascade img {
    width: 100%;
    display: block;
    margin-bottom: 8px;
}

/* project etc side by side*/
.project {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}


.projecttext,
.projectimage {
    flex: 1;
}

.projectimage {
    overflow: hidden;
}

.projectimage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.projecttext h2 {
    font-size: 1.25em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.projecttext p {
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* footer right aligned */
footer {
    border-top: 1px solid #cccccc;
    margin: 0 20px;
    text-align: right;
}

footer ul {
    list-style: none;
}

footer ul li {
    display: inline;
    margin-left: 16px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* about page 2/3 + 1/3 layout */
.about-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-body {
    flex: 2;
}

.about-body h2 {
    font-size: 1.25em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.about-body p {
    font-size: 0.85em;
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-aside {
    flex: 1;
}

.about-aside img {
    width: 100%;
    display: block;
    margin-bottom: 24px;
}

/* contact form */
.contact-form h2 {
    font-size: 1.25em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    display: block;
    margin-bottom: 16px;
    padding: 8px;
    border: 1px solid #000000;
    background-color: #f8f9fa;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 0.85em;
    font-weight: 300;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #000000;
    color: #f8f9fa;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #333333;
}

/* artwork subpage meta and description */
.artwork {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.artwork img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
}

.artwork-meta {
    font-size: 0.85em;
    font-weight: 300;
    text-align: right;
    margin-top: 6px;
    margin-bottom: 24px;
}

.artwork-description {
    font-size: 0.85em;
    font-weight: 300;
    line-height: 1.6;
}

/* for mobile */
@media (max-width: 600px) {
    .title h1, nav ul li a {
        font-size: 0.85em;
    }
}
