/* ==========================================================================
   Design Tokens - Feltoast.com (Dark Mode Native)
   All design decisions as CSS custom properties
   Default theme: Cozy late-night diner aesthetic
   ========================================================================== */

:root {
    /* ==========================================================================
       Colors - Dark Mode Native
       ========================================================================== */

    /* Background Layers (dark-first) */
    --color-dark-roast: #1C1410;      /* Body background - deep warm brown */
    --color-toasted-crust: #2A1F1A;   /* Cards, elevated surfaces */
    --color-charred-edge: #3A2D26;    /* Borders, hover states */

    /* Text Colors (light on dark) */
    --color-cream-text: #F5E6D3;      /* Primary text - warm, not harsh */
    --color-warm-white: #FFF8E7;      /* Headings - bright but warm */
    --color-muted-toast: #C9A882;     /* Secondary text */

    /* Accent Colors (brightened for dark backgrounds) */
    --color-toast-gold: #E8BA8A;      /* Links, highlights */
    --color-butter-yellow: #FFE7C6;   /* Badges, selections */
    --color-maple-syrup: #D4915A;     /* Buttons, active states */
    --color-rich-brown: #6B4D3A;      /* Subtle dividers */

    /* Semantic Colors (adjusted for dark) */
    --color-success: #8FB580;
    --color-warning: #E5B85F;
    --color-error: #D97676;
    --color-info: #7BA3D6;

    /* Rating Colors (brightened for visibility) */
    --color-rating-5: #E8BA8A;  /* Golden */
    --color-rating-4: #F0D4B0;  /* Light gold */
    --color-rating-3: #E5B85F;  /* Amber */
    --color-rating-2: #ECA060;  /* Orange */
    --color-rating-1: #F5BD85;  /* Light orange */

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Dark Grays (for dark mode) */
    --color-gray-900: #1C1410;  /* Darkest */
    --color-gray-800: #2A1F1A;
    --color-gray-700: #3A2D26;
    --color-gray-600: #4D3F36;
    --color-gray-500: #7A6A5E;
    --color-gray-400: #9B8B7F;
    --color-gray-300: #B5A89D;
    --color-gray-200: #D0C7BE;
    --color-gray-100: #EBE6E0;

    /* ==========================================================================
       Typography
       ========================================================================== */

    /* Font Families */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;

    /* Font Sizes (Type Scale) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px - H3 */
    --text-3xl: 2rem;      /* 32px - H2 */
    --text-4xl: 3rem;      /* 48px - H1 */

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ==========================================================================
       Spacing
       ========================================================================== */

    /* Base unit: 8px */
    --space-xs: 0.25rem;   /* 4px - 0.5 units */
    --space-sm: 0.5rem;    /* 8px - 1 unit */
    --space-md: 1rem;      /* 16px - 2 units */
    --space-lg: 1.5rem;    /* 24px - 3 units */
    --space-xl: 2rem;      /* 32px - 4 units */
    --space-2xl: 3rem;     /* 48px - 6 units */
    --space-3xl: 4rem;     /* 64px - 8 units */
    --space-4xl: 6rem;     /* 96px - 12 units */

    /* ==========================================================================
       Layout
       ========================================================================== */

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-padding: var(--space-md);

    /* Grid */
    --grid-gap: var(--space-lg);

    /* ==========================================================================
       Borders & Shadows (adjusted for dark mode)
       ========================================================================== */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows (subtle for dark mode - use lighter, warm tones) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.6);

    /* Elevation via borders (more visible in dark mode) */
    --border-subtle: 1px solid var(--color-charred-edge);
    --border-medium: 1px solid var(--color-gray-600);
    --border-strong: 2px solid var(--color-gray-500);

    /* ==========================================================================
       Transitions
       ========================================================================== */

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* ==========================================================================
       Z-Index Scale
       ========================================================================== */

    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}
/* ==========================================================================
   CSS Reset - Feltoast.com
   Modern CSS reset based on best practices
   ========================================================================== */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inherit fonts for form elements */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove list styles on ul, ol elements */
ul,
ol {
    list-style: none;
}

/* Set shorter line heights on headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Balance text wrapping on paragraphs */
p {
    text-wrap: pretty;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Remove button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove fieldset styles */
fieldset {
    border: none;
}
/* ==========================================================================
   Base Styles - Feltoast.com
   Default styles for HTML elements
   ========================================================================== */

/* ==========================================================================
   Document
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--color-cream-text);
    background-color: var(--color-dark-roast);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    color: var(--color-warm-white);
}

h1 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--color-maple-syrup);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-toast-gold);
}

a:focus-visible {
    outline: 2px solid var(--color-toast-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Text Elements
   ========================================================================== */

strong,
b {
    font-weight: var(--font-bold);
}

em,
i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
}

