﻿.site-header {
    width: 100%;
    text-align: center;
    margin: 0 0 35px 0;
    padding: 5px 0 6px 0;
    border-bottom: 2px solid #d8c3a5;
    box-sizing: border-box;
}

.site-brand a {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #8b4513;
    text-decoration: none;
}

.site-brand a:hover {
    color: #a85d1a;
    text-decoration: none;
}

.site-nav {
    margin-top: 18px;
    margin-bottom: 14px;
}

.site-nav a,
.site-nav span {
    display: inline-block;
    margin: 0 22px;
    padding: 6px 10px;
    font-size: 16px;
    color: #333;
    border-radius: 20px;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a.active {
    background-color: #8b4513;
    color: #fff8ef;
}

.site-nav .disabled {
    color: #9b8b7c;
    background-color: #f3e8da;
}

.site-nav a:hover {
    background-color: #f1dcc5;
    color: #8b4513;
    text-decoration: underline;
}

.site-nav a.available {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  background-color: transparent;
}

.site-nav a.available:hover {
  background-color: #f4e7d8;
}

.site-nav a.active:hover {
    background-color: #8b4513;
}

.breadcrumb {
    font-size: 16px;
    margin-bottom: 30px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff8ef;
   margin: 0;
   padding: 5px 30px 30px 30px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

html {
    overflow-y: scroll;
}


h1 {
   font-size: 42px;
   margin-bottom: 20px;
}

h2 {
   color: #8b4513;
   border-bottom: 2px solid #d8c3a5;
   padding-bottom: 5px;
   margin-top: 30px;
}

.recipe-details {
  background-color: #f7eadc;
  border: 1px solid #d6b99b;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 20px 430px 20px 0;
}

.recipe-details p {
  margin: 8px 0;
}

ul {
   line-height: 1.5;
}
.recipe-print-button {
    display: inline-block;
    margin: 0.5rem 0 1.5rem 0;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 0.35rem;
    background-color: #8B4513;
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.recipe-print-button:hover {
    opacity: 0.85;
}

.recipe-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.recipe-info {
    flex: 1;
}

.recipe-photo {
    float: right;
    width: 400px;
    margin: 0 0 20px 30px;
}

.recipe-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.recipe-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
}

.recipe-detail-item {
    white-space: nowrap;
}

.recipe-detail-item:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: normal;
}

a {
    color: #8b4513;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.recipe-footer {
    margin-top: 50px;
    padding: 18px 20px;
    background-color: #f1e3d2;
    border-top: 1px solid #d8c3a5;
    text-align: center;
}

.recipe-footer p {
    margin: 4px 0;
    font-size: 0.85em;
    color: #666;
}

.home-title-small {
    text-align: center;
    margin-bottom: 10px;
}

.home-title {
    text-align: center;
    margin-bottom: 10px;
}

.home-intro {
    max-width: 700px;
    margin: 0 auto 25px auto;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
}

.home-stats {
    max-width: 500px;
    margin: 25px auto 35px auto;
    padding: 15px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 8px;
    text-align: center;
}

.home-stats p {
    margin: 6px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.category-card {
    display: block;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    background-color: #f1dcc5;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}


.category-card-disabled {
    opacity: 0.65;
    cursor: default;
}

.category-card-disabled:hover {
    background-color: #f7eadc;
    transform: none;
    box-shadow: none;
}

.coming-soon {
    margin: 6px 0 0 0;
    font-size: 0.9em;
    font-style: italic;
    color: #777;
}
.category-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 8px;
}

.category-card-text {
    color: #555;
    font-size: 0.95em;
}

.category-photo {
    margin: 10px 10px 15px 10px;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.search-box {
  position: relative;
  margin: 40px auto 35px auto;
  max-width: 660px;
  text-align: center;
}
#recipeSearch {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #d6a35d;
  border-radius: 8px;
  box-sizing: border-box;
}
#recipeSearch.search-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
#searchResults {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 2px solid #d6a35d;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  text-align: left;
  box-sizing: border-box;
}
.search-result {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #8b4513;
  background-color: #fff;
  border-top: 1px solid #f1dfc8;
}
.search-result:hover {
  background-color: #ffe8c7;
}
.no-results {
  padding: 10px 14px;
  color: #777;
  border-top: 1px solid #f1dfc8;
}
.search-result.selected {
  background-color: #ffe8c7;
}
.search-examples {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: #888;
  font-style: italic;
}
.recipe-search-card {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 35px auto;
    padding: 24px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
}

.recipe-search-card h2 {
    margin-top: 0;
}

.recipe-search-intro {
    max-width: 560px;
    margin: 14px auto 20px auto;
    font-size: 1.05rem;
    line-height: 1.5;
}

.recipe-search-card .search-box {
    width: 100%;
    max-width: 660px;
    margin: 20px auto 0 auto;
}

.recipe-search-card .search-examples {
    margin-top: 22px;
}

.main-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.main-card {
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
}

.section-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px auto;
}

