/* uspomeroy.com — Coastal Calm theme */

:root {
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --ink: #173F3B;        /* darkest teal — headings */
  --teal: #1F5D57;       /* primary */
  --teal-hover: #17463f;
  --text: #45504C;       /* body */
  --muted: #7C847F;      /* secondary */
  --sand: #E7DFD3;
  --sand-soft: #F1ECE3;
  --sunset: #D98E5A;     /* accent */
  --sunset-deep: #B4703F;
  --border: #E4E0D7;
  --radius: 12px;
  --maxw: 1040px;
  --shadow: 0 1px 2px rgba(23,63,59,0.04), 0 8px 24px rgba(23,63,59,0.05);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,251,249,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-size: 26px; color: var(--ink); font-weight: 600;
  letter-spacing: 0.3px;
}
.wordmark span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 15px; color: var(--ink); font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { border-bottom-color: var(--sunset); color: var(--teal); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--ink); line-height: 1;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px;
  color: var(--sunset-deep); font-weight: 500; margin-bottom: 14px;
}
.hero h1 { font-size: 58px; margin-bottom: 18px; }
.hero p.lead { font-size: 19px; color: var(--text); max-width: 46ch; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* framed photo placeholder */
.photo-frame {
  background: var(--sand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); text-align: center; padding: 24px;
  box-shadow: var(--shadow);
}
.photo-frame .ph-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--teal);
}
.photo-frame small { font-size: 13px; letter-spacing: .3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--teal); transition: all .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--sand-soft); color: var(--teal); }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; max-width: 60ch; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 38px; margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: 48px; }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 8px; max-width: 60ch; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 3 / 2; background: var(--sand-soft);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 30px; border-bottom: 1px solid var(--border);
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 24px; margin-bottom: 6px; }
.card-body .meta { font-size: 13px; color: var(--sunset-deep); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px; }
.card-body p { font-size: 15px; color: var(--text); }

/* link cards on home */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.link-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .15s ease, box-shadow .15s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card .lc-icon { font-size: 30px; color: var(--teal); margin-bottom: 14px; }
.link-card h3 { font-size: 26px; margin-bottom: 6px; }
.link-card p { font-size: 15px; color: var(--muted); }
.link-card .arrow { margin-top: 14px; color: var(--sunset-deep); font-weight: 500; font-size: 14px; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--teal); border: 1px solid var(--border);
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--teal); }
.filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.is-hidden { display: none !important; }

/* ---------- Bio ---------- */
.bio { max-width: 62ch; }
.bio p { margin-bottom: 16px; }

