
/* Podstawowy wygląd strony kyōyū */

body {
    background-color: #f0eee7;
    color: #292923;
    font-family: Georgia, serif;
    max-width: 760px;
    margin: 80px auto;
    padding: 0 24px;
}

/* Główny tytuł */

body {
    background-color: #f0eee7;
    color: #292923;
    font-family: Georgia, serif;
    max-width: 680px;
    margin: 100px auto;
    padding: 0 28px;
}

h1 {
    font-size: 42px;
    font-weight: normal;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

h2 {
    font-size: 16px;
    font-weight: normal;
    margin-top: 56px;
    border-bottom: 1px solid #d8d6ce;
    padding-bottom: 12px;
}

/* Teksty */

p {
    font-size: 16px;
    line-height: 1.7;
}

/* Listy z pozycjami katalogu */

ul {
    list-style: none;
    padding-left: 0;
}


li {
    margin-bottom: 0;
    padding: 18px 0;
    border-bottom: 1px solid #e3e1da;
}


li strong {
    font-size: 17px;
    font-weight: normal;
}

li p {
    font-size: 14px;
    color: #77756e;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Wyszukiwarka */

#search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    margin: 8px 0 28px;
    border: none;
    border-bottom: 1px solid #d8d6ce;
    background-color: transparent;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #292923;
    outline: none;
}

#search::placeholder {
    color: #99968d;
}

#search:focus {
    border-bottom-color: #292923;
}

/* Nawigacja */

nav {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

nav a {
    color: #77756e;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #292923;
}

/* Licznik pozycji */

.count {
    font-size: 12px;
    color: #99968d;
    margin: 0 0 12px;
}

/* Pierwsza pozycja bez dodatkowego odstępu od góry */

ul li:first-child {
    padding-top: 8px;
}

/* Film collection */

#film-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px 24px;
}

#film-list li {
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
}


#film-list li img {
    width: 100%;
    max-width: 160px !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin: 14px 0;
    background: #e9e5de;
}


#film-list li strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 1.3;
}

#film-list li p {
    margin: 8px 0;
}

#film-list li button {
    margin-top: 10px;
}

#film-search,
#search {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
}

@media (max-width: 520px) {
    #film-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }

    #film-list li strong {
        font-size: 16px;
    }
}

/* kyōyū — visual refinement */

:root {
    --paper: #f8f7f3;
    --ink: #292823;
    --muted: #858177;
    --line: #dedbd2;
    --accent: #a34e37;
}

body {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 28px 100px;
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.7;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 8vw, 64px);
    font-weight: normal;
    letter-spacing: -2px;
    line-height: 1.1;
}

#intro {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 15px;
}

nav {
    display: flex;
    gap: 24px;
    padding: 14px 0 34px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 42px;
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: var(--accent);
}

h2 {
    margin: 42px 0 18px;
    font-size: 27px;
    font-weight: normal;
    letter-spacing: -0.5px;
}

#read,
#watch {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

#add-form {
    display: grid;
    gap: 9px;
    margin: 20px 0 48px;
    padding: 24px;
    border: 1px solid var(--line);
    background: #fdfcf9;
}

#add-form label {
    margin-top: 7px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
}

#add-form input,
#add-form select,
#add-form textarea,
#search,
#film-search {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

#add-form textarea {
    min-height: 90px;
    resize: vertical;
}

#add-form input:focus,
#add-form select:focus,
#add-form textarea:focus,
#search:focus,
#film-search:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

button {
    justify-self: start;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.count {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

#read-list {
    padding-left: 20px;
}

#read-list li {
    padding: 8px 0 14px;
}

#read-list li strong,
#film-list li strong {
    font-weight: normal;
}

#read-list li p,
#film-list li p {
    color: var(--muted);
    font-size: 13px;
}

#film-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
}

#film-list li {
    min-width: 0;
    font-size: 14px;
}

#film-list li img {
    display: block;
    width: 100%;
    max-width: 160px !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin: 14px 0;
    background: #e9e5de;
}

#film-list li strong {
    display: block;
    font-size: 19px;
    line-height: 1.35;
}

#search,
#film-search {
    margin-bottom: 18px;
}

@media (max-width: 520px) {
    body {
        padding: 36px 18px 64px;
    }

    #add-form {
        padding: 17px;
    }

    #film-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }

    #film-list li strong {
        font-size: 16px;
    }
}

#add-section {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

#add-section summary {
    cursor: pointer;
    list-style: none;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

#add-section summary::-webkit-details-marker {
    display: none;
}

#add-section summary:hover {
    color: var(--accent);
}

#add-section[open] summary {
    margin-bottom: 20px;
}

/* Recommendation credits */

#read-list li p:last-of-type,
#film-list li p:last-of-type {
    color: var(--muted);
}

#read-list li p,
#film-list li p {
    margin: 6px 0;
}

#read-list li p:last-of-type,
#film-list li p:last-of-type {
    font-size: 12px;
}

#read-list li strong,
#film-list li strong {
    color: var(--ink);
}


