/* Magazi — travel journal styles */
@import url("fonts.css");

:root {
  --sand: #f8f3ea;
  --sand-deep: #efe5d4;
  --ink: #1d2a30;
  --ink-soft: #4a5a61;
  --sea: #0f4c5c;
  --sea-deep: #0a3440;
  --aegean: #1f7a8c;
  --terracotta: #c4623a;
  --olive: #7c8a5a;
  --white: #fffdf9;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(10, 52, 64, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--sea); text-decoration-color: rgba(15, 76, 92, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); text-decoration-color: currentColor; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
  font-variation-settings: "opsz" 96;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sea); color: var(--white); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
}
.site-header.solid {
  position: static;
  background: var(--sand);
  color: var(--sea-deep);
  border-bottom: 1px solid var(--sand-deep);
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  display: flex; align-items: baseline; gap: .55rem;
}
.brand .greek { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; opacity: .8; }
.brand:hover { color: inherit; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  color: inherit; text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; color: inherit; }
.site-header:not(.solid) .brand, .site-header:not(.solid) .site-nav a { text-shadow: 0 1px 12px rgba(0,0,0,.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--sea-deep);
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,52,64,.45) 0%, rgba(10,52,64,0) 28%),
    linear-gradient(to top, rgba(10,40,50,.85) 0%, rgba(10,40,50,.35) 40%, rgba(10,40,50,0) 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 72rem; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5rem);
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 .75rem;
}
.hero .eyebrow { color: #f3c9a4; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  margin: 0 0 1rem;
  max-width: 16ch;
}
@media (min-width: 1100px) {
  .hero.hero-home .hero-inner > * { margin-left: auto; margin-right: 0; max-width: 22rem; }
  .hero-home .eyebrow { display: block; }
  .hero-home h1 { font-size: clamp(3.25rem, 6vw, 4.75rem); }
  .hero-home::after {
    background:
      linear-gradient(to bottom, rgba(10,52,64,.45) 0%, rgba(10,52,64,0) 28%),
      linear-gradient(to left, rgba(10,40,50,.7) 0%, rgba(10,40,50,.25) 45%, rgba(10,40,50,0) 65%),
      linear-gradient(to top, rgba(10,40,50,.55) 0%, rgba(10,40,50,0) 40%);
  }
}
.hero p.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
  opacity: .95;
}
.hero .meta { margin-top: 1.25rem; font-size: .95rem; letter-spacing: .04em; opacity: .9; }

/* ---------- Sections ---------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.welcome {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.welcome h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0; }
.welcome p { margin: 0 0 1rem; color: var(--ink-soft); max-width: var(--measure); }
.welcome .name-note { font-family: var(--serif); font-style: italic; color: var(--sea); }
@media (min-width: 860px) {
  .welcome { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}

.section-title {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta);
  margin: 0 0 1.5rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--sand-deep); }

/* ---------- Story card ---------- */
.stories { padding-bottom: clamp(4rem, 8vw, 6rem); }
.card {
  display: grid; grid-template-columns: 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(10,52,64,.45); color: inherit; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.card-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 1rem; }
.card-body p { margin: 0 0 1.5rem; color: var(--ink-soft); }
.read-more {
  align-self: flex-start;
  font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sea);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}
@media (min-width: 860px) {
  .card { grid-template-columns: 7fr 5fr; }
  .card-media { aspect-ratio: auto; min-height: 26rem; }
}
.coming-soon { margin: 2rem 0 0; color: var(--ink-soft); font-style: italic; text-align: center; }

/* ---------- Post ---------- */
.post-header {
  max-width: 56rem; margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.post-header h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin: 0 0 1.25rem; }
.post-header .meta { margin: 0; color: var(--ink-soft); letter-spacing: .04em; }
.post-header .meta::before { content: ""; display: block; width: 3rem; height: 2px; background: var(--terracotta); margin: 0 auto 1.25rem; }
figure.post-cover { max-width: 76rem; margin: 0 auto; }
.post-cover img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; }

.post-body { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4rem); }
.post-body > p {
  max-width: var(--measure);
  margin: 0 auto 1.6rem;
  padding: 0 clamp(1.25rem, 4vw, 0rem);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.8;
}
.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif); font-weight: 600;
  font-size: 4.2em; line-height: .85;
  padding: .08em .12em 0 0;
  color: var(--terracotta);
}
.post-body > p.signoff {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.55rem);
  color: var(--sea); margin-top: 2.5rem;
}

figure { margin: clamp(2rem, 5vw, 3.5rem) auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
figcaption {
  margin-top: .75rem;
  font-size: .95rem; color: var(--ink-soft); font-style: italic; text-align: center;
}
.fig-wide { max-width: 64rem; }
.fig-narrow { max-width: 30rem; }
.fig-pair { max-width: 64rem; }
.fig-pair .pair { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) {
  .fig-pair .pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .fig-pair .pair img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
}

.post-footer-nav {
  max-width: var(--measure); margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: 2rem clamp(1.25rem, 4vw, 0rem) 0;
  border-top: 1px solid var(--sand-deep);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-weight: 600;
}

/* ---------- About ---------- */
.about { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1.5rem; }
.about p { max-width: var(--measure); margin: 0 0 1.25rem; }
.placeholder {
  background: #fff2c6; color: #6b4e00;
  border: 1px dashed #d4a829; border-radius: 6px;
  padding: .05em .4em; font-size: .95em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 860px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sea-deep);
  color: rgba(255, 253, 249, .8);
  padding: 2.5rem 0;
  font-size: .95rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand { font-size: 1.3rem; color: var(--white); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: rgba(255, 253, 249, .85); text-decoration: none; }
.site-footer a:hover { color: #f3c9a4; }

/* wave divider above footer */
.wave { display: block; width: 100%; height: 48px; color: var(--sea-deep); margin-bottom: -1px; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand .greek { display: none; }
  .site-nav a { font-size: .85rem; letter-spacing: .06em; }
  .hero { min-height: 82vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.nowrap { white-space: nowrap; }

.hero > img.cover-img { object-position: 64% 45%; }
@media (min-width: 1100px) {
  .hero.hero-home .hero-inner > * { margin-left: 0; margin-right: auto; }
  .hero-home::after {
    background:
      linear-gradient(to bottom, rgba(10,52,64,.45) 0%, rgba(10,52,64,0) 28%),
      linear-gradient(to right, rgba(10,40,50,.75) 0%, rgba(10,40,50,.3) 30%, rgba(10,40,50,0) 50%),
      linear-gradient(to top, rgba(10,40,50,.5) 0%, rgba(10,40,50,0) 40%);
  }
}

.follow-title { margin-top: 2rem; }
.follow-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.follow-links a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 600; }
