diff --git a/wp-content/themes/postsecret/assets/css/ps-stream.css b/wp-content/themes/postsecret/assets/css/ps-stream.css index b55eb18..63c82ec 100644 --- a/wp-content/themes/postsecret/assets/css/ps-stream.css +++ b/wp-content/themes/postsecret/assets/css/ps-stream.css @@ -1,6 +1,6 @@ /* PostSecret — Home Stream (scoped) - - Only affects content inside .ps-latest - - Uses theme tokens (theme.json) for colors + - Archival gallery aesthetic + - Uses theme tokens for strict black/white/red palette - Container-query responsive density - Respects reduced motion */ @@ -10,24 +10,29 @@ ------------------------------ */ .ps-latest .ps-stream { display: grid; - gap: clamp(16px, 2.5vw, 24px); + gap: clamp(24px, 3vw, 32px); grid-template-columns: 1fr; - max-width: 800px; + max-width: 1200px; /* Wider for archival layout */ margin: 0 auto; + padding: var(--breathing-room, 2rem); container-type: inline-size; /* enable container queries */ } /* ------------------------------ - Card + Card - Archival gallery style ------------------------------ */ .ps-latest .ps-card { - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); - border-radius: 12px; + background: var(--wp--preset--color--bg); + border: none; + border-radius: 0; overflow: clip; - box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .08); - transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; - will-change: transform; + box-shadow: none; + transition: background-color .18s ease; + will-change: background-color; +} + +.ps-latest .ps-card:hover { + background: var(--wp--preset--color--tint); } /* Flippable card container */ @@ -64,11 +69,9 @@ transform: rotateY(180deg); } -.ps-latest .ps-card:hover, .ps-latest .ps-card:focus-within { - transform: translateY(-2px); - box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .12); - border-color: color-mix(in oklab, var(--wp--preset--color--border) 70%, var(--wp--preset--color--text)); + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 2px; } .ps-latest .ps-card__link { @@ -180,9 +183,9 @@ position: absolute; top: 24px; right: 16px; - background: var(--wp--preset--color--surface); + background: var(--wp--preset--color--bg); color: var(--wp--preset--color--text); - border: 1px solid var(--wp--preset--color--border); + border: none; border-radius: 50%; width: 54px; height: 54px; @@ -193,15 +196,15 @@ font-size: 1.95rem; line-height: 1; transition: all .18s ease; - box-shadow: 0 2px 8px rgba(0, 0, 0, .15); + box-shadow: none; z-index: 100; } .ps-latest .ps-card__flip-btn:hover { background: var(--wp--preset--color--bg); transform: rotate(180deg); - box-shadow: 0 4px 8px rgba(0, 0, 0, .2); - border-color: color-mix(in oklab, var(--wp--preset--color--border) 60%, var(--wp--preset--color--text)); + box-shadow: none; + color: var(--wp--preset--color--accent); } .ps-latest .ps-card__flip-btn:focus-visible { @@ -211,11 +214,11 @@ /* Dark mode adjustments */ html[data-theme="dark"] .ps-latest .ps-card__flip-btn { - box-shadow: 0 2px 8px rgba(0, 0, 0, .3); + box-shadow: none; } html[data-theme="dark"] .ps-latest .ps-card__flip-btn:hover { - box-shadow: 0 4px 8px rgba(0, 0, 0, .4); + box-shadow: none; } /* ------------------------------ @@ -241,7 +244,7 @@ html[data-theme="dark"] .ps-latest .ps-card__flip-btn:hover { color: var(--wp--preset--color--text); } -/* Tags */ +/* Tags - Red accent chips */ .ps-latest .ps-card__tags { margin-top: .55rem; display: flex; @@ -250,24 +253,27 @@ html[data-theme="dark"] .ps-latest .ps-card__flip-btn:hover { } .ps-latest .ps-chip { - font-size: .78rem; - border: 1px solid var(--wp--preset--color--border); - background: color-mix(in oklab, var(--wp--preset--color--surface) 85%, transparent); - color: var(--wp--preset--color--text); - border-radius: 999px; - padding: 2px 8px; + font-size: .75rem; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.05em; + border: none; + background: transparent; + color: var(--wp--preset--color--accent); + border-radius: 0; + padding: 4px 8px; white-space: nowrap; - line-height: 1.8; - transition: border-color .18s ease, background-color .18s ease; + line-height: 1.4; + transition: background-color .18s ease, color .18s ease; } .ps-latest .ps-chip:hover { - border-color: color-mix(in oklab, var(--wp--preset--color--border) 60%, var(--wp--preset--color--text)); - background: color-mix(in oklab, var(--wp--preset--color--surface) 60%, transparent); + background: var(--wp--preset--color--accent); + color: #ffffff; } .ps-latest .ps-chip--more { - opacity: .75 + opacity: .7; } /* ------------------------------ @@ -307,8 +313,8 @@ html[data-theme="dark"] .ps-latest .ps-card__flip-btn:hover { /* Polished skeleton shimmer */ .ps-latest .ps-skeleton { height: clamp(200px, 26vw, 260px); - border-radius: 12px; - border: 1px solid var(--wp--preset--color--border); + border-radius: 0; + border: none; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .6) 40%, @@ -318,7 +324,7 @@ html[data-theme="dark"] .ps-latest .ps-card__flip-btn:hover { var(--wp--preset--color--surface); background-size: 200% 100%, cover; animation: ps-shimmer 1.2s infinite; - box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .08); + box-shadow: none; } @keyframes ps-shimmer { diff --git a/wp-content/themes/postsecret/assets/css/style.css b/wp-content/themes/postsecret/assets/css/style.css index 5925b61..70710b6 100644 --- a/wp-content/themes/postsecret/assets/css/style.css +++ b/wp-content/themes/postsecret/assets/css/style.css @@ -1,6 +1,748 @@ -/* Base styles for the PostSecret theme */ +/* ======================================== + PostSecret Archival Gallery Theme + Mood: archival but alive, gallery-like, voyeuristic + Palette: strict black/white + PostSecret red + ======================================== */ + +/* ----- Typography: clean modern sans-serif ----- */ +:root { + --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + --font-display: var(--font-main); + + /* Archival spacing */ + --content-max-width: 1200px; + --breathing-room: clamp(2rem, 5vw, 4rem); + + /* PostSecret red - centralized color tokens */ + --ps-red-light: #a51818; /* Light mode red */ + --ps-red-dark: #E02A2A; /* Dark mode red */ + + /* Helpline section color */ + --ps-helpline-bg: #b0c7bf; /* Sage green */ +} + body { - font-family: sans-serif; + font-family: var(--font-main); margin: 0; padding: 0; + font-size: 16px; + line-height: 1.6; + background: var(--wp--preset--color--bg); + color: var(--wp--preset--color--text); +} + +/* ----- Headlines: large and confident ----- */ +h1, h2, h3, h4, h5, h6 { + font-family: var(--font-display); + font-weight: 700; + line-height: 1.2; + margin: 0 0 1rem 0; +} + +h1 { font-size: clamp(2rem, 4vw, 3.5rem); } +h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); } +h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); } + +/* ----- Eyebrow labels: small uppercase in red ----- */ +.ps-eyebrow { + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.1em; + color: var(--wp--preset--color--accent); + margin-bottom: 0.5rem; + display: block; +} + +/* ----- Body text: compact, readable, left-aligned ----- */ +p { + margin: 0 0 1rem 0; + text-align: left; +} + +/* ----- Narrow centered content column ----- */ +.ps-container, +.wp-block-group.alignfull { + max-width: var(--content-max-width); + margin-left: auto; + margin-right: auto; + padding-left: var(--breathing-room); + padding-right: var(--breathing-room); +} + +/* ----- Red up-right arrow motif ↗ ----- */ +.ps-arrow::after { + content: " ↗"; + color: var(--wp--preset--color--accent); + font-weight: bold; + font-size: 1.1em; + display: inline-block; + transition: transform 0.2s ease; +} + +.ps-arrow:hover::after { + transform: translate(2px, -2px); +} + +/* ----- Links: minimal styling ----- */ +a { + color: inherit; + text-decoration: none; + transition: color 0.2s ease; +} + +a:hover { + color: var(--wp--preset--color--accent); +} + +/* ----- Focus states: accessible ----- */ +*:focus-visible { + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 2px; +} + +/* ----- Form inputs: maintain borders ----- */ +input[type="text"], +input[type="email"], +input[type="password"], +input[type="search"], +input[type="tel"], +input[type="url"], +input[type="number"], +input[type="date"], +input[type="datetime-local"], +input[type="month"], +input[type="week"], +input[type="time"], +textarea, +select { + border: 1px solid var(--wp--preset--color--border); + padding: 0.5rem 0.75rem; + background: var(--wp--preset--color--bg); + color: var(--wp--preset--color--text); + font-family: inherit; + font-size: 1rem; + line-height: 1.5; + border-radius: 0; + transition: border-color 0.2s ease; +} + +input[type="text"]:focus, +input[type="email"]:focus, +input[type="password"]:focus, +input[type="search"]:focus, +input[type="tel"]:focus, +input[type="url"]:focus, +input[type="number"]:focus, +input[type="date"]:focus, +input[type="datetime-local"]:focus, +input[type="month"]:focus, +input[type="week"]:focus, +input[type="time"]:focus, +textarea:focus, +select:focus { + border-color: var(--wp--preset--color--accent); + outline: none; +} + +/* ======================================== + CATALOG CARD COMPONENT + Thumbnail left, content right, red arrow + ======================================== */ +.ps-catalog-card { + border: none; + padding: var(--breathing-room) 0; + transition: background-color 0.2s ease; +} + +.ps-catalog-card:hover { + background-color: var(--wp--preset--color--tint); +} + +.ps-catalog-card__link { + display: block; + color: inherit; + text-decoration: none; +} + +.ps-catalog-card__inner { + display: grid; + grid-template-columns: 200px 1fr; + gap: 2rem; + align-items: start; +} + +.ps-catalog-card__thumbnail { + position: relative; + aspect-ratio: 3/4; + overflow: hidden; + border-radius: 0; + background: transparent; +} + +.ps-catalog-card__thumbnail img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; + transition: transform 0.3s ease; +} + +.ps-catalog-card:hover .ps-catalog-card__thumbnail img { + transform: scale(1.05); +} + +.ps-catalog-card__content { + display: flex; + flex-direction: column; + gap: 0.75rem; +} + +.ps-catalog-card__title { + font-size: 1.25rem; + font-weight: 600; + line-height: 1.3; + margin: 0; + color: var(--wp--preset--color--text); +} + +.ps-catalog-card__facets { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + align-items: center; +} + +.ps-facet-chip { + display: inline-block; + padding: 0.25rem 0.75rem; + background: transparent; + border: none; + color: var(--wp--preset--color--accent); + font-size: 0.75rem; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.05em; + border-radius: 0; +} + +.ps-facet-chip--more { + opacity: 0.7; +} + +.ps-catalog-card__excerpt { + font-size: 0.95rem; + line-height: 1.5; + color: var(--wp--preset--color--muted); + margin: 0; +} + +/* Mobile responsive: stack vertically */ +@media (max-width: 768px) { + .ps-catalog-card__inner { + grid-template-columns: 1fr; + gap: 1rem; + } + + .ps-catalog-card__thumbnail { + aspect-ratio: 16/9; + max-width: 100%; + } +} + +/* Tablet: smaller thumbnail */ +@media (min-width: 769px) and (max-width: 1024px) { + .ps-catalog-card__inner { + grid-template-columns: 150px 1fr; + gap: 1.5rem; + } +} + +/* ======================================== + BUTTONS & CALLS TO ACTION + Minimal and confident + ======================================== */ +.ps-btn { + display: inline-block; + padding: 0.75rem 1.5rem; + font-size: 0.875rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.05em; + border: none; + background: transparent; + color: var(--wp--preset--color--text); + transition: all 0.2s ease; + cursor: pointer; +} + +.ps-btn:hover { + background: var(--wp--preset--color--text); + color: var(--wp--preset--color--bg); +} + +.ps-btn--primary { + color: var(--wp--preset--color--accent); +} + +.ps-btn--primary:hover { + background: var(--wp--preset--color--accent); + color: #ffffff; +} + +.ps-btn--solid { + background: var(--wp--preset--color--accent); + color: #ffffff; +} + +.ps-btn--solid:hover { + background: var(--ps-red-dark); +} + +/* ======================================== + SECTIONS & SPACING + Long scrollable panels with breathing room + ======================================== */ +.ps-section { + padding: clamp(3rem, 8vw, 6rem) 0; + border: none; +} + +.ps-section--tinted { + background: var(--wp--preset--color--tint); +} + +.ps-section__header { + margin-bottom: clamp(2rem, 5vw, 4rem); + text-align: left; +} + +.ps-section__title { + font-size: clamp(2rem, 4vw, 3rem); + margin-bottom: 0.5rem; +} + +/* ======================================== + FOOTER & HEADER + Utilitarian, small caps, negative space + ======================================== */ +.ps-header { + border: none; + width: 100%; +} + +/* Header inner container - constrained to max-width */ +.ps-header__inner { + max-width: var(--content-max-width); + margin-left: auto; + margin-right: auto; + padding-left: var(--breathing-room); + padding-right: var(--breathing-room); + width: 100%; + display: flex !important; + flex-wrap: nowrap !important; + justify-content: space-between !important; + align-items: center !important; + gap: var(--breathing-room); +} + +/* Header right group */ +.ps-header__right { + display: flex !important; + flex-wrap: nowrap !important; + align-items: center !important; + gap: 1.5rem; +} + +/* Responsive header */ +@media (max-width: 768px) { + .ps-header { + padding-left: 1rem !important; + padding-right: 1rem !important; + } + + .ps-header__inner { + flex-wrap: wrap !important; + gap: 1rem; + } + + .ps-header__logo { + flex: 0 0 auto; + } + + .ps-logo { + height: 40px !important; + width: auto !important; + } + + .ps-header__right { + flex-wrap: wrap !important; + gap: 0.75rem !important; + width: 100%; + justify-content: space-between !important; + } + + .ps-social { + gap: 0.5rem !important; + order: 1; + } + + .ps-social__link { + font-size: 1rem !important; + min-width: 32px; + min-height: 32px; + display: flex; + align-items: center; + justify-content: center; + } + + .ps-search { + order: 3; + flex: 1 1 100%; + width: 100%; + } + + .ps-search__input { + flex: 1; + width: 100% !important; + min-width: 0 !important; + } + + .ps-theme-toggle { + order: 2; + } +} + +.ps-footer { + background: var(--wp--preset--color--text); + color: var(--wp--preset--color--bg); + padding: 2rem var(--breathing-room); + font-size: 0.875rem; +} + +.ps-footer a { + color: var(--wp--preset--color--bg); + opacity: 0.8; + transition: opacity 0.2s ease; +} + +.ps-footer a:hover { + opacity: 1; + color: var(--wp--preset--color--accent); +} + +/* Dark mode footer (inverted) */ +html[data-theme="dark"] .ps-footer { + background: #ffffff; + color: #000000; +} + +html[data-theme="dark"] .ps-footer a { + color: #000000; +} + +html[data-theme="dark"] .ps-footer a:hover { + color: var(--wp--preset--color--accent); +} + +/* ======================================== + IMAGERY + Postcards dominate, generous, crisp + ======================================== */ +img { + max-width: 100%; + height: auto; + display: block; +} + +.ps-hero-collage { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 1rem; + margin: 2rem 0; +} + +.ps-hero-collage__item { + position: relative; + transform: rotate(-1deg); + transition: transform 0.3s ease; +} + +.ps-hero-collage__item:nth-child(even) { + transform: rotate(1deg); +} + +.ps-hero-collage__item:hover { + transform: rotate(0deg) scale(1.02); + z-index: 10; +} + +.ps-hero-collage__item img { + border: none; + box-shadow: none; +} + +/* ======================================== + HERO SECTION - Dark backdrop variant + ======================================== */ +/* Hero wrapper - no background */ +.ps-hero--dark { + background: none; + border-radius: 0; + padding-inline: clamp(12px, 4vw, 24px); +} + +/* Align columns vertically and clamp line-length */ +.ps-hero__copy { + display: flex; + align-items: center; +} + +.ps-hero__dek { + max-width: 34ch; /* readable line length */ +} + +/* Text color: red in dark mode, dark red in light mode */ +html[data-theme="dark"] .ps-hero__dek, +html[data-theme="dark"] .ps-hero__dek.has-text-color, +html[data-theme="dark"] p.ps-hero__dek, +html[data-theme="dark"] p.ps-hero__dek.has-text-color { + color: var(--ps-red-dark) !important; /* PostSecret red in dark mode */ +} + +html[data-theme="light"] .ps-hero__dek, +html[data-theme="light"] .ps-hero__dek.has-text-color, +html[data-theme="light"] p.ps-hero__dek, +html[data-theme="light"] p.ps-hero__dek.has-text-color, +.ps-hero__dek, +.ps-hero__dek.has-text-color, +p.ps-hero__dek, +p.ps-hero__dek.has-text-color { + color: var(--ps-red-light) !important; /* Dark red in light mode */ +} + +/* Visual: center the postcard, keep it crisp */ +.ps-hero__visual { + display: flex; + align-items: center; + justify-content: center; +} + +.ps-hero__card { + position: relative; + display: inline-block; + text-decoration: none; +} + +.ps-hero__img { + width: min(720px, 100%); /* responsive cap - bigger */ + height: auto; + display: block; + box-shadow: 0 10px 30px rgba(0, 0, 0, .45); + border-radius: 2px; +} + +/* Badge: treat as caption/link under the image */ +.ps-hero__badge { + display: inline-block; + margin-top: 10px; + font-size: 0.95rem; + color: var(--wp--preset--color--accent); + text-decoration: underline; + text-underline-offset: 2px; +} + +/* Reduce top/bottom density on small screens */ +@media (max-width: 720px) { + .ps-hero--dark { + padding-block: 40px; + } + .ps-hero__dek { + font-size: 1.1rem; + line-height: 1.4; + } +} + +/* ======================================== + HELPLINE SUPPORT BAND + Full-bleed soft green band, dark text, clear hierarchy + ======================================== */ +.ps-helpline-section { + background: var(--ps-helpline-bg) !important; + width: 100%; + margin: 0 !important; + padding: 0 !important; +} + +html[data-theme="light"] .ps-helpline-section { + background: var(--ps-helpline-bg) !important; +} + +html[data-theme="dark"] .ps-helpline-section { + background: var(--ps-helpline-bg) !important; +} + +/* Ensure inner WordPress group doesn't add padding */ +.ps-helpline-section > .wp-block-group { + padding-top: 0 !important; + padding-bottom: 0 !important; +} + +.ps-helpline-card { + display: grid; + grid-template-columns: 1fr 600px; + gap: 48px; + align-items: center; + padding-top: 72px !important; + padding-bottom: 72px !important; + padding-left: 0; + padding-right: 0; + color: #1a1a1a; +} + +.ps-helpline-card__content { + max-width: 65ch; + min-width: 0; +} + +.ps-helpline-card__visual { + width: 600px; + flex-shrink: 0; +} + +.ps-helpline-card__visual img, +.ps-helpline-card__visual img[src*="helpline.png"] { + width: 600px !important; + max-width: 600px !important; + height: auto !important; + display: block !important; +} + +.ps-helpline-card__title { + font-size: clamp(1.75rem, 3.5vw, 2.5rem); + font-weight: 700; + line-height: 1.2; + margin: 0 0 1.5rem 0; + color: #1a1a1a; + max-width: 32ch; + text-decoration: none; +} + +.ps-helpline-card__text { + font-size: 18px !important; + font-weight: 400 !important; + line-height: 1.7; + margin: 0 0 1rem 0; + color: #1a1a1a; + max-width: 65ch; +} + +.ps-helpline-card__text:last-of-type { + margin-bottom: 2rem; +} + +/* Inline links - red, underline on hover/focus */ +.ps-helpline-card__link { + color: var(--wp--preset--color--accent); + text-decoration: none; + font-weight: inherit; + transition: text-decoration 0.2s ease; +} + +.ps-helpline-card__link:hover, +.ps-helpline-card__link:focus { + text-decoration: underline; + text-underline-offset: 3px; + text-decoration-thickness: 2px; +} + +.ps-helpline-card__link:focus { + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 2px; +} + +/* Primary CTA link with red arrow */ +.ps-helpline-card__cta { + display: inline-block; + color: var(--wp--preset--color--accent); + font-size: 1.125rem; + font-weight: 700; + text-decoration: underline; + text-decoration-thickness: 3px; + text-underline-offset: 5px; + transition: all 0.2s ease; +} + +.ps-helpline-card__cta:hover { + text-decoration-thickness: 4px; + text-underline-offset: 6px; + color: var(--ps-red-dark); +} + +.ps-helpline-card__cta:focus { + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 3px; +} + +.ps-helpline-card__cta span { + color: var(--wp--preset--color--accent); + margin-left: 6px; + font-size: 1.1em; +} + +/* Hide WordPress external link icon */ +.ps-helpline-card__cta .external-link-icon, +.ps-helpline-card__cta svg, +.ps-helpline-card__cta img, +.ps-helpline-card__cta::after { + display: none !important; +} + +/* Also hide any auto-inserted icons */ +a.ps-helpline-card__cta .external-link-icon, +a.ps-helpline-card__cta svg, +a.ps-helpline-card__cta img { + display: none !important; + visibility: hidden !important; + width: 0 !important; + height: 0 !important; +} + +/* Responsive: stack on mobile */ +@media (max-width: 768px) { + .ps-helpline-card { + grid-template-columns: 1fr !important; + gap: 2rem !important; + } + + .ps-helpline-card__visual { + order: 2; + width: 100% !important; + max-width: 100% !important; + min-width: 0 !important; + } + + .ps-helpline-card__visual img { + width: 100% !important; + max-width: 100% !important; + min-width: 0 !important; + height: auto !important; + } + + .ps-helpline-card__content { + order: 1; + } +} + +/* ======================================== + REDUCED MOTION + ======================================== */ +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + } } \ No newline at end of file diff --git a/wp-content/themes/postsecret/assets/helpline.png b/wp-content/themes/postsecret/assets/helpline.png new file mode 100644 index 0000000..43af066 Binary files /dev/null and b/wp-content/themes/postsecret/assets/helpline.png differ diff --git a/wp-content/themes/postsecret/dark-overrides.css b/wp-content/themes/postsecret/dark-overrides.css index e8e7ee7..a6a3f72 100644 --- a/wp-content/themes/postsecret/dark-overrides.css +++ b/wp-content/themes/postsecret/dark-overrides.css @@ -1,22 +1,32 @@ -/* Override WP preset vars when user toggles themes */ +/* PostSecret red - centralized color tokens */ +:root { + --ps-red-light: #a51818; /* Light mode red */ + --ps-red-dark: #E02A2A; /* Dark mode red */ + --ps-helpline-bg: #b0c7bf; /* Sage green for helpline section */ +} + +/* Override WP preset vars when user toggles themes + PostSecret archival palette: black/white foundation + PostSecret red accent */ html[data-theme="dark"], :root[data-theme="dark"] { - --wp--preset--color--bg: #0b0d10 !important; - --wp--preset--color--surface: #12161b !important; - --wp--preset--color--text: #e6edf3 !important; - --wp--preset--color--muted: #a0acb8 !important; - --wp--preset--color--accent: #2fb3ff !important; - --wp--preset--color--border: #232a33 !important; + --wp--preset--color--bg: #000000 !important; + --wp--preset--color--surface: #0a0a0a !important; + --wp--preset--color--text: #ffffff !important; + --wp--preset--color--muted: #999999 !important; + --wp--preset--color--accent: var(--ps-red-dark) !important; /* PostSecret red */ + --wp--preset--color--border: #333333 !important; + --wp--preset--color--tint: #1a0a0b !important; /* soft red tint for sections */ } html[data-theme="light"], :root[data-theme="light"] { --wp--preset--color--bg: #ffffff !important; - --wp--preset--color--surface: #f6f8fa !important; - --wp--preset--color--text: #0b1220 !important; - --wp--preset--color--muted: #5d6b82 !important; - --wp--preset--color--accent: #0a84ff !important; - --wp--preset--color--border: #e6eaf0 !important; + --wp--preset--color--surface: #fafafa !important; + --wp--preset--color--text: #000000 !important; + --wp--preset--color--muted: #666666 !important; + --wp--preset--color--accent: var(--ps-red-light) !important; /* PostSecret red */ + --wp--preset--color--border: #e6e6e6 !important; + --wp--preset--color--tint: #fff5f5 !important; /* soft pink tint for sections */ } /* Basic surfaces - ensure immediate theme switching */ @@ -34,32 +44,31 @@ html[data-theme="light"] body { color: var(--wp--preset--color--text) !important; } -.wp-block-group, .wp-block-post, .wp-block-query .wp-block-post-template > li { - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); - border-radius: 8px; - padding: 1rem; - margin-bottom: 1rem; + background: var(--wp--preset--color--bg); + border: none; + border-radius: 0; + padding: clamp(2rem, 4vw, 3rem) 0; + margin-bottom: 0; } -/* Card hover effects */ +/* Card hover effects - subtle background tint */ .wp-block-post:hover, .wp-block-query .wp-block-post-template > li:hover { - border-color: var(--wp--preset--color--accent); - transform: translateY(-2px); - transition: all 0.2s ease; + background: var(--wp--preset--color--tint); + transition: background-color 0.2s ease; } -/* Image styling for secrets */ +/* Image styling for secrets - clean, no borders */ .wp-block-post-featured-image img { - border-radius: 4px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + border-radius: 0; + box-shadow: none; + border: none; } :root[data-theme="dark"] .wp-block-post-featured-image img { - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + box-shadow: none; } /* Muted text */ @@ -79,43 +88,32 @@ input:focus { /* Theme toggle button */ [data-ps-theme-toggle] { - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); + background: transparent; + border: none; color: var(--wp--preset--color--text); padding: 0.5rem; - border-radius: 4px; + border-radius: 0; cursor: pointer; transition: all 0.2s ease; } [data-ps-theme-toggle]:hover { - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); + background: transparent; + color: var(--wp--preset--color--accent); } -/* Secret archive specific styles */ +/* Secret archive - catalog layout */ .secret-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); - gap: 1.5rem; - margin: 2rem 0; + display: flex; + flex-direction: column; + gap: 0; + margin: 0; + max-width: 1200px; + margin: 0 auto; } .secret-card { - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); - border-radius: 8px; - overflow: hidden; - transition: all 0.2s ease; -} - -.secret-card:hover { - transform: translateY(-4px); - box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); -} - -:root[data-theme="dark"] .secret-card:hover { - box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); + /* Handled by .ps-catalog-card styles */ } .secret-tags { @@ -126,16 +124,22 @@ input:focus { } .secret-tag { - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); - padding: 0.25rem 0.5rem; - border-radius: 4px; + background: transparent; + border: none; + color: var(--wp--preset--color--accent); + padding: 0.25rem 0.75rem; + border-radius: 0; font-size: 0.75rem; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.05em; text-decoration: none; + transition: background-color 0.2s ease, color 0.2s ease; } .secret-tag:hover { - opacity: 0.8; + background: var(--wp--preset--color--accent); + color: #ffffff; } /* Accessibility improvements */ @@ -161,6 +165,11 @@ input:focus { /* ----------------------- * Header & Logo Styles * -----------------------*/ +.ps-header { + background: var(--wp--preset--color--bg); + color: var(--wp--preset--color--text); +} + .ps-header__logo { display: inline-block; line-height: 0; @@ -171,9 +180,68 @@ input:focus { opacity: 0.8; } +/* WordPress Navigation Block - respect theme colors */ +.wp-block-navigation { + background: transparent; +} + +.wp-block-navigation a { + color: var(--wp--preset--color--text); +} + +.wp-block-navigation a:hover { + color: var(--wp--preset--color--accent); +} + +/* Mobile overlay - respect theme */ +.wp-block-navigation__responsive-container.is-menu-open { + background: var(--wp--preset--color--bg) !important; + color: var(--wp--preset--color--text) !important; +} + +.wp-block-navigation__responsive-container-content { + background: var(--wp--preset--color--bg) !important; + padding-right: 2rem !important; + padding-left: 2rem !important; +} + +.wp-block-navigation__responsive-container-content > * { + padding-right: 1rem; +} + +/* Hamburger button colors */ +.wp-block-navigation__responsive-container-open, +.wp-block-navigation__responsive-container-close { + background: transparent !important; + color: var(--wp--preset--color--text) !important; + border: none !important; +} + +.wp-block-navigation__responsive-container-open:hover, +.wp-block-navigation__responsive-container-close:hover { + color: var(--wp--preset--color--accent) !important; +} + +/* Search block in navigation */ +.wp-block-navigation .wp-block-search__input { + background: var(--wp--preset--color--bg); + color: var(--wp--preset--color--text); + border: 1px solid var(--wp--preset--color--border); +} + +.wp-block-navigation .wp-block-search__button { + background: var(--wp--preset--color--text); + color: var(--wp--preset--color--bg); +} + +.wp-block-navigation .wp-block-search__button:hover { + background: var(--wp--preset--color--accent); + color: #ffffff; +} + .ps-logo { - height: 36px; - width: auto; + width: 172px; + height: 52px; transition: opacity 0.2s ease; } @@ -195,85 +263,151 @@ input:focus { color: var(--wp--preset--color--accent); } -/* Theme toggle button */ +/* Theme toggle button - Best practices */ .ps-theme-toggle .wp-block-button__link { - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); + background: transparent; + border: none; color: var(--wp--preset--color--text); - padding: 0.5rem; - border-radius: 4px; + padding: 0.625rem; + border-radius: 0; cursor: pointer; transition: all 0.2s ease; - font-size: 1rem; + font-size: 1.125rem; + display: flex; + align-items: center; + justify-content: center; + min-width: 44px; + min-height: 44px; + -webkit-appearance: none; + appearance: none; + text-decoration: none !important; } .ps-theme-toggle .wp-block-button__link:hover { - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); - border-color: var(--wp--preset--color--accent); + background: transparent; + color: var(--wp--preset--color--accent); + text-decoration: none !important; } -/* Search form styling */ -.ps-search { - display: flex; - align-items: center; - background: var(--wp--preset--color--surface); - border: 1px solid var(--wp--preset--color--border); - border-radius: 6px; - padding: 0; - overflow: hidden; - transition: all 0.2s ease; +.ps-theme-toggle .wp-block-button__link:focus { + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 2px; } -.ps-search:focus-within { - border-color: var(--wp--preset--color--accent); - box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.1); +.ps-theme-toggle .wp-block-button__link:active { + transform: scale(0.95); } -.ps-search__input { +/* Pressed state for accessibility */ +.ps-theme-toggle .wp-block-button__link[aria-pressed="true"] { + color: var(--wp--preset--color--accent); +} + +/* Search form styling - Best practices */ +.ps-search { + display: flex; + align-items: stretch; background: transparent; border: none; - padding: 0.5rem 0.75rem; + border-radius: 0; + padding: 0; + gap: 0; + position: relative; +} + +.ps-search__input { + background: var(--wp--preset--color--bg); + border: 1px solid var(--wp--preset--color--border); + border-right: none; + padding: 0.625rem 0.875rem; color: var(--wp--preset--color--text); font-size: 0.875rem; + font-family: inherit; + line-height: 1.5; width: 200px; + min-width: 150px; outline: none; + border-radius: 0; + transition: border-color 0.2s ease, box-shadow 0.2s ease; + -webkit-appearance: none; + appearance: none; +} + +.ps-search__input:hover { + border-color: var(--wp--preset--color--muted); +} + +.ps-search__input:focus { + border-color: var(--wp--preset--color--accent); + border-right: 1px solid var(--wp--preset--color--accent); + z-index: 1; + position: relative; } .ps-search__input::placeholder { color: var(--wp--preset--color--muted); - opacity: 1; + opacity: 0.7; } .ps-search__btn { - background: transparent; - border: none; - padding: 0.5rem 0.75rem; - color: var(--wp--preset--color--muted); + background: var(--wp--preset--color--bg); + border: 1px solid var(--wp--preset--color--border); + border-left: 1px solid var(--wp--preset--color--border); + padding: 0.625rem 0.875rem; + color: var(--wp--preset--color--text); cursor: pointer; display: flex; align-items: center; justify-content: center; - transition: color 0.2s ease; + min-width: 44px; + min-height: 44px; + transition: all 0.2s ease; + font-size: 1rem; + border-radius: 0; + -webkit-appearance: none; + appearance: none; } .ps-search__btn:hover { - color: var(--wp--preset--color--accent); + background: var(--wp--preset--color--accent); + color: #ffffff; + border-color: var(--wp--preset--color--accent); } .ps-search__btn:focus { outline: 2px solid var(--wp--preset--color--accent); - outline-offset: -2px; + outline-offset: 2px; + z-index: 2; + position: relative; } -/* Dark mode specific overrides for search */ -html[data-theme="dark"] .ps-search__input, -html[data-theme="dark"] .ps-search__btn { - color: var(--wp--preset--color--text); +.ps-search__btn:active { + transform: scale(0.98); +} + +/* Ensure input and button align properly */ +.ps-search__input:focus + .ps-search__btn { + border-left-color: var(--wp--preset--color--accent); } +/* Dark mode specific overrides for search */ html[data-theme="dark"] .ps-search__input::placeholder { color: var(--wp--preset--color--muted); + opacity: 0.7; +} + +/* Responsive search */ +@media (max-width: 768px) { + .ps-search__input { + width: 150px; + min-width: 120px; + font-size: 0.8125rem; + padding: 0.5rem 0.75rem; + } + + .ps-search__btn { + padding: 0.5rem 0.75rem; + } } /* Header responsive */ @@ -307,7 +441,7 @@ html[data-theme="dark"] .ps-search__input::placeholder { .ps-footer { background: var(--wp--preset--color--bg); color: var(--wp--preset--color--text); - border-top: 1px solid var(--wp--preset--color--border); + border-top: none; } /* Footer logo */ @@ -331,40 +465,39 @@ html[data-theme="dark"] .ps-search__input::placeholder { .ps-help-card { display: block; background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); + color: #ffffff; padding: 1rem 1.5rem; - border-radius: 8px; + border-radius: 0; text-decoration: none; font-weight: 500; text-align: center; transition: all 0.2s ease; - border: 2px solid var(--wp--preset--color--accent); + border: none; } .ps-help-card:hover { - background: var(--wp--preset--color--bg); - color: var(--wp--preset--color--accent); - transform: translateY(-1px); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + background: var(--ps-red-light); + color: #ffffff; + transform: none; + box-shadow: none; } html[data-theme="dark"] .ps-help-card:hover { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + box-shadow: none; } /* Footer theme toggle - smaller, outline style */ .ps-footer .ps-theme-toggle .wp-block-button__link { background: transparent; - border: 1px solid var(--wp--preset--color--border); + border: none; color: var(--wp--preset--color--text); padding: 0.375rem; - border-radius: 4px; + border-radius: 0; font-size: 0.875rem; } .ps-footer .ps-theme-toggle .wp-block-button__link:hover { - background: var(--wp--preset--color--surface); - border-color: var(--wp--preset--color--accent); + background: transparent; color: var(--wp--preset--color--accent); } @@ -384,174 +517,199 @@ html[data-theme="dark"] .ps-help-card:hover { /* ----------------------- * Share a Secret Section + * Big black band with sample confession in red italics * -----------------------*/ .ps-share-section { - display: flex; - justify-content: center; - margin: 0 auto; + background: var(--wp--preset--color--text); /* Black in light mode, white in dark */ + color: var(--wp--preset--color--bg); + padding: clamp(3rem, 6vw, 5rem) var(--breathing-room, 2rem); + text-align: center; + margin: 0; } -.ps-share-link { - display: inline-block; - line-height: 0; - transition: all 0.3s ease; - border-radius: 12px; - overflow: hidden; +.ps-share-section__eyebrow { + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.1em; + color: var(--wp--preset--color--accent); + margin-bottom: 1rem; } -.ps-share-link:hover { - transform: translateY(-4px); - box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); +.ps-share-section__title { + font-size: clamp(2rem, 4vw, 3rem); + font-weight: 700; + margin-bottom: 1rem; + color: var(--wp--preset--color--bg); } -html[data-theme="dark"] .ps-share-link:hover { - box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); +.ps-share-section__confession { + font-size: 1.25rem; + font-style: italic; + color: var(--wp--preset--color--accent); + margin: 1.5rem 0; + max-width: 600px; + margin-left: auto; + margin-right: auto; } -.ps-share-image { - width: 100%; - max-width: 880px; - height: auto; - border-radius: 12px; - transition: all 0.3s ease; - border: 1px solid var(--wp--preset--color--border); +.ps-share-link { + display: inline-block; + margin-top: 1.5rem; + transition: opacity 0.2s ease; } -.ps-share-link:hover .ps-share-image { - transform: scale(1.02); +.ps-share-link:hover { + opacity: 0.9; } .ps-share-link:focus { - outline: 3px solid var(--wp--preset--color--accent); + outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; - border-radius: 12px; } -/* Responsive sizing */ -@media (max-width: 1024px) { - .ps-share-image { - max-width: 100%; - border-radius: 8px; - } - - .ps-share-link { - border-radius: 8px; - } - - .ps-share-link:focus { - border-radius: 8px; - } +/* Dark mode: invert the band */ +html[data-theme="dark"] .ps-share-section { + background: #ffffff; + color: #000000; } -@media (max-width: 768px) { - .ps-share-link:hover { - transform: translateY(-2px); - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); - } - - html[data-theme="dark"] .ps-share-link:hover { - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); - } - - .ps-share-link:hover .ps-share-image { - transform: scale(1.01); - } +html[data-theme="dark"] .ps-share-section__title { + color: #000000; } /* ----------------------- - * Cutting-edge hero + * Hero - Layered collage of postcards + * Slightly askew, real artifacts vibe * -----------------------*/ .ps-hero { position: relative; - isolation: isolate; - border: 1px solid var(--wp--preset--color--border); - border-radius: 16px; - overflow: hidden; - background: radial-gradient(1200px 600px at 10% 10%, color-mix(in lab, var(--wp--preset--color--accent) 24%, transparent), transparent 60%), - radial-gradient(900px 500px at 90% 80%, color-mix(in lab, var(--wp--preset--color--accent) 12%, var(--wp--preset--color--surface)), var(--wp--preset--color--surface) 70%); + padding: clamp(3rem, 6vw, 5rem) 0; + background: var(--wp--preset--color--tint); + border: none; } -.ps-hero::after { - /* subtle grain for texture */ - content:""; - position:absolute; inset:0; - pointer-events:none; opacity:.12; - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); - mix-blend-mode: overlay; + +/* Override for dark variant - no background */ +.ps-hero--dark { + background: none !important; +} + +/* Force hero text colors regardless of WordPress inline styles */ +html[data-theme="dark"] .ps-hero--dark .ps-hero__dek, +html[data-theme="dark"] .ps-hero--dark .ps-hero__dek.has-text-color, +html[data-theme="dark"] .ps-hero--dark p.ps-hero__dek { + color: var(--ps-red-dark) !important; /* PostSecret red in dark mode */ +} + +html[data-theme="light"] .ps-hero--dark .ps-hero__dek, +html[data-theme="light"] .ps-hero--dark .ps-hero__dek.has-text-color, +html[data-theme="light"] .ps-hero--dark p.ps-hero__dek, +.ps-hero--dark .ps-hero__dek, +.ps-hero--dark .ps-hero__dek.has-text-color, +.ps-hero--dark p.ps-hero__dek { + color: var(--ps-red-light) !important; /* Dark red in light mode */ } -.ps-hero__visual { display:flex; align-items:center; justify-content:center; } +.ps-hero__visual { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 1.5rem; + max-width: var(--content-max-width, 1200px); + margin: 0 auto; + padding: 0 var(--breathing-room, 2rem); +} .ps-hero__card { position: relative; display: block; - border-radius: 14px; + border-radius: 0; overflow: hidden; - transform: rotate(-1.2deg); - border: 1px solid var(--wp--preset--color--border); - box-shadow: 0 10px 40px rgba(0,0,0,.08); - transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; - will-change: transform; + transform: rotate(-1deg); + border: none; + box-shadow: none; + transition: transform 0.3s ease; } -.ps-hero__card:hover { - transform: rotate(0deg) scale(1.02); - box-shadow: 0 20px 60px rgba(0,0,0,.14); - border-color: var(--wp--preset--color--accent); + +.ps-hero__card:nth-child(even) { + transform: rotate(0.8deg); } -.ps-hero__img { display:block; width:100%; height:auto; } -.ps-hero__badge { - position: absolute; - left: 16px; bottom: 16px; - padding: 6px 10px; - border-radius: 999px; - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); - font-weight: 600; font-size: .8rem; letter-spacing:.02em; - box-shadow: 0 6px 22px rgba(0,0,0,.18); +.ps-hero__card:hover { + transform: rotate(0deg) scale(1.03); + box-shadow: none; + z-index: 10; } -/* Responsive tweaks */ -@media (max-width: 960px) { - .ps-hero__card { transform: rotate(0); } +html[data-theme="dark"] .ps-hero__card { + box-shadow: none; } -/* Pill button */ -.ps-pill { - border-radius: 9999px !important; - font-weight: 700; - letter-spacing: .01em; - line-height: 1; - box-shadow: 0 10px 28px rgba(0,0,0,.18); - transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; +html[data-theme="dark"] .ps-hero__card:hover { + box-shadow: none; } -/* Use your theme accent + accessible focus */ -.ps-pill:focus-visible { - outline: 3px solid color-mix(in lab, var(--wp--preset--color--accent) 60%, transparent); - outline-offset: 2px; +.ps-hero__img { + display: block; + width: 100%; + height: auto; } -.ps-pill:hover { - transform: translateY(-1px); - box-shadow: 0 14px 36px rgba(0,0,0,.22); +/* Responsive: single column on mobile */ +@media (max-width: 768px) { + .ps-hero__visual { + grid-template-columns: 1fr; + } + + .ps-hero__card { + transform: rotate(0); + } } -/* Dark/light friendly fill using tokens */ -body:not(.is-light) .ps-pill { +/* Buttons - minimal and confident */ +.ps-pill, +.wp-block-button__link { + display: inline-block; + padding: 0.75rem 1.5rem; + font-size: 0.875rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.05em; + border: none; background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); + color: #ffffff; + transition: all 0.2s ease; + border-radius: 0; } -.is-light .ps-pill { - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); + +.ps-pill:hover, +.wp-block-button__link:hover { + background: var(--ps-red-light); + color: #ffffff; +} + +.ps-pill:focus-visible, +.wp-block-button__link:focus-visible { + outline: 2px solid var(--wp--preset--color--accent); + outline-offset: 2px; +} + +/* Outlined variant */ +.ps-pill--outline { + background: transparent; + color: var(--wp--preset--color--accent); } -/* Optional: subtle border for high-contrast themes */ -.ps-pill { border: 1px solid color-mix(in lab, var(--wp--preset--color--accent) 35%, transparent); } +.ps-pill--outline:hover { + background: var(--wp--preset--color--accent); + color: #ffffff; +} /* Motion respect */ @media (prefers-reduced-motion: reduce) { - .ps-pill { transition: none; } + .ps-pill, + .wp-block-button__link { + transition: none; + } } /* ----- Secret Metadata Display ----- */ @@ -562,10 +720,10 @@ body:not(.is-light) .ps-pill { } .ps-metadata-section { - background: var(--wp--preset--color--surface); - border-radius: 8px; + background: transparent; + border-radius: 0; padding: var(--wp--preset--spacing--40); - border: 1px solid var(--wp--preset--color--border); + border: none; } .ps-metadata-title { @@ -608,12 +766,15 @@ body:not(.is-light) .ps-pill { } .ps-tag { - background: var(--wp--preset--color--accent); - color: var(--wp--preset--color--bg); + background: transparent; + color: var(--wp--preset--color--accent); padding: 2px 8px; - border-radius: 12px; + border-radius: 0; font-size: 0.75rem; text-decoration: none; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.05em; } /* Status indicators */ @@ -745,9 +906,9 @@ html[data-theme="dark"] .ps-review-status.flagged { .ps-search-info { margin-bottom: var(--wp--preset--spacing--30); padding: var(--wp--preset--spacing--20); - background: var(--wp--preset--color--surface); - border-radius: 6px; - border: 1px solid var(--wp--preset--color--border); + background: transparent; + border-radius: 0; + border: none; } .ps-search-info p { @@ -798,3 +959,113 @@ html[data-theme="dark"] .ps-highlight { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--bg) !important; } + +/* ----- Helpline Section ----- */ +.ps-helpline-section { + background: var(--ps-helpline-bg) !important; +} + +html[data-theme="dark"] .ps-helpline-section { + background: var(--ps-helpline-bg) !important; +} + +html[data-theme="light"] .ps-helpline-section { + background: var(--ps-helpline-bg) !important; +} + +/* Force dark text on mint background in both themes */ +.ps-helpline-card, +html[data-theme="dark"] .ps-helpline-card, +html[data-theme="light"] .ps-helpline-card { + color: #1a1a1a !important; + padding: 72px 0 !important; +} + +/* Ensure WordPress group inside helpline doesn't add extra padding */ +.ps-helpline-section .wp-block-group { + padding-top: 0 !important; + padding-bottom: 0 !important; +} + +.ps-helpline-card__title, +html[data-theme="dark"] .ps-helpline-card__title, +html[data-theme="light"] .ps-helpline-card__title { + color: #1a1a1a !important; +} + +.ps-helpline-card__text, +html[data-theme="dark"] .ps-helpline-card__text, +html[data-theme="light"] .ps-helpline-card__text { + color: #1a1a1a !important; + font-size: 18px !important; + font-weight: 400 !important; +} + +/* Hide external link icon and emoji images - all variants */ +.ps-helpline-card__cta .external-link-icon, +.ps-helpline-card__cta svg, +.ps-helpline-card__cta img, +.ps-helpline-card__cta img.emoji, +.ps-helpline-card__cta::after, +a.ps-helpline-card__cta .external-link-icon, +a.ps-helpline-card__cta svg, +a.ps-helpline-card__cta img, +a.ps-helpline-card__cta img.emoji, +a[target="_blank"].ps-helpline-card__cta .external-link-icon, +a[target="_blank"].ps-helpline-card__cta svg, +a[target="_blank"].ps-helpline-card__cta img, +a[target="_blank"].ps-helpline-card__cta img.emoji { + display: none !important; + visibility: hidden !important; + width: 0 !important; + height: 0 !important; + opacity: 0 !important; +} + +/* Force grid layout on helpline card */ +.ps-helpline-card { + display: grid !important; + grid-template-columns: 1fr 600px !important; + gap: 48px !important; +} + +/* Force helpline visual image size */ +.ps-helpline-card__visual img { + width: 600px !important; + max-width: 600px !important; + min-width: 600px !important; + height: auto !important; +} + +.ps-helpline-card__visual { + width: 600px !important; + max-width: 600px !important; + min-width: 600px !important; +} + +/* Desktop only - ensure grid layout */ +@media (min-width: 769px) { + .ps-helpline-card { + display: grid !important; + grid-template-columns: 1fr 600px !important; + } +} + +/* Mobile - make image responsive */ +@media (max-width: 768px) { + .ps-helpline-card { + grid-template-columns: 1fr !important; + } + + .ps-helpline-card__visual { + width: 100% !important; + max-width: 100% !important; + min-width: 0 !important; + } + + .ps-helpline-card__visual img { + width: 100% !important; + max-width: 100% !important; + min-width: 0 !important; + } +} diff --git a/wp-content/themes/postsecret/footer.php b/wp-content/themes/postsecret/footer.php deleted file mode 100644 index 2c26aa4..0000000 --- a/wp-content/themes/postsecret/footer.php +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/wp-content/themes/postsecret/header.php b/wp-content/themes/postsecret/header.php deleted file mode 100644 index 50a7143..0000000 --- a/wp-content/themes/postsecret/header.php +++ /dev/null @@ -1,12 +0,0 @@ - -> - - - - - -> - - -
- diff --git a/wp-content/themes/postsecret/parts/card.php b/wp-content/themes/postsecret/parts/card.php index dc69359..2c1e26f 100644 --- a/wp-content/themes/postsecret/parts/card.php +++ b/wp-content/themes/postsecret/parts/card.php @@ -1,54 +1,62 @@ -
> - -
- - - -
- -
-

- -

-
-
- -
- + if ( ! empty( $all_facets ) ) : + ?> +
+ + + + 3 ) : ?> + + + +
+ + +
+ +
+
+ + diff --git a/wp-content/themes/postsecret/parts/footer.html b/wp-content/themes/postsecret/parts/footer.html index f75feea..1be50ce 100644 --- a/wp-content/themes/postsecret/parts/footer.html +++ b/wp-content/themes/postsecret/parts/footer.html @@ -1,49 +1,73 @@ - + diff --git a/wp-content/themes/postsecret/parts/header.html b/wp-content/themes/postsecret/parts/header.html index 48fe78f..a7a936c 100644 --- a/wp-content/themes/postsecret/parts/header.html +++ b/wp-content/themes/postsecret/parts/header.html @@ -1,73 +1,56 @@ - -
+ +
- - -
- + /> + + - - -
+ + + + + - - - - + - - - - + + - - -
- -
- -
- -
-
+
\ No newline at end of file diff --git a/wp-content/themes/postsecret/templates/front-page.html b/wp-content/themes/postsecret/templates/front-page.html index b7d3bcd..83c52e0 100644 --- a/wp-content/themes/postsecret/templates/front-page.html +++ b/wp-content/themes/postsecret/templates/front-page.html @@ -1,24 +1,25 @@ - -
+ +
- - -
- + +
+
- -
- -

+ + +

+ +

This is a living museum of anonymous postcards. Thousands of real secrets, no ads, just humanity.

+
@@ -115,4 +116,33 @@

+
+ +
+ +
+
+

Some secrets are too heavy to carry alone.

+

+ There's someone who cares. And they're ready to listen. You don't have to give your name. You can share as much or as little as you want. +

+

+ Talk by phone, text, or online chat. Whatever feels easiest. +

+ + Click here for free anonymous support + +
+
+ Helpline support +
+
+ +
+ +
+ + \ No newline at end of file