:root {
--burgundy: #711d3c;
--burgundy-dark: #431022;
--burgundy-deep: #2b0b18;
--burgundy-soft: #f3e5e9;

--ivory: #f7f0e5;
--paper: #fffdf9;
--paper-soft: #f1e8dc;

--charcoal: #292525;
--muted: #766d67;
--muted-light: #a49a92;

--gold: #b18a52;
--gold-light: #d2b47c;

--border: #ddd2c4;
--border-light: #eee6db;

--white: #ffffff;
--sidebar-bg: #292525;
--sidebar-text: #ffffff;
--sidebar-text-soft: #c5bdb8;
--sidebar-text-muted: #8f8782;
--sidebar-border: rgba(255, 255, 255, 0.10);
--sidebar-hover-bg: rgba(255, 255, 255, 0.06);
--sidebar-active-bg: #6f1d3a;
--sidebar-active-border: #b18a52;

}

/* =========================================================
RESET
========================================================= */

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

html {
scroll-behavior: smooth;
}

body {
width: 100%;
min-height: 100vh;

background: var(--ivory);
color: var(--charcoal);

font-family: "Inter", Arial, sans-serif;

overflow-x: hidden;

}

button,
a {
font-family: inherit;
}

button {
cursor: pointer;
}

/* =========================================================
MAIN LAYOUT
========================================================= */

.reading-layout {
width: 100%;
min-height: 100vh;

display: flex;
align-items: stretch;

}

/* =========================================================
SIDEBAR
========================================================= */

.sidebar {
width: 255px;
min-width: 255px;
max-height: 100vh;

position: sticky;
top: 0;

padding: 30px 20px;

display: flex;
flex-direction: column;
overflow: hidden;

background: var(--sidebar-bg);

color: var(--sidebar-text);

}

/* BRAND */

.brand-area {
width: 100%;

padding: 3px 8px 32px;

display: flex;
align-items: center;

gap: 12px;

}

.brand-mark {
width: 43px;
height: 43px;
min-width: 43px;

display: flex;
align-items: center;
justify-content: center;

border: 1px solid rgba(210, 180, 124, 0.45);
border-radius: 7px;

color: var(--gold-light);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 18px;
font-weight: 700;

letter-spacing: 1px;

}

.brand-text {
min-width: 0;
}

.brand-text h1 {
color: var(--white);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 21px;
font-weight: 600;

line-height: 1.1;


}

.brand-text span {
display: block;

margin-top: 4px;

color: rgba(255, 255, 255, 0.48);

font-size: 9px;
letter-spacing: 1.3px;

text-transform: uppercase;


}

/* NAVIGATION */

.sidebar-nav {
width: 100%;

display: flex;
flex-direction: column;

gap: 5px;

}