/* ---------- About/intro strip ---------- */
.intro { background: var(--sand-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Contact / form ---------- */
.form-wrap { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 16px; color: var(--text);
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,93,87,0.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.contact-aside { color: var(--muted); font-size: 15px; }
.contact-aside a { font-weight: 500; }

/* ---------- Empty state ---------- */
.empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 48px 28px; text-align: center; color: var(--muted); background: var(--sand-soft);
}
.empty h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- Trip page ---------- */
.tag { display:inline-block; font-size:12px; font-weight:500; letter-spacing:1.4px; text-transform:uppercase; padding:5px 13px; border-radius:999px; }
.tag-past { background:var(--sand); color:var(--sunset-deep); }
.tag-upcoming { background:#DCEAE6; color:var(--teal); }
.trip-meta { display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:16px; color:var(--muted); font-size:15px; }
.trip-meta span { display:inline-flex; align-items:center; gap:8px; }
.lede { font-size:19px; color:var(--text); max-width:64ch; }
.trip-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.trip-gallery .ph { aspect-ratio:3/2; background:var(--sand-soft); border:1px solid var(--border); border-radius:var(--radius); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--muted); font-size:26px; }
.trip-gallery .ph small { font-size:12px; }
.daylist { display:flex; flex-direction:column; gap:16px; }
.day { display:grid; grid-template-columns:150px 1fr; gap:22px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; }
.day .day-label { font-family:'Cormorant Garamond',serif; color:var(--teal); font-size:24px; line-height:1.1; }
.day .day-label small { display:block; color:var(--sunset-deep); font-size:12px; letter-spacing:1.3px; text-transform:uppercase; font-family:'Inter',sans-serif; margin-top:4px; }
.day h3 { font-size:22px; margin-bottom:5px; }
.day p { font-size:15px; color:var(--text); }
.pill-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.pill { font-size:13px; background:var(--sand-soft); border:1px solid var(--border); color:var(--ink); padding:5px 13px; border-radius:999px; }
.back-link { display:inline-block; margin-top:8px; font-size:15px; font-weight:500; }
@media (max-width:640px){ .day{ grid-template-columns:1fr; gap:6px; } }

/* ---------- Expandable day accordion ---------- */
.day-acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.day-acc > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: baseline; gap: 16px; }
.day-acc > summary::-webkit-details-marker { display: none; }
.day-acc > summary::after { content: "+"; margin-left: auto; color: var(--sunset-deep); font-size: 22px; line-height: 1; }
.day-acc[open] > summary::after { content: "\2013"; }
.day-acc > summary .d-when { font-family: 'Cormorant Garamond', serif; color: var(--teal); font-size: 21px; min-width: 104px; }
.day-acc > summary .d-title { font-family: 'Cormorant Garamond', serif; color: var(--ink); font-size: 21px; }
.day-acc .acc-body { padding: 0 20px 18px; }
.day-acc .acc-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--sunset-deep); margin: 12px 0 6px; }
.day-acc .acc-body p { font-size: 15px; margin-bottom: 8px; }
.day-acc .acc-body ul { margin: 0 0 8px 20px; }
.day-acc .acc-body li { font-size: 15px; margin-bottom: 4px; }
@media (max-width:640px){ .day-acc > summary { flex-wrap: wrap; gap: 4px 16px; } }

/* ---------- Trip stats + logistics + timeline ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; margin: 8px 0; }
.stat { background: var(--sand-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-family: 'Cormorant Garamond', serif; color: var(--teal); font-size: 26px; line-height: 1; margin-bottom: 4px; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.logi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.logi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.logi h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--sunset-deep); }
.logi p { margin: 0; font-size: 15px; }
.logi p.big { font-family: 'Cormorant Garamond', serif; color: var(--ink); font-size: 20px; }

.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: none; }
.tl-time { font-weight: 500; color: var(--teal); font-size: 14px; }
.tl-item p { margin: 0; font-size: 15px; }
.tl-note { background: var(--sand-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 6px; }
.hotel-line { margin-top: 12px; padding: 12px 14px; background: var(--sand-soft); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.mini-tag { display: inline-block; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--sunset-deep); margin-left: 4px; }
@media (max-width:640px){ .tl-item { grid-template-columns: 1fr; gap: 2px; } }

.callout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.callout-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.callout-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.callout-item p { margin: 0; font-size: 14px; color: var(--text); }
.callout-item .src { font-size: 12px; color: var(--teal); margin-top: 6px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); color: var(--ink); font-weight: 500; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--sand-soft); }

/* ---------- Private lock screen ---------- */
.lock-wrap { max-width: 460px; margin: 0 auto; padding: 56px 0; }
.lock-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 38px 34px; box-shadow: var(--shadow); text-align: center; }
.lock-card .lc-key { font-size: 34px; color: var(--teal); margin-bottom: 12px; }
.lock-card h1 { font-size: 32px; margin-bottom: 8px; }
.lock-card > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.lock-card .field { text-align: left; margin-bottom: 14px; }
.lock-err { display: none; color: var(--sunset-deep); font-size: 14px; margin-bottom: 12px; }
.lock-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  padding: 36px 0; color: var(--muted); font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner .wordmark { font-size: 20px; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 46px; }
  .photo-frame { max-width: 360px; margin: 0 auto; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.active { border-bottom-color: var(--border); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .section-head h2 { font-size: 30px; }
  .page-head h1 { font-size: 36px; }
}
