/* Legacy of Love Standard Poodles: one mobile-first stylesheet. */
:root {
  --ink: #2f3437;        /* charcoal, from the poodle silhouette logo */
  --ink-soft: #5c6468;
  --paper: #fbf8f4;      /* warm cream */
  --card: #ffffff;
  --line: #e7e0d8;
  --accent: #9b4a5c;     /* rose for "Love" */
  --accent-dark: #7d3a4a;
  --radius: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.35rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 40rem; }
.prose { max-width: 44rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

/* Header and nav */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 56px; }
.brand span { font: italic 600 1.25rem/1.1 var(--serif); margin-top: 2px; }
@media (min-width: 760px) { .brand img { height: 72px; } .brand span { font-size: 1.4rem; } }
.nav-toggle { font: inherit; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); }
.site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
.site-nav.open { display: flex; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .button { color: #fff; text-align: center; padding: 8px 18px; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 24px; padding: 0; }
}

/* Buttons */
.button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button-small { padding: 8px 18px; }
.button-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button-ghost:hover { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { margin: 2rem 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--card), var(--paper)); padding: 48px 0 32px; }
.hero h1 { margin-top: .2em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0; }

/* Cards and grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2, .card h3 { margin-top: 0; }
.card img { border-radius: 8px; margin-bottom: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.grid-2, .grid-cards { display: grid; gap: 16px; }
.grid-2.tight { gap: 0 16px; align-items: end; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.badge { display: inline-block; font: 600 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--line); color: var(--ink); vertical-align: middle; }
.badge-available { background: #e3f1e6; color: #24613a; }
.badge-reserved { background: #f7ead6; color: #7a4f12; }

/* Journal */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-body figure { margin: 1.5rem 0; }
.post-body .blocks-gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.post-body .blocks-gallery-grid figure { margin: 0; }
.post-body .blocks-gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }
.post-body figcaption { color: var(--ink-soft); font-size: .9rem; text-align: center; margin-top: 6px; }
.post-body video { width: 100%; border-radius: 8px; background: #000; }

/* Forms */
.form { margin: 1.5rem 0 3rem; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; }
.field input:not([type="radio"]), .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfc6bc; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.radios { border: 0; padding: 0; }
.radios label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin-right: 20px; }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: .9rem; margin: 4px 0 0; }
.hint { color: var(--ink-soft); font-size: .9rem; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; }
.flash { background: #f7ead6; border-radius: 8px; padding: 10px 14px; }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.admin-nav a { white-space: nowrap; }
.admin-nav form { margin-left: auto; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-n { display: block; font: 600 2rem/1 var(--serif); }
.stat-l { color: var(--ink-soft); font-size: .9rem; }
.stat-link { color: inherit; text-decoration: none; background: #f4f4f4; transition: border-color .15s, box-shadow .15s; }
.stat-link:hover, .stat-link:focus-visible { color: inherit; text-decoration: none; border-color: var(--ink-soft); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.stat-link .stat-l::after { content: " \2192"; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--ink); color: #e9e4de; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #f2c9d2; }
.footer-inner { display: grid; gap: 8px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* Admin journal */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.admin-head h1 { margin: 0; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }

/* Photos page and its admin picker */
.gallery, .photo-picker { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.gallery a { display: block; border-radius: 6px; overflow: hidden; }
.gallery img, .photo-picker img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; transition: transform .2s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.photo-picker li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.photo-picker label { position: relative; display: block; width: 100%; cursor: pointer; }
.photo-picker input[type="checkbox"] { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; accent-color: var(--accent); }
.photo-picker label:has(input:checked) img { outline: 3px solid var(--accent); outline-offset: 2px; opacity: .8; }
.picker-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.picker-bar label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.picker-bar .button[disabled] { opacity: .5; cursor: not-allowed; }
.feature-photo { margin: 0 0 24px; }
.feature-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.feature-photo figcaption { color: var(--ink-soft); font-size: .95rem; text-align: center; margin-top: 8px; }
.photo-view { padding-top: 16px; }
.photo-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.photo-steps { display: flex; gap: 10px; margin-left: auto; }
.photo-view img { max-height: calc(100vh - 220px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.gallery li { scroll-margin-top: 16px; }
.danger-zone { margin: 32px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.linklike.danger { color: #b3261e; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.inline-form select { font: inherit; padding: 6px 8px; border: 1px solid #cfc6bc; border-radius: 8px; background: #fff; color: var(--ink); }
table.people td { vertical-align: middle; }
.field input[type="file"] { padding: 8px; }

/* Prospect detail */
.answers { margin: 1.5rem 0; }
.answers dt { font-weight: 600; margin-top: 14px; }
.answers dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.status-inline { margin: 0; }
.status-detail { display: flex; align-items: center; gap: 10px; margin: 0 0 1.5rem; }
.status-detail label { font-weight: 600; }
/* Status dropdown: rounded, bordered, tinted by status with a light translucent fill. */
.status-select { font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 12px; border: 1.5px solid; border-radius: 10px; cursor: pointer; }
.status-not_viewed { color: #8a5a00; border-color: #d99a1e; background: rgba(217, 154, 30, .15); }
.status-reviewed { color: #1f5a8a; border-color: #4a8ac2; background: rgba(74, 138, 194, .15); }
.status-contacted { color: #5b3d8a; border-color: #8a6bc2; background: rgba(138, 107, 194, .15); }
.status-accepted { color: #24613a; border-color: #4c9a66; background: rgba(76, 154, 102, .15); }
.status-rejected { color: #8a2a24; border-color: #c2564e; background: rgba(194, 86, 78, .12); }
.status-spam { color: var(--ink-soft); border-color: #b7aea5; background: rgba(120, 110, 100, .10); }
.status-select option { color: var(--ink); background: #fff; }
