/* ==========================================================================
   myOtter — the date-ideas library
   --------------------------------------------------------------------------
   This sheet is a supplement to css/site-v2.css, never a replacement for it.
   Load order is reset -> site-v2 -> library, and every page that links this
   one links those first.

   site-v2.css owns the design system: the tokens, the base element styles,
   the masthead, the footer and the .act button family. This file owns only
   what lives between them on a library page — the date cards, the detail
   layout, the breadcrumb, the venue claim strip, the legal prose and the
   contact bits. It deliberately declares no :root block of its own, because
   the version that used to live here shadowed eleven of site-v2's tokens
   (the whole type scale, both hairlines, --measure, --shadow-lg and
   --text-muted) and silently gave the library a different calibration from
   the pages either side of it.

   Contrast discipline carries over unchanged: --river, --clay and --honey are
   decorative and clear AA at large sizes only. Where an accent has to carry
   small text, use its lifted sibling — --river-deep, --honey-lift,
   --clay-lift, --honey-ink or --text-muted-strong — chosen against a specific
   ground. One trap in particular: --text-muted is 4.26:1 on --sand, which is
   under AA. Muted copy on a sand surface takes --text-muted-strong.
   ========================================================================== */

/* ---------------------------------------------------- 1. Headings, prose */

/* site-v2.css styles headings through a .display class, because its pages
   choose their own scale per section. Library pages use bare h1/h2/h3, so the
   display treatment is bound to the elements here instead.

   Each one sits a step below the landing pages: a venue page is a content
   page, and --step-4 at its 5rem cap is a hero size, not a page title. */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal);
    font-variation-settings: 'SOFT' 20, 'WONK' 1;
    letter-spacing: -0.032em;
    text-wrap: balance;
}

h1 {
    font-size: var(--step-3);
    line-height: 1.02;
}

h2 {
    font-size: var(--step-2);
    line-height: 1.1;
}

h3 {
    font-size: var(--step-1);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p + p {
    margin-top: 0.9em;
}

strong {
    font-weight: 600;
}
/* ------------------------------------------------------------- 2. Layout */

.container {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-narrow {
    max-width: 780px;
}

.section {
    padding-block: var(--band-y);
    position: relative;
}

.center {
    text-align: center;
}

.lede {
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 54ch;
}

/* Sections used to open with a small-caps label — "How it works", "Inside",
   "Questions" — sitting above a heading that already said the same thing in
   better words. The label is gone; the pebble that carried it stays, as an
   unlabelled mark above the heading. It keeps the vertical rhythm the eyebrow
   provided and the signature it earned, without a word the heading repeats. */
.section-title {
    position: relative;
    padding-top: 1.9rem;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0;
    width: 1.1rem;
    height: 0.7rem;
    background: var(--honey);
    /* an irregular pebble, not a circle */
    border-radius: 60% 40% 55% 45% / 60% 55% 45% 40%;
}

.center .section-title::before,
.section-title.center::before {
    left: 50%;
    transform: translateX(-50%);
}

/* ------------------------------------------------------------ 3. Buttons */

/* The library's CTAs and the masthead's .act pills are the same button in two
   places, so they share metrics: the 44px minimum target, the 1px border, the
   --step--1 label and the one-pixel lift. .btn keeps the roomier padding,
   because these sit in the body of a page rather than in a 72px rail, and it
   keeps its own class names so no page markup has to change. */
.btn {
    --btn-bg: var(--teal);
    --btn-fg: var(--text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-pill);
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: var(--step--1);
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--dur) var(--ease),
        color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        transform var(--dur-fast) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    --btn-bg: var(--teal);
}

.btn-primary:hover {
    --btn-bg: var(--teal-deep);
}

/* Matches .act-quiet: a hairline rather than a 2px teal rule, which at the
   second-pass --line-strong reads as a quieter sibling of the solid button
   instead of a second emphasis competing with it. */
.btn-secondary {
    --btn-bg: transparent;
    --btn-fg: var(--teal);
    border-color: var(--line-strong);
    box-shadow: none;
}

.btn-secondary:hover {
    --btn-bg: var(--paper);
    border-color: var(--teal);
    box-shadow: none;
}

.btn-sm {
    min-height: 38px;
    padding: 0.5rem 1.1rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn-row-center {
    justify-content: center;
}

/* ---------------------------------------------------- 4. Date idea cards */

.date-ideas-section .intro {
    color: var(--text-muted);
    font-size: var(--step-1);
    max-width: 60ch;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.75rem 0 1rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--line-strong);
    background: transparent;
    color: var(--teal);
    font-weight: 600;
    font-size: var(--step--1);
    font-family: inherit;
    transition: background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
}

.category-chip:hover {
    border-color: var(--teal);
    background: rgba(37, 67, 76, 0.06);
}

.category-chip[aria-pressed='true'],
.category-chip[aria-current='true'],
.category-chip.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--text-inverse);
}

/* Names the filter that is currently applied, so the grid below it has a
   heading rather than jumping from the page h1 straight to card titles. */
.results-heading {
    margin-top: 1.6rem;
    font-size: var(--step-2);
}

.category-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.date-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}

.date-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.date-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.date-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand);
}

.date-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.date-card:hover .date-card-image img {
    transform: scale(1.04);
}

