/*
Theme Name: Shark Registry
Theme URI: https://example.org/shark-registry-theme
Author: Marine Forensics
Description: Companion theme for the Shark Bite Forensic Registry plugin. A beautiful, sober scientific charter for marine bite-mark research — oceanic petrol/teal palette, modern typography, and an integrated public registry. Inspired by an integrated shark-risk science identity (Understand · Prevent · Protect). Requires the Shark Bite Forensic Registry plugin for the [shark_bite_registry] and [shark_bite_workspace] shortcodes.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shark-registry
*/

:root {
	--ink:      #0a2029;   /* near-black petrol */
	--sea:      #0e3a49;   /* deep sea */
	--sea-2:    #124a5c;
	--paper:    #f2f6f6;   /* page background */
	--surface:  #ffffff;
	--accent:   #14a39c;   /* teal */
	--accent-2: #5ec9c3;   /* light teal */
	--sand:     #e7dfce;   /* warm neutral hairline */
	--muted:    #5e7c88;
	--muted-2:  #8aa6b0;
	--line:     rgba(10, 32, 41, .10);
	--line-2:   rgba(255, 255, 255, .12);
	--warn:     #c8863c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, .sr-brand, .sr-kicker {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.sr-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-kicker {
	font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
	font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
	color: var(--accent); font-weight: 500;
}

/* ---------------- header ---------------- */
.sr-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 32, 41, .86);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line-2);
}
.sr-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.sr-brand { font-size: 19px; color: #fff; display: flex; align-items: center; gap: 10px; }
.sr-brand:hover { text-decoration: none; }
.sr-brand .mark {
	width: 26px; height: 26px; border-radius: 6px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	display: inline-block; position: relative;
}
.sr-brand .mark::after {
	content: ""; position: absolute; inset: 6px 5px;
	background: #0a2029; clip-path: polygon(50% 0, 100% 100%, 0 100%);
	opacity: .55;
}
.sr-brand span { color: var(--accent-2); }
.sr-nav { display: flex; gap: 26px; }
.sr-nav a { color: var(--muted-2); font-size: 14px; font-weight: 500; }
.sr-nav a:hover { color: #fff; text-decoration: none; }

/* ---------------- hero ---------------- */
.sr-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(120% 90% at 15% -10%, var(--sea-2) 0%, var(--sea) 45%, var(--ink) 100%);
	color: #fff;
	padding: 96px 0 88px;
}
.sr-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: repeating-linear-gradient(180deg, transparent 0 58px, rgba(255,255,255,.035) 58px 59px);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
	        mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
	pointer-events: none;
}
.sr-hero .sr-wrap { position: relative; }
.sr-hero h1 { font-size: clamp(34px, 5.5vw, 60px); margin: 18px 0 0; max-width: 900px; }
.sr-hero h1 em { font-style: normal; color: var(--accent-2); }
.sr-hero p.lede {
	font-size: clamp(17px, 2vw, 20px); color: #cfe0e2; max-width: 640px; margin: 22px 0 0;
}
.sr-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.sr-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: 15px;
	font-family: 'Space Grotesk', sans-serif; cursor: pointer; transition: transform .12s, background .18s, border-color .18s;
}
.sr-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sr-btn-primary { background: var(--accent); color: #04211f; }
.sr-btn-primary:hover { background: var(--accent-2); }
.sr-btn-ghost { border: 1px solid var(--line-2); color: #fff; }
.sr-btn-ghost:hover { border-color: var(--accent-2); }

/* ---------------- approach triptych ---------------- */
.sr-approach { background: var(--ink); color: #fff; padding: 0 0 6px; }
.sr-triptych {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
	background: var(--line-2); border-radius: 12px; overflow: hidden;
	transform: translateY(-44px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
@media (max-width: 760px) { .sr-triptych { grid-template-columns: 1fr; transform: translateY(-30px); } }
.sr-step { background: var(--sea); padding: 30px 28px; }
.sr-step .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-2); letter-spacing: .2em; }
.sr-step h3 { font-size: 22px; margin: 10px 0 8px; color: #fff; }
.sr-step p { color: #b7ccd0; font-size: 14.5px; margin: 0; }

/* ---------------- sections ---------------- */
.sr-main { padding: 20px 0 80px; }
.sr-section { padding: 40px 0; }
.sr-section h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 8px 0 14px; }
.sr-section .intro { color: var(--muted); max-width: 640px; font-size: 17px; margin: 0 0 26px; }

.sr-content { max-width: 760px; }
.sr-content h2 { font-size: 26px; margin-top: 1.6em; }
.sr-content p { margin: 0 0 1.1em; }

/* fallback notice */
.sr-notice {
	border: 1px solid var(--line); border-left: 4px solid var(--accent);
	border-radius: 10px; background: var(--surface);
	padding: 24px 26px; max-width: 660px;
}
.sr-notice h2 { margin: 0 0 8px; font-size: 19px; }
.sr-notice p { margin: 0; color: var(--muted); }

/* ---------------- footer ---------------- */
.sr-footer { background: var(--ink); color: var(--muted-2); padding: 44px 0 54px; }
.sr-footer .sr-brand { font-size: 17px; margin-bottom: 12px; }
.sr-footer p { font-size: 13px; max-width: 620px; margin: 0; }

/* ======================================================================
   Registry cards from the plugin — themed to the charter
   (theme CSS loads after the plugin CSS, so these win)
   ====================================================================== */
.sr-main .sbf-public-note { color: var(--muted); font-size: 14px; }
.sr-main .sbf-public-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.sr-main .sbf-card {
	border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
	box-shadow: 0 1px 0 rgba(10,32,41,.04); transition: transform .14s, box-shadow .14s;
}
.sr-main .sbf-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(10,32,41,.35); }
.sr-main .sbf-card-img { height: 180px; }
.sr-main .sbf-card-body { padding: 16px 18px; }
.sr-main .sbf-card-ref { color: var(--muted-2); }
.sr-main .sbf-card-sp { font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.sr-main .sbf-badge {
	border-radius: 100px; padding: 4px 11px; font-size: 11px; letter-spacing: .03em;
}
.sr-main .sbf-ok { color: #0c6b64; border-color: var(--accent); background: #e6f6f4; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
