/*
Theme Name: Bali In Motion
Description: An island outdoors journal built around landscape photography.
Version: 1.1.0
*/
:root { --sand:#f6f1e4; --forest:#153f37; --shore:#185d56; --edge:#a0b1a8; --sub:#3d5951 }
* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; background:var(--sand); color:var(--forest); font:1rem/1.63 system-ui,sans-serif }
a { color:inherit; text-underline-offset:.2em }
:focus-visible { outline:3px solid #276c61; outline-offset:5px }
.jump { position:absolute; top:-100px; z-index:4; background:#fff; padding:.7rem; left:1rem }
.jump:focus { top:.6rem }
img { display:block; max-width:100%; height:auto }
.island-mast { background:#f8f4e9; border-bottom:1px solid #b8c7ba }
.island-rail,.island-footer > div { width:min(1180px,calc(100% - 80px)); margin:auto; display:flex; align-items:center; justify-content:space-between; gap:.8rem 1.2rem; min-height:77px }
.brand-island { display:flex; align-items:center; gap:.67rem; text-decoration:none; font-weight:900; letter-spacing:-.05em; font-size:1.19rem }
.brand-island b { width:37px; height:37px; display:grid; place-items:center; color:white; background:var(--shore); border-radius:50%; font-size:1.5rem }
.island-rail nav { display:flex; flex-wrap:wrap; gap:.65rem 1.55rem; font-size:.95rem; font-weight:710 }
.island-rail nav a,.island-footer a { text-decoration:none }
.island-rail nav a:hover,.island-footer a:hover { text-decoration:underline }
.shoreline { display:grid; grid-template-columns:minmax(260px,.83fr) minmax(0,1.14fr); align-items:center; gap:clamp(1rem,4.3vw,4.8rem); width:min(1270px,100% - 80px); margin:3rem auto 4.2rem }
.shoreline-copy { padding-left:clamp(0rem,2.5vw,1.65rem) }
.coast-caption { margin:0 0 .65rem; color:var(--shore); text-transform:uppercase; font-size:.83rem; letter-spacing:.095em; font-weight:760 }
.shoreline h1 { margin:0; font:700 clamp(3.2rem,6vw,5.8rem)/.86 Georgia,serif; letter-spacing:-.079em }
.shoreline-copy > p:not(.coast-caption) { max-width:41ch; color:var(--sub); font-size:1.12rem; margin:1.5rem 0 }
.coast-link { display:inline-block; border-radius:30px; background:var(--shore); color:#fff; padding:.62rem 1.07rem; font-weight:750; text-decoration:none }
.coast-link:hover { background:#103e38 }
.shoreline figure { margin:0; overflow:hidden; border-radius:45% 7px 32% 10px / 42% 7px 25% 10px; aspect-ratio:1.16; background:#d8dfd7 }
.shoreline figure img { width:100%; height:100%; object-fit:cover; object-position:center }
.outside,.shore-history { width:min(1180px,calc(100% - 80px)); margin:auto; }
.outside { padding:0 0 3rem }
.outside-heading { display:flex; justify-content:space-between; align-items:center; gap:.5rem 1rem; flex-wrap:wrap; border-bottom:1px solid var(--edge); padding-bottom:.75rem }
.outside-heading h2,.shore-history h2 { margin:0; font:700 clamp(2.2rem,6vw,4.5rem)/.95 Georgia,serif; letter-spacing:-.06em }
.outside-heading a,.shore-history a { font-weight:730 }
.coast-stories { padding-top:1.25rem; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr)); gap:1.25rem }
.coast-stories a { text-decoration:none; display:block; border-bottom:1px solid var(--edge); padding-bottom:1.15rem }
.coast-stories img { width:100%; height:auto; aspect-ratio:2.23; object-fit:cover; border-radius:18px }
.coast-stories h3 { font:700 1.66rem/1.13 Georgia,serif; margin:.76rem 0 .4rem }
.coast-stories a:hover h3 { text-decoration:underline }
.coast-stories p { color:var(--sub); margin:0 }
.shore-history { background:#d7e1d4; padding:1.65rem clamp(1.15rem,4vw,3rem); margin-bottom:4rem; }
.shore-history p { max-width:61ch }
.island-footer { border-top:1px solid var(--edge); background:#e4e6dc }
.island-footer p { margin:0 }
.island-reading { width:min(850px,calc(100% - 80px)); margin:auto; padding:3.5rem 0 5rem }
.daybreak h1,.island-reading > h1 { font:700 clamp(2.6rem,7vw,5.5rem)/.98 Georgia,serif; letter-spacing:-.067em; margin:.75rem 0 }
.article-dek { color:var(--sub); font-size:1.2rem; max-width:62ch }
.reading-back,.trip-journal a { color:var(--shore) }
.trip-journal { max-width:740px; font-size:1.09rem; line-height:1.74 }
.trip-journal h2 { font:700 1.94rem/1.15 Georgia,serif }
.feature-image { margin:1.45rem 0 }
.feature-image img { width:100%; border-radius:16px }
@media(max-width:800px) {
 .shoreline { grid-template-columns:1fr; margin-top:1.8rem; gap:1.3rem }
 .shoreline-copy { padding:0 }
 .shoreline figure { aspect-ratio:1.58 }
}
@media(max-width:520px) {
 .island-rail,.island-footer > div,.shoreline,.outside,.shore-history,.island-reading { width:calc(100% - 34px) }
 .island-rail,.island-footer > div { padding-block:.8rem; min-height:0; flex-wrap:wrap }
 .island-rail nav { flex-basis:100%; gap:.65rem 1.1rem }
 .shoreline h1 { font-size:clamp(3rem,12.7vw,4.6rem) }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto } }

picture { display:contents }

.island-mast { background:#f9f4e6; border-bottom:1px solid #d0cbb9 }
.brand-island { font:700 1.3rem Georgia,serif; letter-spacing:-.041em }
.brand-island b { background:#234d40; width:33px; height:33px; font-size:1.27rem }
.island-rail nav { font-size:.88rem }
.island-rail nav a:last-child { border-bottom:1px solid #99a393 }
.shoreline {
    position:relative; isolation:isolate; display:grid; align-items:end; min-height:clamp(500px,46vw,670px);
    width:min(1390px,100% - 5vw); margin:1.2rem auto clamp(2.25rem,5vw,4.6rem);
    background:#284841; color:#fff5dc; border-bottom-left-radius:55% 5%; border-bottom-right-radius:55% 5%;
    overflow:hidden;
}
.shoreline figure { position:absolute; inset:0; z-index:-2; border-radius:0; aspect-ratio:auto }
.shoreline figure img { object-position:50% 57% }
.shoreline::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#102c28dc 0%,#102c2890 39%,transparent 70%),linear-gradient(0deg,#102c28c5,transparent 71%) }
.shoreline-copy { align-self:end; padding:2.5rem clamp(1.3rem,6.8vw,6rem) clamp(3rem,6.8vw,6rem) }
.coast-caption { color:#f7e9c2; font-size:.75rem; letter-spacing:.12em; margin-bottom:.85rem }
.shoreline h1 { font:700 clamp(3.8rem,9.1vw,8.45rem)/.79 Georgia,serif; letter-spacing:-.08em }
.shoreline h1 em { font-weight:400 }
.shoreline-copy > p:not(.coast-caption) { color:#fff1dc; margin:1.42rem 0 1rem; max-width:43ch; text-shadow:0 1px 10px #132b20 }
.coast-link { background:#fff0c8; color:#1d4336; padding:.6rem .94rem }
.coast-link:hover { background:#f9df98; color:#1d4336 }
.outside-heading { border-bottom:1px solid #a8ab97 }
.outside-heading h2 { font-weight:400 }
.outside-heading a { color:var(--shore) }
.coast-stories { grid-template-columns:minmax(0,1.29fr) minmax(0,.71fr); gap:clamp(1.2rem,3.7vw,3rem) }
.coast-stories a { padding-bottom:1.25rem }
.coast-stories img { border-radius:3px; aspect-ratio:2.2 }
.coast-stories article:not(:has(img)) a { border-top:4px solid #9ba991; padding-top:.65rem }
.coast-stories h3 { font-size:clamp(1.45rem,2.5vw,2.2rem); letter-spacing:-.034em }
.story-link { display:block; color:var(--shore); font-size:.88rem; font-weight:760; margin-top:.8rem }
.shore-history { background:#e6e8d8 }
@media (max-width:800px) {
    .shoreline { min-height:490px; margin-top:.85rem }
    .shoreline::before { background:linear-gradient(0deg,#102c28f2 4%,#102c2899 45%,transparent 87%) }
}
@media (max-width:560px) {
    .shoreline { width:calc(100% - 20px); min-height:480px }
    .shoreline h1 { font-size:clamp(3.35rem,12.5vw,4.8rem) }
    .shoreline-copy { padding:2.25rem .9rem 2.3rem }
    .shoreline-copy > p:not(.coast-caption) { font-size:1rem }
    .coast-stories { grid-template-columns:1fr }
}
