/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
    --primary-color: #333333;
    --text-color: #4A4A4A;
    --background-color: #FAFAFA;
    --header-bg: #89938B; /* Sage green color from layout */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 400;
}

.menu-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 1px;
    background-color: white;
    width: 100%;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Profile Section */
.profile {
    margin-bottom: 60px;
}

.profile h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.profile p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 400;
}

/* Sections */
.section {
    margin-bottom: 80px;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Grids */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.grid img:hover {
    opacity: 0.85;
}

/* Specific aspect ratios to match layout */
.graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.graphic-grid a, .ui-grid a {
    display: block;
    height: 100%;
}

.graphic-grid img, .ui-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 395 / 267;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.graphic-grid img:hover, .ui-grid img:hover {
    opacity: 0.85;
}

/* Digital Photography link */
.digital-photography {
    margin-top: 40px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.digital-photography a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

/* Footer layout for landing */
.landing-footer {
    background-color: var(--header-bg);
    padding: 40px;
    text-align: right;
    color: white;
}

/* Book Frame Specific */
.book-hero {
    margin-bottom: 60px;
}

.book-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.book-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.book-info h1 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.book-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.other-images h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 40px;
    color: var(--text-color);
}

.other-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.other-grid img {
    width: 100%;
    border: 1px solid #E0E0E0;
    height: auto;
}

/* Book Footer */
.book-nav {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.book-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
}
