/* The navigation rail follows the ink, paper and brass tones of the journal. */
@media (min-width: 901px) {
    :root { --rail: clamp(178px, 15vw, 228px); }
    .rail {
        isolation: isolate; gap: 0; padding: clamp(20px, 4vh, 44px) 15px 19px;
        background: linear-gradient(155deg, #334c3f, #233b30 58%, #1e332a);
        color: #faf0d5; border: 0; border-right: 3px double #a69a70;
    }
    .rail::before {
        content: ''; position: absolute; inset: auto 0 70px; height: min(29vh, 218px); z-index: -1;
        background: url('../images/journey/kumes.webp') center 72% / cover;
        mix-blend-mode: luminosity; opacity: .26; pointer-events: none;
        mask-image: linear-gradient(transparent, #000 37%, #000 72%, transparent);
    }
    .brand { flex: none; padding: 5px; border: 1px solid #cab18699; border-radius: 50%; }
    .brand img { width: clamp(90px, 7.8vw, 113px); height: auto; box-shadow: 0 5px 15px #15281d66; }
    .main-nav { position: relative; margin-top: clamp(20px, 4.5vh, 45px); padding-top: 16px; gap: 5px; }
    .main-nav::before { content: ''; position: absolute; inset: 0 10% auto; height: 1px; background: linear-gradient(90deg, transparent, #c2b080, transparent); }
    .nav-link {
        flex-direction: row; justify-content: start; gap: 12px; min-height: 48px; padding: 9px 13px;
        font-size: .88rem; font-weight: 500; color: #f0ebd9; border-radius: 6px;
    }
    .nav-link svg { width: 19px; height: 19px; color: #d2c398; }
    .nav-link:hover { background: #ffffff10; color: white; }
    .nav-link.is-active { background: #f3e7c9; color: #243c30; box-shadow: 0 2px 6px #10251a26; font-weight: 700; }
    .nav-link.is-active svg { color: #775c30; }
    .nav-link.is-active::after { width: 6px; height: 6px; border-top: 1.5px solid #806739; border-right: 1.5px solid #806739; transform: rotate(45deg); border-radius: 0; background: none; }
    .rail-bottom { padding: 25px 2px 0; text-align: center; }
    .rail-bottom a { justify-content: space-between; color: #f4e8cc; border: 1px solid #c1b08488; border-radius: 24px; padding: 9px 14px; font-size: .64rem; letter-spacing: .12em; }
    .rail-bottom a:hover { color: white; background: #ffffff10; }
    .rail-bottom small { display: block; margin-top: 13px; font-size: .65rem; color: #cec8ae; }
    .rail :focus-visible { outline-color: #edc67c; }
}
@media (min-width: 901px) and (max-height: 630px) {
    .rail { padding-block: 12px; }
    .brand img { width: 72px; }
    .main-nav { margin-top: 12px; gap: 2px; padding-top: 8px; }
    .nav-link { min-height: 39px; }
    .rail-bottom { padding-top: 12px; }
}
@media (max-width: 900px) {
    .rail { background: #283f33; border-bottom: 2px solid #beaa7b; color: #f8efd9; box-shadow: 0 3px 10px #172e1e20; }
    .rail .brand img { outline: 1px solid #d8bf87; outline-offset: 2px; }
    .mobile-brand { margin-left: 4px; }
    .menu-toggle { display: flex; justify-content: center; align-items: center; gap: 7px; width: auto; padding-inline: 13px; border-radius: 25px; border-color: #acaa8b; color: #fcf4dc; font-size: .8rem; }
    .menu-toggle svg { width: 17px; }
    .main-nav:not(.is-enhanced) { background: var(--white); }
}
/* The journal seal links to the illustrated kitchen chapter. */
.brand-seal, .brand-signature, .founder-line { display: block; }
.brand-signature { text-align: center; }
.founder-line { font-size: .71rem; line-height: 1.45; color: #ece1c8; }
.founder-line em { font-family: var(--display); font-weight: 600; color: #f5cd87; }
.main-nav .nav-link .journal-icon { width: 28px; height: 28px; }
.journal-icon .icon-wash { fill: var(--icon-accent, #dcb975); fill-opacity: .37; stroke: none; }
.journal-icon .icon-detail { stroke: var(--icon-accent, #dfbf85); }
[data-nav="kurumsal"] { --icon-accent: #a6bf94; }
[data-nav="urunler"] { --icon-accent: #eaba77; }
[data-nav="iletisim"] { --icon-accent: #e6a88a; }
.nav-link.is-active { --icon-accent: #9b653f; }
.journal-pass {
    position: relative; display: flex; align-items: center; gap: 8px; min-height: 61px;
    border-block: 1px solid #bca47c77; padding: 6px 5px; margin-block: 4px;
    color: #fcf0d5; background: linear-gradient(95deg, #c6a16424, transparent); text-decoration: none;
}
.journal-stamp {
    position: relative; flex: none; width: 48px; aspect-ratio: 1; display: grid; place-items: center;
    background: #a95132; clip-path: polygon(50% 0%, 55.7% 6.4%, 62.9% 1.7%, 66.8% 9.3%, 75% 6.7%, 76.8% 15.1%, 85.4% 14.6%, 84.9% 23.2%, 93.3% 25%, 90.7% 33.2%, 98.3% 37.1%, 93.6% 44.3%, 100% 50%, 93.6% 55.7%, 98.3% 62.9%, 90.7% 66.8%, 93.3% 75%, 84.9% 76.8%, 85.4% 85.4%, 76.8% 84.9%, 75% 93.3%, 66.8% 90.7%, 62.9% 98.3%, 55.7% 93.6%, 50% 100%, 44.3% 93.6%, 37.1% 98.3%, 33.2% 90.7%, 25% 93.3%, 23.2% 84.9%, 14.6% 85.4%, 15.1% 76.8%, 6.7% 75%, 9.3% 66.8%, 1.7% 62.9%, 6.4% 55.7%, 0% 50%, 6.4% 44.3%, 1.7% 37.1%, 9.3% 33.2%, 6.7% 25%, 15.1% 23.2%, 14.6% 14.6%, 23.2% 15.1%, 25% 6.7%, 33.2% 9.3%, 37.1% 1.7%, 44.3% 6.4%);
    transform: rotate(-7deg); transition: transform .28s ease;
}
.journal-stamp::before {
    content: ''; position: absolute; inset: 5px; border-radius: 50%;
    background: #f4d9a3; border: 1px dashed #964626; box-shadow: 0 0 0 1px #edc581;
}
.journal-stamp img { position: relative; width: 68%; height: auto; transform: rotate(7deg); }
.pass-caption strong { display: block; font: italic 600 clamp(.9rem, 1.15vw, 1.12rem)/1.18 var(--display); }
.pass-caption small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .67rem; color: #ddcfac; }
.pass-caption svg { width: 13px; height: 13px; }
.journal-pass:hover .journal-stamp, .journal-pass:focus-visible .journal-stamp { transform: rotate(4deg); }
@media (min-width: 901px) {
    .rail .brand { flex-direction: column; gap: 9px; border: 0; border-radius: 0; padding: 0; }
    .brand-seal { padding: 4px; border: 1px solid #cbb58b; border-radius: 50%; }
    .rail .main-nav { margin-top: clamp(12px, 2vh, 22px); padding-top: 12px; gap: 3px; }
    .main-nav .nav-link { padding: 6px 8px; gap: 9px; min-height: 44px; }
}
@media (max-width: 900px) {
    .brand-signature { text-align: left; }
    .brand-signature .mobile-brand { margin-left: 0; }
    .founder-line { font-size: .6rem; margin-top: 1px; }
    .main-nav .journal-pass { padding-inline: 10px; color: #493721; background-color: #f6ecd4; border-color: #c9b694; }
    .pass-caption small { color: #70583c; }
    .pass-caption strong { font-size: 1.02rem; }
    .main-nav .nav-link { --icon-accent: #9e723b; }
}
@media (min-width: 901px) and (max-height: 650px) {
    .rail .brand { gap: 4px; }
    .rail .main-nav { margin-top: 8px; padding-top: 6px; gap: 1px; }
    .main-nav .nav-link { min-height: 35px; padding-block: 3px; }
    .journal-pass { min-height: 49px; padding-block: 3px; }
    .journal-stamp { width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .journal-pass .journal-stamp { transition: none; }
    .journal-pass:hover .journal-stamp, .journal-pass:focus-visible .journal-stamp { transform: rotate(-7deg); }
}
.footer { background: linear-gradient(125deg, #25392f, #18281f); border-top: 3px double #af966b; }
.footer-colophon {
    margin-top: 23px; padding-top: 17px; border-top: 1px solid #d8be893b;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 20px;
    color: #d8d0bb; font-size: .76rem;
}
.footer-colophon p { display: flex; align-items: center; gap: 10px; }
.footer-colophon img { flex: none; object-fit: contain; }
.footer-colophon strong { color: #f2d296; font: italic 600 1.06rem/1.4 var(--display); white-space: nowrap; }
.journey {
    --journal-paper: #fbf3df;
    --journal-ink: #293e33;
    --rust: #9c4b30;
    --pin-top: 0px;
    --gutter: clamp(28px, 5.1vw, 96px);
    position: relative; color: var(--journal-ink); background: var(--journal-paper);
}
.journey-pin {
    position: relative; isolation: isolate; overflow: hidden; min-height: min(750px, 100svh);
    display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 3.7vh, 40px) var(--gutter) clamp(19px, 3.8vh, 44px);
    background-color: var(--journal-paper);
    background-image: radial-gradient(ellipse at 79% 50%, #f4dfa844, transparent 54%), radial-gradient(ellipse at 0% 100%, #f2e1b955, transparent 50%);
}
.journey-pin::before {
    content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    opacity: .23; background-image: url('../images/journey/paper.webp'); background-size: 180px;
}
.journal-head, .journey-nav { position: relative; z-index: 3; display: flex; align-items: center; }
.journal-head { gap: clamp(12px, 1.9vw, 30px); }
.journal-mark { display: inline-flex; align-items: center; gap: 8px; font: italic 600 clamp(1rem, 1.45vw, 1.4rem)/1.2 var(--display); white-space: nowrap; }
.journal-mark svg { width: 19px; height: 24px; color: var(--rust); transform: rotate(16deg); }
.journal-rule { height: 1px; flex: 1; background: #b5a47d70; }
.journal-head a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; text-decoration: none; font-size: .78rem; font-weight: 600; }
.journal-head a:hover { text-decoration: underline; }
.journal-head a svg { width: 14px; }
.journey-spread {
    position: relative; display: grid; grid-template-columns: 36% 64%; align-items: center; min-height: 0;
}
.journey-copy { position: relative; z-index: 2; padding-block: 30px; }
.journey-kicker { display: flex; align-items: center; gap: 10px; font-size: .66rem; font-weight: 700; line-height: 1.4; letter-spacing: .18em; color: #7d5036; }
.journey-kicker::before { content: ''; width: 28px; height: 1px; background: #a46541; }
.journey-copy h1 { font: 600 clamp(3.5rem, 6.8vw, 8rem)/1.03 var(--display); letter-spacing: -.065em; margin: 23px 0 19px; }
.journey-copy h1 span, .journey-copy h1 em { display: block; white-space: nowrap; }
.journey-copy h1 em { color: var(--rust); font-weight: 600; }
.journey-intro { max-width: 31ch; color: #585648; font: 400 clamp(.94rem, 1.12vw, 1.14rem)/1.65 var(--body); }
.journey-next {
    margin-top: clamp(19px, 2.3vw, 32px); padding: 12px 18px 12px 21px; min-height: 45px;
    display: inline-flex; align-items: center; gap: 17px; text-decoration: none; border-radius: 30px;
    font-size: .85rem; font-weight: 600; background: var(--journal-ink); color: #fff6de;
}
.journey-next:hover { background: #45593e; }
.journey-next svg { width: 16px; height: 16px; }
.journey-art {
    width: 114%; max-height: 100%; margin-left: -5%; display: block;
    overflow: visible; mix-blend-mode: multiply; pointer-events: none;
}
.journey-nav { gap: 22px; min-width: 0; padding-top: 14px; border-top: 1px solid #b5a47d85; }
.journey-nav::before {
    content: ''; position: absolute; inset: -1px 0 auto; height: 2px; background: #9c633b;
    transform-origin: left; transform: scaleX(var(--journey-progress, 0)); pointer-events: none;
}
.journey-counter { white-space: nowrap; font-size: .72rem; color: #786b54; letter-spacing: .09em; font-variant-numeric: tabular-nums; }
.journey-counter b { font: italic 600 1.7rem/1 var(--display); color: var(--rust); margin-right: 3px; }
.journey-stops { display: flex; flex: 1; max-width: 600px; margin-left: auto; }
.journey-stops button { display: flex; gap: 9px; align-items: center; position: relative; flex: 1; border: 0; background: transparent; padding: 7px 0 7px 10px; min-height: 42px; font-size: .78rem; font-weight: 600; color: #6b6455; cursor: pointer; }
.journey-stops button:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: #b5a47d85; }
.journey-stops button:last-child { flex: 0 1 auto; }
.journey-stops i { width: 9px; height: 9px; border: 1px solid #8c816b; border-radius: 50%; flex: none; }
.journey-stops [aria-current] { color: var(--rust); }
.journey-stops [aria-current] i { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 3px var(--journal-paper), 0 0 0 4px #ba8a67; }
.journey-stops button:hover { color: var(--rust); }
.static-end { max-width: 58ch; font-size: .9rem; padding-block: 12px; }
.kitchen-bookmark { position: absolute; top: 0; left: 0; scroll-margin-top: var(--pin-top); pointer-events: none; }
.journey.is-scrubbed { --travel: 358svh; height: calc(100svh - var(--pin-top) + var(--travel)); }
.is-scrubbed .kitchen-bookmark { top: calc(var(--travel) * .71); }
.is-scrubbed .journey-pin { position: sticky; top: var(--pin-top); height: calc(100svh - var(--pin-top)); min-height: 0; }
@media (max-width: 900px) {
    .journey { --pin-top: var(--mobile-head); --gutter: clamp(18px, 4.5vw, 40px); }
}
@media (max-width: 740px) {
    .journey-pin { padding-block: 12px 13px; }
    .journey-spread { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: center; }
    .journey-copy { padding: clamp(12px, 2.4svh, 25px) 0 0; }
    .journey-copy h1 { font-size: clamp(2.75rem, 8.9vw, 4.1rem); margin: 10px 0; line-height: 1.01; }
    .journey-copy h1 span, .journey-copy h1 em { display: inline; }
    .journey-intro { font-size: .9rem; max-width: 44ch; line-height: 1.5; }
    .journey-kicker { font-size: .59rem; }
    .journey-next { margin-top: 13px; min-height: 38px; padding: 8px 15px; font-size: .78rem; }
    .journey-art { width: min(116%, 740px); height: 100%; min-height: 0; margin: 0; justify-self: center; }
    .journey-nav { gap: 13px; padding-top: 5px; }
    .journey-counter b { font-size: 1.2rem; }
    .journey-counter { font-size: .61rem; }
    .journey-stops { max-width: 470px; }
    .journey-stops button { padding-left: 5px; gap: 6px; font-size: .67rem; }
    .journey-stops i { width: 7px; height: 7px; }
    .journey:not(.is-scrubbed) .journey-art { height: auto; }
}
@media (max-height: 630px) and (min-width: 741px) {
    .journey-pin { padding-block: 10px; }
    .journey-copy h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); margin-block: 10px; }
    .journey-copy { padding-block: 8px; }
}
@media (max-width: 550px) {
    .journey-nav { gap: 8px; }
    .journey-stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .journey-stops button { flex-direction: column; justify-content: center; padding: 8px 0 3px; gap: 5px; }
    .journey-stops button:not(:last-child)::after { position: absolute; left: calc(50% + 9px); width: calc(100% - 18px); top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .journey-pin { min-height: min(720px, 95svh); }
}