.main-card p {
    min-height: 55px;
    line-height: 1.4;
}

.main-card-button {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    background-color: #8b4513;
    color: #fff8ef;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.main-card-button.disabled {
    background-color: #c9c3bc;
    color: #333;
}

.letter-nav {
  text-align: center;
  margin: 25px 0;
  line-height: 2;
}

.letter-nav a {
  display: inline-block;
  margin: 3px;
  padding: 6px 9px;
  border-radius: 6px;
  background-color: #f1dfc7;
  text-decoration: none;
  font-weight: bold;
}

.artist-list h2 {
  border-bottom: 2px solid #d6b48c;
  padding-bottom: 4px;
  margin-top: 30px;
}

.artist-list p {
  margin: 8px 0;
}

.music-list-item {
  padding: 14px 18px;
  margin: 12px 0;
  border: 1px solid #d6b48c;
  border-radius: 8px;
  background-color: #f7eadc;
}

.music-list-item h3 {
  margin: 0 0 6px 0;
}

.matrix-runout {
   white-space: pre-wrap;
   font-family: Consolas, monospace;
   margin-top: 8px;
}

.album-cover-wrap {
  text-align: center;
  margin: 20px 0;
}

.album-cover {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Albums Index */

.album-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.album-card {
    flex: 0 1 360px;
    text-align: center;
}

.album-cover {
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.album-card-info {
    margin-top: 16px;
}

.album-card-info h2 {
    margin: 0;
    font-size: 1.35rem;
    border-bottom: none;
}

.album-card-info h2 a {
    color: #98470e;
    text-decoration: none;
}

.album-card-info h2 a:hover {
    text-decoration: underline;
}

.album-year {
    margin: 8px 0 0 0;
    font-size: 1rem;
}

.album-page-heading {
    text-align: center;
}
.album-page-heading .page-intro {
    font-size: 1.25rem;
    line-height: 1.4;
}


/* Album Detail Page */

.album-hero {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

.album-hero-cover img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.album-hero-info h1 {
    margin-top: 0;
}

.album-meta {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.album-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.album-section {
    margin-top: 40px;
}

.album-artwork-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.album-artwork-item {
    margin: 0;
    text-align: center;
}

.album-artwork-item img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.album-artwork-item figcaption {
    margin-top: 10px;
}

.album-artwork-item figcaption span {
    display: block;
    margin-top: 4px;
}

.album-track-list {
    max-width: 900px;
    margin: 0 auto;
}

.album-side {
    margin-top: 28px;
}

.album-side:first-child {
    margin-top: 0;
}

.album-side h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #98470e;
}

.album-track {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 70px;
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #e0c6a7;
}

.album-track-number {
    font-weight: bold;
}

.album-track-title {
    min-width: 0;
}

.album-track-duration {
    text-align: right;
    font-variant-numeric: tabular-nums;
}


/* Novels Homepage */

.novel-page-heading {
    text-align: center;
}

.novel-page-heading .page-intro {
    font-size: 1.25rem;
    line-height: 1.4;
}

.novel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-top: 32px;
}

.novel-card {
    flex: 0 1 300px;
    max-width: 300px;
    text-align: center;
}

.novel-cover-link {
    display: block;
    text-decoration: none;
}

.novel-cover {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: contain;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.novel-cover-link:hover .novel-cover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.novel-card-info {
    margin-top: 16px;
}

.novel-card-info h2 {
    margin: 0;
    font-size: 1.35rem;
    border-bottom: none;
}

.novel-card-info h2 a {
    color: #98470e;
    text-decoration: none;
}

.novel-card-info h2 a:hover {
    text-decoration: underline;
}

.novel-subtitle {
    margin: 8px 0 0 0;
    font-style: italic;
    line-height: 1.4;
}

.novel-series {
    margin: 8px 0 0 0;
    font-weight: bold;
}

.novel-meta {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
}

.empty-message {
    text-align: center;
    margin-top: 32px;
}


/* Novel Detail Page */

.novel-breadcrumb {
    margin: 20px 0 28px 0;
}

.novel-breadcrumb a {
    color: #98470e;
    text-decoration: none;
}

.novel-breadcrumb a:hover {
    text-decoration: underline;
}

.novel-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-top: 20px;
}

.novel-hero-cover img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.novel-hero-info h1 {
    margin: 0;
    font-size: 2.2rem;
}

.novel-detail-subtitle {
    margin: 10px 0 0 0;
    font-size: 1.25rem;
    font-style: italic;
}

.novel-detail-series {
    margin: 18px 0 0 0;
    font-size: 1.05rem;
    font-weight: bold;
}

.novel-detail-meta {
    margin: 10px 0 0 0;
    font-size: 1rem;
}

.novel-description {
    margin-top: 26px;
    font-size: 1.1rem;
    line-height: 1.65;
}

.novel-download {
    margin-top: 28px;
}

.novel-download-button {
    display: inline-block;
    padding: 12px 22px;
    background: #98470e;
    color: #ffffff;
    border-radius: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.novel-download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.novel-section {
    margin-top: 48px;
}

.novel-artwork-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.novel-artwork-item {
    flex: 0 1 320px;
    max-width: 320px;
    margin: 0;
    text-align: center;
}

.novel-artwork-item img {
    display: block;
    width: 100%;
    max-width: 320px;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.novel-artwork-item figcaption {
    margin-top: 10px;
    font-weight: bold;
}

.novel-copy {
    max-width: 950px;
    line-height: 1.7;
}

.novel-spoiler-warning {
    display: inline-block;
    margin: 0 0 18px 0;
    padding: 8px 14px;
    background: #f3e4d2;
    border-left: 4px solid #98470e;
    font-weight: bold;
}

.novel-synopsis {
    max-width: 950px;
}


/* Photography Homepage */

.photography-home {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.photography-home .page-introduction {
    text-align: center;
    margin-bottom: 24px;
}

.photography-home .page-introduction h1 {
    margin-bottom: 10px;
}

.photography-home .page-introduction p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.5;
}

.collection-stats {
    margin: 28px auto 38px auto;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    overflow: hidden;
}

.stat-item {
    padding: 20px 18px;
    text-align: center;
    border-right: 1px solid #d6b99b;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    margin-bottom: 5px;
    color: #8b4513;
    font-size: 2rem;
    font-weight: bold;
}

.stat-date {
    display: block;
    margin-bottom: 7px;
    color: #8b4513;
    font-size: 1.25rem;
    font-weight: bold;
}

.stat-label {
    display: block;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.photography-home .button {
    display: inline-block;
    padding: 10px 18px;
    background-color: #8b4513;
    color: #fff8ef;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photography-home .button:hover {
    color: #fff8ef;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.photography-featured {
    margin-top: 42px;
}

.featured-photo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.featured-photo-card > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    background-color: #242424;
}

.featured-photo-card img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.featured-photo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
}

.featured-photo-content h3 {
    margin: 0 0 14px 0;
    color: #8b4513;
    font-size: 1.7rem;
}

.featured-photo-content p {
    margin: 0 0 24px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.photography-search,
.music-search {
    margin-top: 42px;
    padding: 24px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    text-align: center;
}

.photography-search h2,
.music-search h2 {
    margin-top: 0;
}

.photography-search > p,
.music-search > p {
    max-width: 760px;
    margin: 14px auto 0 auto;
    line-height: 1.5;
}

.photography-search-form,
.music-search-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 20px auto 0 auto;
}

.photography-search-form input[type="search"],
.music-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    background-color: #ffffff;
    border: 2px solid #d6a35d;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 1rem;
}

.photography-search-form input[type="search"]:focus,
.music-search-form input[type="search"]:focus {
    outline: 3px solid rgba(139, 69, 19, 0.18);
    outline-offset: 1px;
}

.photography-search-form button,
.music-search-form button {
    padding: 12px 22px;
    background-color: #8b4513;
    color: #fff8ef;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.photography-search-form button:hover,
.music-search-form button:hover {
    background-color: #a85d1a;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.photography-galleries {
    margin-top: 42px;
}

.photography-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.photography-gallery-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photography-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

.photography-gallery-card > a {
    display: block;
    overflow: hidden;
}

.photography-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.photography-gallery-card:hover img {
    transform: scale(1.03);
}

.gallery-card-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 20px;
    background-color: #ead7c1;
    color: #756454;
    text-align: center;
}

.gallery-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.gallery-card-content h3 {
    margin: 0 0 8px 0;
    color: #8b4513;
    font-size: 1.35rem;
}

.gallery-card-content p {
    line-height: 1.5;
}

.gallery-photo-count {
    margin: 0 0 8px 0;
    color: #6b5b4d;
    font-size: 0.9rem;
    font-weight: bold;
}

.gallery-card-content .button {
    margin-top: auto;
}

.photography-recent {
    margin-top: 42px;
}

.photography-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.photography-photo-card {
    min-width: 0;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photography-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

.photography-photo-card > a {
    display: block;
    overflow: hidden;
}

.photography-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.photography-photo-card:hover img {
    transform: scale(1.03);
}

.photo-card-content {
    padding: 18px;
}

.photo-card-content h3 {
    margin: 0 0 8px 0;
    color: #8b4513;
    font-size: 1.25rem;
}

.photo-card-content p {
    line-height: 1.5;
}

.photo-gallery-name {
    margin: 0 0 10px 0;
    color: #6b5b4d;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.photo-date-added {
    margin-bottom: 0;
    color: #666;
    font-size: 0.88rem;
}

.photography-random {
    margin-top: 42px;
}

.photography-random-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
}

.photography-random-card h2 {
    margin-top: 0;
}

.photography-random-card p {
    margin: 16px 0 22px 0;
    font-size: 1.05rem;
    line-height: 1.5;
}


/* Photography Detail Page */

.photography-photo-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-back-link {
    margin-top: 20px;
    margin-bottom: 28px;
}

.photo-detail-heading {
    text-align: center;
}

.photo-detail-heading h1 {
    margin-bottom: 8px;
}

.photo-detail-gallery {
    margin: 0 0 24px 0;
    font-size: 1.05rem;
    font-weight: bold;
}

.photo-detail-figure {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 36px auto;
    text-align: center;
}

.photo-detail-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 720px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #d7b58f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-detail-figure figcaption {
    max-width: 850px;
    margin: 14px auto 0 auto;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
}

.photo-detail-meta,
.photo-story-section {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.photo-meta-card {
    padding: 16px 20px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 8px;
}

.photo-meta-card p {
    margin: 8px 0;
}

.photo-story-copy {
    font-size: 1.05rem;
    line-height: 1.7;
}


/* Random Photo Page */

.photography-random-page {
    max-width: 1200px;
}

.random-photo-section {
    margin-top: 30px;
}

.random-photo-display {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.random-photo-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background-color: #242424;
}

.random-photo-display img {
    display: block;
    width: 100%;
    max-height: 700px;
    object-fit: contain;
}

.random-photo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
}

.random-photo-content h2 {
    margin: 0 0 16px 0;
    border-bottom: none;
    font-size: 1.7rem;
}

.random-photo-caption {
    margin: 0 0 24px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.random-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.random-photo-again {
    border: none;
    font: inherit;
    cursor: pointer;
}


/* Shared Search Pages */

.photography-search-page,
.music-search-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.search-page-search {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-results-section {
    margin-top: 38px;
}

.search-results-status {
    min-height: 24px;
    margin: 0 auto 20px auto;
    color: #6b5b4d;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.music-search-results {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.music-search-result {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.music-search-result:hover {
    background-color: #f1dcc5;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.music-search-result h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.music-search-result h3 a {
    color: #8b4513;
    text-decoration: none;
}

.music-search-result h3 a:hover {
    text-decoration: underline;
}

.music-search-result-artist {
    margin: 0 0 7px 0;
    color: #333333;
    font-size: 1rem;
    font-weight: bold;
}

.music-search-result-meta {
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.search-instructions {
    margin-top: 30px;
}

.search-results-grid {
    margin-top: 0;
}

.search-results-grid .empty-message {
    grid-column: 1 / -1;
}

.search-photo-card h3 a {
    color: #8b4513;
    text-decoration: none;
}

.search-photo-card h3 a:hover {
    text-decoration: underline;
}

.photo-card-meta {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

.search-no-results {
    padding: 24px;
    background-color: #f7eadc;
    border: 1px solid #d6b99b;
    border-radius: 8px;
}


/* Photography Search Suggestions */

.photography-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.photography-search-input-wrap input[type="search"] {
    width: 100%;
}

.photography-search-input-wrap input.search-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.photography-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 2px solid #d6a35d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    z-index: 1000;
    text-align: left;
}

.photography-search-suggestion {
    display: block;
    padding: 11px 14px;
    background-color: #ffffff;
    border-top: 1px solid #f1dfc8;
    color: #8b4513;
    text-decoration: none;
}

.photography-search-suggestion:first-child {
    border-top: none;
}

.photography-search-suggestion:hover {
    background-color: #ffe8c7;
    text-decoration: none;
}

.photography-suggestion-title {
    display: block;
    font-weight: bold;
}

.photography-suggestion-gallery {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 0.85rem;
}

.photography-search-no-suggestion {
    padding: 11px 14px;
    color: #777;
}

.photo-detail-image-link {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    cursor: zoom-in;
}

.photo-detail-image-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 650px;
    margin: 0 auto;
    object-fit: contain;
}

.image-lightbox-trigger {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
}

.image-lightbox-trigger img {
    display: block;
}

.image-lightbox-trigger:focus-visible {
    outline: 3px solid #8b4513;
    outline-offset: 4px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.92);
    box-sizing: border-box;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    overflow: auto;
}

.image-lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.image-lightbox.is-zoomed .image-lightbox-figure {
    flex: 0 0 auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 4rem 5.5rem 2rem 2rem;
    box-sizing: border-box;
}

.image-lightbox-image {
    width: auto;
    height: auto;
    max-width: min(94vw, 1400px);
    max-height: 86vh;
    object-fit: contain;
    cursor: zoom-in;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.image-lightbox.is-zoomed .image-lightbox-image {
    max-width: none;
    max-height: none;
    object-fit: initial;
    cursor: zoom-out;
}

.image-lightbox-caption {
    max-width: 900px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.image-lightbox-close,
.image-lightbox-zoom {
    position: fixed;
    right: 1rem;
    z-index: 10000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox-close {
    top: 1rem;
    font-size: 2rem;
}

.image-lightbox-zoom {
    top: 4.75rem;
    font-size: 1.35rem;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible,
.image-lightbox-zoom:hover,
.image-lightbox-zoom:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .image-lightbox {
        padding: 0.75rem;
    }

    .image-lightbox.is-zoomed {
        padding: 0;
    }

    .image-lightbox-image {
        max-width: 96vw;
        max-height: 82vh;
    }

    .image-lightbox.is-zoomed .image-lightbox-figure {
        padding: 4rem 4.5rem 1rem 1rem;
    }

    .image-lightbox-close,
    .image-lightbox-zoom {
        right: 0.5rem;
        width: 44px;
        height: 44px;
    }

    .image-lightbox-close {
        top: 0.5rem;
    }

    .image-lightbox-zoom {
        top: 4rem;
    }

}

.about-page > h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-section-reverse {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
}

.about-image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.about-content h2 {
    margin-top: 0;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-closing {
    font-size: 1.1rem;
}


@media (max-width: 900px) {

    .main-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-hero {
        grid-template-columns: 1fr;
    }

    .album-hero-info {
        text-align: center;
    }

    .album-artwork-grid {
        grid-template-columns: 1fr;
    }

    .novel-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .novel-hero-info {
        text-align: center;
    }

    .novel-description {
        text-align: left;
    }

    .featured-photo-card {
        grid-template-columns: 1fr;
    }

    .featured-photo-content {
        align-items: center;
        text-align: center;
    }

    .photography-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .random-photo-display {
        grid-template-columns: 1fr;
    }

    .random-photo-content {
        align-items: center;
        text-align: center;
    }

}

@media (max-width: 600px) {

    .main-card-grid {
        grid-template-columns: 1fr;
    }

    .album-track {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
        font-size: 0.95rem;
    }

    .novel-card {
        flex-basis: 100%;
        max-width: 320px;
    }

    .novel-cover {
        height: auto;
        max-height: 480px;
    }

    .novel-hero-cover img {
        max-width: 300px;
    }

    .novel-hero-info h1 {
        font-size: 1.8rem;
    }

    .novel-artwork-item {
        flex-basis: 100%;
        max-width: 300px;
    }

    .recipe-photo {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 0 1.5rem 0;
    }

    .recipe-photo {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .recipe-details {
        clear: both;
        width: auto;
        margin: 20px 0;
    }

    .photography-home .page-introduction p {
        font-size: 1.05rem;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #d6b99b;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .featured-photo-card > a {
        min-height: 0;
    }

    .featured-photo-card img {
        max-height: 480px;
    }

    .featured-photo-content {
        padding: 24px 20px;
    }

    .photography-search,
    .music-search {
        padding: 20px 16px;
    }

    .photography-search-form,
    .music-search-form {
        flex-direction: column;
    }

    .photography-search-form button,
    .music-search-form button {
        width: 100%;
    }

    .photography-gallery-grid {
        grid-template-columns: 1fr;
    }

    .photography-photo-grid {
        grid-template-columns: 1fr;
    }

    .photography-random-card {
        padding: 24px 18px;
    }

    .random-photo-image-link {
        min-height: 0;
    }

    .random-photo-content {
        padding: 24px 18px;
    }

    .random-photo-actions {
        width: 100%;
        flex-direction: column;
    }

    .random-photo-actions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .recipe-detail-row {
        column-gap: 0.75rem;
    }

    .recipe-detail-item:not(:last-child)::after {
        content: "";
        margin: 0;
    }

    .photography-search-input-wrap {
        width: 100%;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, 140px);
        justify-content: center;
        gap: 0;
    }

    .site-nav a,
    .site-nav span {
        width: 130px;
        margin: 0;
        box-sizing: border-box;
        justify-self: center;
        text-align: center;
    }

    .music-search-result {
        padding: 14px;
    }

    .music-search-result h3 {
        font-size: 1.1rem;
    }

    .music-search-result-meta {
        font-size: 0.9rem;
    }

    .about-page > h1 {
        margin-bottom: 1.5rem;
    }

    .about-section,
    .about-section-reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .about-section-reverse .about-image {
        order: 1;
    }

    .about-section-reverse .about-content {
        order: 2;
    }

    .about-image img {
        max-width: 100%;
    }

}


.tvf-home,
.tvf-tv-page,
.tvf-production-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

.tvf-hero {
    margin-bottom: 34px;
    text-align: center;
}
.tvf-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #8b4513;
}
.tvf-hero > p:not(.tvf-back-link) {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.tvf-statistics {
    margin-bottom: 44px;
}
.tvf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.tvf-stat-card {
    display: flex;
    min-height: 128px;
    padding: 22px 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fffaf3;
    border: 1px solid #d8b58e;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tvf-stat-value {
    display: block;
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 700;
    color: #8b4513;
}
.tvf-stat-date {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b4513;
}
.tvf-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tvf-section-header {
    margin-bottom: 24px;
    text-align: center;
}
.tvf-section-header h2,
.tvf-television-content h2,
.tvf-video-section h2,
.tvf-synopsis-section h2,
.tvf-production-description h2 {
    color: #8b4513;
}

.tvf-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.tvf-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    background: #fffaf3;
    border: 1px solid #d8b58e;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tvf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
}
.tvf-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #2a2a2a;
}
.tvf-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tvf-card-content {
    display: flex;
    flex: 1;
    padding: 22px;
    box-sizing: border-box;
    flex-direction: column;
}
.tvf-card-content h2,
.tvf-card-content h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}
.tvf-card-content h2 a,
.tvf-card-content h3 a {
    color: #8b4513;
    text-decoration: none;
}
.tvf-card-content h2 a:hover,
.tvf-card-content h3 a:hover {
    text-decoration: underline;
}
.tvf-card-meta {
    margin: 0 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6d4b35;
}
.tvf-card-description {
    margin: 0 0 20px;
    line-height: 1.65;
}
.tvf-card-button,
.tvf-browse-button {
    display: inline-block;
    margin-top: auto;
    padding: 11px 18px;
    align-self: flex-start;
    color: #ffffff;
    background: #8b4513;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.tvf-card-button:hover,
.tvf-browse-button:hover {
    background: #6f360e;
}

.tvf-television-link {
    margin-top: 44px;
}
.tvf-television-content {
    padding: 34px;
    text-align: center;
    background: #f3e3cf;
    border: 1px solid #d8b58e;
    border-radius: 14px;
}
.tvf-television-content h2 {
    margin-top: 0;
}
.tvf-browse-button {
    margin-top: 12px;
    align-self: auto;
}

.tvf-back-link {
    margin: 0 0 24px;
    text-align: left;
}
.tvf-back-link a {
    color: #8b4513;
    font-weight: 700;
    text-decoration: none;
}
.tvf-back-link a:hover {
    text-decoration: underline;
}

.tvf-production-header {
    margin-bottom: 28px;
    text-align: center;
}
.tvf-production-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8b4513;
}
.tvf-production-subtitle {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-style: italic;
}
.tvf-production-tagline {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.tvf-production-meta {
    margin: 12px 0 0;
    font-weight: 600;
    color: #6d4b35;
}
.tvf-production-overview {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 36px;
    margin-bottom: 42px;
    align-items: start;
}
.tvf-production-artwork {
    overflow: hidden;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}
.tvf-production-artwork img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}
.tvf-production-description,
.tvf-synopsis-section,
.tvf-video-section {
    padding: 28px;
    background: #fffaf3;
    border: 1px solid #d8b58e;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.tvf-production-description h2,
.tvf-synopsis-section h2,
.tvf-video-section h2 {
    margin-top: 0;
}
.tvf-production-description p,
.tvf-synopsis-section p {
    line-height: 1.75;
}

.tvf-video-section {
    margin-bottom: 34px;
}
.tvf-video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    background: #222222;
    border-radius: 10px;
}
.tvf-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tvf-youtube-link {
    margin: 16px 0 0;
    text-align: center;
}
.tvf-youtube-link a {
    color: #8b4513;
    font-weight: 700;
}
.tvf-synopsis-section {
    margin-bottom: 34px;
}
.tvf-empty-message {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
}
.tvf-tv-page .tvf-card-grid {
    grid-template-columns: 1fr;
    max-width: 1050px;
    margin: 0 auto;
}
.tvf-tv-page .tvf-card {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: 260px;
}
.tvf-tv-page .tvf-card-image-link {
    display: flex;
    padding: 12px;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}
.tvf-tv-page .tvf-card-image {
    width: 100%;
    height: 236px;
    object-fit: contain;
}
.tvf-tv-page .tvf-card-content {
    padding: 28px 30px;
}
.tvf-tv-page .tvf-card-content h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .tvf-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tvf-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tvf-production-overview {
        grid-template-columns: 1fr;
    }
    .tvf-production-artwork {
        width: min(100%, 520px);
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .tvf-home,
    .tvf-tv-page,
    .tvf-production-page {
        width: min(100% - 24px, 1200px);
        padding-top: 24px;
    }
    .tvf-stats-grid,
    .tvf-card-grid {
        grid-template-columns: 1fr;
    }
    .tvf-tv-page .tvf-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tvf-tv-page .tvf-card-image-link {
        padding: 0;
        aspect-ratio: 16 / 9;
    }

    .tvf-tv-page .tvf-card-image {
        height: 100%;
    }

    .tvf-tv-page .tvf-card-content {
        padding: 22px;
    }

    .tvf-production-description,
    .tvf-video-section,
    .tvf-synopsis-section,
    .tvf-television-content {
        padding: 22px;
    }

}

@media print {

    header,
    nav,
    footer,
    .breadcrumb,
    .recipe-print-button {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .recipe-photo {
        float: none;
        margin: 0 0 1rem 0;
    }

    .recipe-photo img {
        max-width: 250px;
        height: auto;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    img,
    ul,
    ol {
        page-break-inside: avoid;
    }

}