blockquote {
    padding-left: var(--space-lg);
    border-left: 4px solid var(--color-toast-gold);
    font-style: italic;
    color: var(--color-gray-300);
}

hr {
    border: none;
    height: 1px;
    background-color: var(--color-gray-700);
    margin: var(--space-2xl) 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul,
ol {
    padding-left: var(--space-lg);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
    background-color: var(--color-butter-yellow);
    color: var(--color-dark-roast);
}

/* ==========================================================================
   Focus Styles
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--color-toast-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-butter-yellow);
    color: var(--color-dark-roast);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-md);
    z-index: var(--z-modal);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}
/* ==========================================================================
   Layout - Feltoast.com
   Containers, grid system, and responsive utilities
   ========================================================================== */

/* ==========================================================================
   Breakpoints (for reference, used in media queries)
   - Mobile: < 640px (default)
   - Tablet: >= 640px
   - Desktop: >= 1024px
   - Wide: >= 1280px
   ========================================================================== */

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--sm {
    max-width: var(--container-sm);
}

.container--md {
    max-width: var(--container-md);
}

.container--lg {
    max-width: var(--container-lg);
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page__header {
    flex-shrink: 0;
}

.page__main {
    flex-grow: 1;
}

.page__footer {
    flex-shrink: 0;
}

/* ==========================================================================
   Section
   ========================================================================== */

.section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.section--lg {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }

    .section--lg {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
    }
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.grid {
    display: grid;
    gap: var(--grid-gap);
}

/* Auto-fit responsive grid */
.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Fixed column grids */
.grid--2 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

.grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ==========================================================================
   Flexbox Utilities
   ========================================================================== */

.flex {
    display: flex;
}

.flex--column {
    flex-direction: column;
}

.flex--wrap {
    flex-wrap: wrap;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
}

.flex--gap-sm {
    gap: var(--space-sm);
}

.flex--gap-md {
    gap: var(--space-md);
}

.flex--gap-lg {
    gap: var(--space-lg);
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

/* Margin top */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Margin bottom */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ==========================================================================
   Text Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.text-muted { color: var(--color-gray-500); }
.text-accent { color: var(--color-toast-gold); }

/* ==========================================================================
   Visibility Utilities
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide on mobile, show on tablet+ */
.hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hide-mobile {
        display: block;
    }
}

/* Show on mobile, hide on tablet+ */
.show-mobile {
    display: block;
}

@media (min-width: 640px) {
    .show-mobile {
        display: none;
    }
}
/* ==========================================================================
   Components - Feltoast.com
   Minimalist photo collage design
   ========================================================================== */

/* ==========================================================================
   Site Header (with fade behavior)
   ========================================================================== */

.site-header {
    background-color: rgba(42, 31, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header.is-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   Logo / Wordmark
   ========================================================================== */

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.logo__icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-toast-gold);
}

.logo__text {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-maple-syrup);
}

.logo:hover .logo__text {
    color: var(--color-toast-gold);
}

/* ==========================================================================
   Hero Photo (Full Viewport, No Text Overlays)
   ========================================================================== */

.hero-photo {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.hero-photo__image-wrapper {
    width: 100%;
    height: 100%;
}

.hero-photo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Photo Grid Section
   ========================================================================== */

.photo-grid-section {
    padding: var(--space-2xl) 0;
    background-color: var(--color-dark-roast);
}

.photo-grid {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Photo Card (Hover Overlay with Date)
   ========================================================================== */

.photo-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.photo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-card__date-overlay {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background-color: rgba(28, 20, 16, 0.15);
    color: var(--color-warm-white);
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.photo-card:hover .photo-card__date-overlay {
    opacity: 1;
    background-color: rgba(28, 20, 16, 0.7);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: var(--space-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: var(--radius-sm);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 3rem;
    line-height: 1;
}

.lightbox__prev {
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__date {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-cream-text);
    font-size: var(--text-base);
    background-color: rgba(28, 20, 16, 0.8);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .lightbox__prev,
    .lightbox__next {
        font-size: 1.5rem;
        padding: var(--space-sm);
    }

    .lightbox__prev {
        left: var(--space-sm);
    }

    .lightbox__next {
        right: var(--space-sm);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-charred-edge);
    color: var(--color-cream-text);
    padding: var(--space-md) 0;
    margin-top: auto;
    text-align: center;
    font-size: var(--text-xs);
    opacity: 0.7;
}

.site-footer a {
    color: var(--color-toast-gold);
}

.site-footer a:hover {
    color: var(--color-butter-yellow);
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .photo-card,
    .photo-card__image,
    .photo-card__date-overlay,
    .site-header,
    .lightbox {
        transition: none;
    }

    .photo-card:hover {
        transform: none;
    }
}