/* Scoped to the card. Previously .price-badge was absolutely positioned
   globally, so the copy inside .date-detail-meta escaped its row and floated
   over the header on all 45 venue pages. */
.date-card-image .price-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
}

.price-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--honey);
    color: var(--teal-deep);
    font-weight: 700;
    font-size: var(--step--1);
}

.date-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem;
    flex: 1;
}

.date-card-title {
    font-size: var(--step-1);
    margin-bottom: 0.1rem;
}

.date-card-title a {
    text-decoration: none;
}

.date-card-title a::after {
    /* whole-card click target without nesting interactive elements */
    content: '';
    position: absolute;
    inset: 0;
}

.date-card {
    position: relative;
}

.date-card-title a:hover {
    color: var(--river-deep);
}

.date-card-venue {
    font-weight: 600;
    color: var(--river-deep);
    font-size: var(--step--1);
}

.date-card-location {
    color: var(--text-muted);
    font-size: var(--step--1);
}

.date-card-description-preview p {
    color: var(--text-muted);
    font-size: var(--step--1);
    margin-top: 0.5rem;
}

.date-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.date-card-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--river-deep);
    font-weight: 600;
    font-size: var(--step--1);
    text-decoration: underline;
    text-underline-offset: 3px;
    position: relative;
    z-index: 1;
}

.date-card-description-full {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
    color: var(--text-muted);
}

.date-card-description-full[hidden] {
    display: none;
}

/* -------------------------------------------------- 5. Locked categories */

/* The eight padlocked category cards are gone: showing a visitor a wall of
   things they cannot have cost more attention than it converted. What is left
   is the wrapper and one line of copy. */
.locked-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------- 6. Detail */

.breadcrumb {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: 0.85rem;
    font-size: var(--step--1);
    color: var(--text-muted);
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--river-deep);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.date-detail {
    padding-block: clamp(2rem, 1.4rem + 2.5vw, 3.5rem) var(--band-y);
}

.date-detail-header {
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.date-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: var(--step--1);
}

.venue-name {
    font-weight: 700;
    color: var(--river-deep);
}

.location {
    color: var(--text-muted);
}

.category-badge {
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--sand);
    color: var(--teal);
    font-weight: 600;
}

.date-detail-content {
    max-width: 800px;
    margin-inline: auto;
}

.date-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    aspect-ratio: 3 / 2;
}

.date-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-detail-description p {
    font-size: var(--step-1);
    line-height: 1.7;
}

.date-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 2rem 0 3rem;
}

.about-otter {
    background: var(--sand);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    margin-bottom: 2rem;
}

.about-otter h2 {
    font-size: var(--step-2);
    margin-bottom: 0.75rem;
}

.about-otter p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.related-links {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Standalone links in a row are not inline-in-a-sentence, so they owe the
   24px minimum target. */
.related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--river-deep);
    font-weight: 600;
    text-decoration: none;
}

.related-links a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------- 7. Venue claim */

/* The highest-intent moment on the site is a venue owner finding their own
   listing, so every detail page gets a route into the partner funnel. */
.venue-claim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.1rem 1.35rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: var(--step--1);
    color: var(--text-muted);
}

.venue-claim strong {
    color: var(--teal);
    display: block;
    font-size: var(--step-0);
}

/* ------------------------------------------------------ 8. Legal / prose */

.legal-content {
    max-width: 760px;
}

.legal-content h2 {
    font-size: var(--step-2);
    margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
    margin: 1.75rem 0 0.5rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.4rem;
    margin: 0.75rem 0;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--river-deep);
}

/* --------------------------------------------------- 9. View transitions */

/* A 60-page static site where people click a card and land on that venue is
   the textbook case for cross-document transitions, and it costs two lines. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 260ms;
    animation-timing-function: var(--ease);
}

.date-detail-image img {
    view-transition-name: venue-hero;
}

/* ------------------------------------------------------ 10. Contact bits */

.contact-email,
.contact-link {
    color: var(--river-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.contact-email:hover,
.contact-link:hover {
    color: var(--teal);
}

/* -------------------------------------------------------- 11. Responsive */

@media (max-width: 768px) {
    

    

    

    

    

    

    

    

    /* A left rule reads as a hanging indent once the card centres. */
    

    .date-detail-actions .btn {
        width: 100%;
    }
}

/* Sticky mobile CTA. SEO traffic lands deep in the site on a phone, where the
   header CTA is behind the menu button, so it needs a persistent route out. */

@media (max-width: 768px) {
    

    body {
        padding-bottom: 4.5rem;
    }
}

/* ---------------------------------------------------- 12. Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* Decorative loops stop. State changes do not: reduced motion means less
       movement, not an interface that stops confirming that something
       happened. Colour, opacity and elevation still cross-fade over a single
       perceptible beat; everything that moves is pinned below. */
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-property: color, background-color, border-color, outline-color,
            opacity, box-shadow, fill, stroke !important;
        transition-duration: 120ms !important;
    }

    .btn:hover,
    .btn:active,
    .feature-card:hover,
    .date-card:hover,
    .date-card:hover .date-card-image img {
        transform: none !important;
    }

    @view-transition {
        navigation: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --text-muted: #3B5058;
        --line: rgba(37, 67, 76, 0.35);
        --line-strong: rgba(37, 67, 76, 0.6);
    }
}