.nav-item {
width: 100%;
min-height: 46px;

padding: 0 13px;

display: flex;
align-items: center;

gap: 11px;

border-radius: 7px;

color: var(--sidebar-text-soft);

text-decoration: none;

font-size: 12px;
font-weight: 500;

transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-item:hover {
background: var(--sidebar-hover-bg);

color: var(--sidebar-text);

}

.nav-item.active {
background: var(--sidebar-active-bg);

color: var(--sidebar-text);

}

.nav-icon {
width: 22px;
min-width: 22px;

display: flex;
align-items: center;
justify-content: center;

font-size: 16px;
color: currentColor;

}

/* SIDEBAR BOTTOM */

.sidebar-bottom {
width: 100%;
margin-top: auto;
padding-top: 20px;

border-top: 1px solid rgba(255, 255, 255, 0.1);

}

.sidebar-user {
width: 100%;
margin-bottom: 14px;

display: flex;
align-items: center;

gap: 10px;

}

.user-avatar {
width: 39px;
height: 39px;
min-width: 39px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 50%;

background: var(--gold);

color: var(--burgundy-deep);

font-size: 12px;
font-weight: 700;

}

.sidebar-user-info {
min-width: 0;
flex: 1;
}

.sidebar-user-info strong {
display: block;
color: var(--white);

font-size: 12px;
font-weight: 600;

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

}

.sidebar-user-info span {
display: block;

margin-top: 3px;

color: rgba(255, 255, 255, 0.42);

font-size: 9px;

letter-spacing: 1px;

text-transform: uppercase;


}

.logout-button {
width: 100%;
min-height: 41px;


display: flex;
align-items: center;
justify-content: center;

gap: 7px;

border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;

background: transparent;

color: rgba(255, 255, 255, 0.62);

font-size: 11px;

transition:
    background 0.2s ease,
    color 0.2s ease;


}

.logout-button:hover {
background: rgba(255, 255, 255, 0.08);


color: var(--white);


}

/* =========================================================
MAIN CONTENT
========================================================= */

.main-content {
flex: 1;
min-width: 0;
max-height: 100vh;
overflow-y: auto;

padding: 52px 55px 65px;

background: var(--ivory);


}

/* =========================================================
MOBILE HEADER
========================================================= */

.mobile-header {
display: none;
}

/* =========================================================
PAGE INTRO
========================================================= */

.page-intro {
width: 100%;
max-width: 850px;


margin-bottom: 48px;


}

.eyebrow {
display: block;


margin-bottom: 9px;

color: var(--gold);

font-size: 10px;
font-weight: 700;

letter-spacing: 2px;

text-transform: uppercase;


}

.page-intro h2 {
color: var(--burgundy-dark);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 52px;
font-weight: 600;

line-height: 0.95;


}

.page-intro p {
max-width: 650px;


margin-top: 15px;

color: var(--muted);

font-size: 13px;
line-height: 1.8;


}

/* =========================================================
SECTION HEADERS
========================================================= */

.reading-section {
width: 100%;


margin-bottom: 48px;


}

.section-header {
width: 100%;


margin-bottom: 18px;

display: flex;
align-items: flex-end;
justify-content: space-between;

gap: 20px;


}

.section-header > div {
min-width: 0;
}

.section-kicker {
display: block;


margin-bottom: 5px;

color: var(--gold);

font-size: 9px;
font-weight: 700;

letter-spacing: 1.6px;

text-transform: uppercase;


}

.section-header h3 {
color: var(--burgundy-dark);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 29px;
font-weight: 600;

line-height: 1.05;


}

/* =========================================================
CONTINUE READING
========================================================= */

.continue-container {
width: 100%;
}

.continue-card {
width: 100%;
min-height: 176px;


padding: 20px 23px;

display: grid;

grid-template-columns:
    108px
    minmax(0, 1fr)
    auto;

align-items: center;

gap: 23px;

border-radius: 10px;

background:
    linear-gradient(
        135deg,
        var(--burgundy-dark),
        var(--burgundy)
    );

color: var(--white);


}

.continue-cover {
width: 108px;
height: 136px;


overflow: hidden;

border-radius: 6px;

background: rgba(255, 255, 255, 0.08);


}

.continue-cover img {
width: 100%;
height: 100%;


display: block;

object-fit: cover;


}

.continue-cover .reading-cover-placeholder {
width: 100%;
height: 100%;
}

.continue-info {
min-width: 0;
}

.continue-label {
margin-bottom: 7px;


color: var(--gold-light);

font-size: 9px;
font-weight: 700;

letter-spacing: 1.5px;

text-transform: uppercase;


}

.continue-title {
color: var(--white);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 31px;
font-weight: 600;

line-height: 1.1;

word-break: break-word;


}

.continue-chapter {
margin-top: 8px;


color: rgba(255, 255, 255, 0.62);

font-size: 11px;
line-height: 1.5;


}

.continue-button {
min-width: 115px;
min-height: 42px;


padding: 0 18px;

border: 1px solid var(--gold-light);
border-radius: 6px;

background: transparent;

color: var(--gold-light);

font-size: 11px;
font-weight: 600;

transition:
    background 0.2s ease,
    color 0.2s ease;


}

.continue-button:hover {
background: var(--gold-light);


color: var(--burgundy-deep);


}

/* =========================================================
HISTORY AND SAVED GRIDS
========================================================= */

.history-grid,
.saved-grid {
width: 100%;


display: grid;

grid-template-columns:
    repeat(4, minmax(0, 1fr));

gap: 20px;

align-items: stretch;


}

/* =========================================================
READING CARD
========================================================= */

.reading-card {
width: 100%;
min-width: 0;


overflow: hidden;

display: flex;
flex-direction: column;

border: 1px solid var(--border);
border-radius: 9px;

background: var(--paper);

transition:
    transform 0.2s ease,
    border-color 0.2s ease;


}

.reading-card:hover {
border-color: var(--gold-light);


transform: translateY(-3px);


}

.reading-cover {
width: 100%;
height: 270px;


flex-shrink: 0;

overflow: hidden;

background: var(--paper-soft);


}

.reading-cover img {
width: 100%;
height: 100%;


display: block;

object-fit: cover;


}

.reading-cover-placeholder {
width: 100%;
height: 100%;


display: flex;
align-items: center;
justify-content: center;

background:
    linear-gradient(
        135deg,
        var(--paper-soft),
        var(--ivory)
    );

color: var(--gold);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 34px;
font-weight: 600;


}

.reading-content {
width: 100%;
min-width: 0;


min-height: 185px;

padding: 16px;

display: flex;
flex-direction: column;


}

.reading-title {
color: var(--burgundy-dark);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 21px;
font-weight: 600;

line-height: 1.15;

word-break: break-word;


}

.reading-author {
margin-top: 6px;


color: var(--muted);

font-size: 10px;
line-height: 1.4;

word-break: break-word;


}

.reading-meta {
margin-top: 13px;
padding-top: 11px;


border-top: 1px solid var(--border-light);

color: var(--muted);

font-size: 10px;
line-height: 1.5;

word-break: break-word;


}

.reading-action {
width: 100%;
min-height: 39px;


margin-top: auto;

padding: 0 12px;

border: 1px solid var(--burgundy);
border-radius: 6px;

background: transparent;

color: var(--burgundy);

font-size: 10px;
font-weight: 600;

transition:
    background 0.2s ease,
    color 0.2s ease;


}

.reading-action:hover {
background: var(--burgundy);


color: var(--white);


}

/* =========================================================
EMPTY STATE
========================================================= */

.empty-state {
width: 100%;


padding: 46px 25px;

border: 1px solid var(--border);
border-radius: 10px;

background: var(--paper);

text-align: center;


}

.empty-mark {
width: 52px;
height: 52px;


margin: 0 auto 16px;

display: flex;
align-items: center;
justify-content: center;

border: 1px solid var(--gold-light);
border-radius: 50%;

color: var(--gold);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 18px;
font-weight: 600;


}

.empty-state h4 {
color: var(--burgundy-dark);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 24px;
font-weight: 600;

line-height: 1.15;


}

.empty-state p {
max-width: 500px;


margin: 9px auto 21px;

color: var(--muted);

font-size: 11px;
line-height: 1.8;


}

.primary-button {
min-height: 42px;


padding: 0 20px;

display: inline-flex;
align-items: center;
justify-content: center;

border: none;
border-radius: 6px;

background: var(--burgundy);

color: var(--white);

font-size: 11px;
font-weight: 600;

text-decoration: none;

transition:
    background 0.2s ease,
    transform 0.2s ease;


}

.primary-button:hover {
background: var(--burgundy-dark);


transform: translateY(-1px);


}

/* =========================================================
CLEAR BUTTON
========================================================= */

.clear-button {
min-height: 36px;


padding: 0 14px;

border: 1px solid var(--border);
border-radius: 6px;

background: var(--paper);

color: var(--muted);

font-size: 10px;

white-space: nowrap;

transition:
    border-color 0.2s ease,
    color 0.2s ease;


}

.clear-button:hover {
border-color: var(--burgundy);


color: var(--burgundy);


}

/* =========================================================
READING NOTE
========================================================= */

.reading-note {
width: 100%;


margin-top: 8px;

padding: 24px;

display: flex;
align-items: center;

gap: 18px;

border: 1px solid var(--border);
border-radius: 9px;

background:
    linear-gradient(
        135deg,
        var(--paper),
        var(--paper-soft)
    );


}

.note-mark {
width: 48px;
height: 48px;
min-width: 48px;


display: flex;
align-items: center;
justify-content: center;

border: 1px solid var(--gold-light);
border-radius: 50%;

color: var(--gold);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 17px;
font-weight: 600;


}

.reading-note h3 {
margin-top: 3px;


color: var(--burgundy-dark);

font-family: "Cormorant Garamond", Georgia, serif;

font-size: 25px;
font-weight: 600;


}

.reading-note p {
max-width: 650px;


margin-top: 6px;

color: var(--muted);

font-size: 11px;
line-height: 1.7;


}

/* =========================================================
FOOTER
========================================================= */

.page-footer {
width: 100%;


margin-top: 65px;
padding-top: 22px;

border-top: 1px solid var(--border);

display: flex;
align-items: center;
justify-content: space-between;

gap: 20px;


}

.footer-brand {
min-width: 0;


display: flex;
flex-direction: column;

gap: 3px;


}

.footer-brand strong {
color: var(--burgundy-dark);


font-family: "Cormorant Garamond", Georgia, serif;

font-size: 18px;
font-weight: 600;


}

.footer-brand span,
.footer-copy {
color: var(--muted-light);


font-size: 9px;


}

.footer-copy {
white-space: nowrap;
}

/* =========================================================
1200px
========================================================= */

@media (max-width: 1200px) {


.sidebar {
    width: 230px;
    min-width: 230px;
}

.main-content {
    padding: 45px 38px 55px;
}

.history-grid,
.saved-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.reading-cover {
    height: 245px;
}


}

/* =========================================================
950px
========================================================= */

@media (max-width: 950px) {


.sidebar {
    width: 215px;
    min-width: 215px;

    padding: 25px 15px;
}

.main-content {
    padding: 40px 25px 50px;
}

.page-intro h2 {
    font-size: 46px;
}

.history-grid,
.saved-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.continue-card {
    grid-template-columns:
        92px
        minmax(0, 1fr);
}

.continue-cover {
    width: 92px;
    height: 122px;
}

.continue-button {
    grid-column: 1 / -1;

    width: 100%;
}


}

/* =========================================================
700px MOBILE
========================================================= */

@media (max-width: 700px) {


.reading-layout {
    display: block;
}

.sidebar {
    display: none;
}

.main-content {
    width: 100%;

    padding: 0 18px 40px;
}

.mobile-header {
    width: calc(100% + 36px);
    min-height: 68px;

    margin-left: -18px;
    margin-bottom: 35px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--burgundy-deep);
}

.mobile-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--white);
}

.mobile-brand-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(210, 180, 124, 0.4);
    border-radius: 6px;

    color: var(--gold-light);

    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 16px;
    font-weight: 700;
}

.mobile-brand strong {
    display: block;

    color: var(--white);

    font-family: "Cormorant Garamond", Georgia, serif;

    font-size: 19px;
    font-weight: 600;

    line-height: 1;
}

.mobile-brand span {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 8px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.mobile-logout {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;

    background: transparent;

    color: rgba(255, 255, 255, 0.75);

    font-size: 15px;
}

.page-intro {
    margin-bottom: 38px;
}

.page-intro h2 {
    font-size: 42px;
}

.page-intro p {
    font-size: 12px;
}

.reading-section {
    margin-bottom: 40px;
}

.section-header {
    align-items: flex-start;
}

.section-header h3 {
    font-size: 27px;
}

.section-kicker {
    font-size: 8px;
}

.continue-card {
    grid-template-columns:
        78px
        minmax(0, 1fr);

    gap: 15px;

    padding: 16px;
}

.continue-cover {
    width: 78px;
    height: 108px;
}

.continue-title {
    font-size: 25px;
}

.continue-chapter {
    font-size: 10px;
}

.continue-button {
    min-height: 41px;
}

.history-grid,
.saved-grid {
    grid-template-columns: 1fr;

    gap: 16px;
}

.reading-card {
    display: grid;

    grid-template-columns:
        105px
        minmax(0, 1fr);
}

.reading-cover {
    width: 105px;
    height: 155px;
}

.reading-content {
    min-height: 155px;

    padding: 14px;
}

.reading-title {
    font-size: 20px;
}

.reading-author,
.reading-meta {
    font-size: 9px;
}

.reading-action {
    min-height: 37px;
}

.empty-state {
    padding: 42px 18px;
}

.reading-note {
    padding: 20px;

    align-items: flex-start;
}

.note-mark {
    width: 43px;
    height: 43px;
    min-width: 43px;
}

.reading-note h3 {
    font-size: 22px;
}

.reading-note p {
    font-size: 10px;
}

.page-footer {
    display: block;

    text-align: center;
}

.footer-copy {
    display: block;

    margin-top: 7px;
}


}

/* =========================================================
450px SMALL MOBILE
========================================================= */

@media (max-width: 450px) {


.main-content {
    padding-left: 14px;
    padding-right: 14px;
}

.mobile-header {
    width: calc(100% + 28px);

    margin-left: -14px;

    padding-left: 14px;
    padding-right: 14px;
}

.page-intro h2 {
    font-size: 37px;
}

.page-intro p {
    font-size: 11px;
}

.section-header {
    display: block;
}

.clear-button {
    margin-top: 11px;
}

.continue-card {
    grid-template-columns:
        65px
        minmax(0, 1fr);

    gap: 13px;

    padding: 14px;
}

.continue-cover {
    width: 65px;
    height: 92px;
}

.continue-title {
    font-size: 22px;
}

.reading-card {
    grid-template-columns:
        90px
        minmax(0, 1fr);
}

.reading-cover {
    width: 90px;
    height: 140px;
}

.reading-content {
    min-height: 140px;

    padding: 12px;
}

.reading-title {
    font-size: 18px;
}

.reading-action {
    min-height: 35px;

    font-size: 9px;
}

.reading-note {
    display: block;
}

.note-mark {
    margin-bottom: 13px;
}

}
