:root {
    --ink: #241b1d;
    --ink-soft: #4f4245;
    --muted: #7b6d70;
    --line: #e5dbd5;
    --paper: #fbf6f1;
    --panel: #fffdf9;
    --soft: #f3ebe5;
    --accent: #8b4656;
    --accent-dark: #61303c;
    --bronze: #a8794f;
    --danger: #9e2f2f;
    --shadow: 0 22px 55px rgba(45, 27, 29, 0.12);
    --radius: 8px;
}

body.public-area {
    --ink: #f8efe8;
    --ink-soft: #e2c7ae;
    --muted: #b99a83;
    --line: rgba(221, 184, 148, 0.2);
    --paper: #100b0c;
    --panel: rgba(35, 24, 22, 0.92);
    --soft: #221616;
    --accent: #8b4656;
    --accent-dark: #b66a7d;
    --bronze: #d7aa7a;
    --danger: #c75b5b;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.62;
}

body.public-area {
    background:
        radial-gradient(circle at 78% 0%, rgba(131, 82, 55, 0.24), transparent 34rem),
        linear-gradient(180deg, #100b0c 0%, #170f10 48%, #0f0a0b 100%);
}

a {
    color: var(--accent-dark);
    text-underline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 1.02;
    margin: 0 0 14px;
}

h1 {
    font-size: 58px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 25px;
}

p {
    margin: 0 0 16px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px max(24px, calc((100vw - 1420px) / 2 + 24px));
    border-bottom: 1px solid rgba(86, 62, 58, 0.14);
    background: rgba(251, 246, 241, 0.94);
    backdrop-filter: blur(14px);
}

body.public-area .site-header {
    border-bottom-color: rgba(221, 184, 148, 0.14);
    background: rgba(15, 10, 11, 0.9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-footer {
    border-top: 1px solid rgba(86, 62, 58, 0.14);
    border-bottom: 0;
    margin-top: 76px;
    background: #201719;
    color: #f8efe8;
}

body.public-area .site-footer {
    border-top-color: rgba(221, 184, 148, 0.14);
    background: linear-gradient(180deg, #160f10, #0d090a);
}

.site-footer a {
    color: #f8efe8;
}

.brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 31px;
    text-decoration: none;
    color: var(--ink);
}

body.public-area .brand {
    color: #f6e4d0;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
}

.nav-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 16px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle span:nth-child(1) {
    transform: translate(-50%, -7px);
}

.nav-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
    transform: translate(-50%, 5px);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

nav a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 999px;
}

body.public-area nav a {
    color: rgba(248, 239, 232, 0.78);
}

nav a:hover {
    background: var(--soft);
    color: var(--accent-dark);
}

body.public-area nav a:hover {
    background: rgba(221, 184, 148, 0.12);
    color: #f4c9a1;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.language-selector select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    padding: 8px 28px 8px 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

body.public-area .language-selector select {
    background: rgba(30, 20, 19, 0.96);
    border-color: rgba(221, 184, 148, 0.24);
    color: #f8efe8;
}

.page {
    max-width: 1420px;
    margin: 0 auto;
    padding: 42px clamp(18px, 4vw, 44px);
}

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px;
    border-radius: var(--radius);
    background-image: linear-gradient(90deg, rgba(9, 6, 7, 0.96), rgba(19, 12, 12, 0.72) 38%, rgba(54, 34, 25, 0.05) 74%), url("../img/hero-silk.png");
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    color: #fffaf5;
}

body.public-area .hero {
    border: 1px solid rgba(221, 184, 148, 0.16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.launch-hero {
    min-height: 540px;
}

.hero-copy {
    max-width: 620px;
}

.hero h1 {
    font-size: 74px;
    max-width: 720px;
    text-wrap: balance;
}

.hero p {
    color: rgba(255, 250, 245, 0.86);
    font-size: 18px;
    max-width: 600px;
}

.hero .eyebrow {
    color: #dfba98;
}

.page-title {
    max-width: 760px;
    margin-bottom: 26px;
}

.page-title p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button,
button {
    appearance: none;
    border: 1px solid rgba(97, 48, 60, 0.22);
    background: var(--panel);
    color: var(--ink);
    padding: 11px 16px;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

body.public-area .button,
body.public-area button {
    border-color: rgba(221, 184, 148, 0.24);
    background: rgba(37, 25, 23, 0.9);
    color: #f8efe8;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    border-color: rgba(97, 48, 60, 0.38);
}

body.public-area .button:hover,
body.public-area button:hover {
    border-color: rgba(244, 201, 161, 0.46);
    background: rgba(52, 35, 31, 0.96);
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

body.public-area .button.primary {
    background: #8b4656;
    border-color: #8b4656;
    color: #fff;
    box-shadow: 0 12px 34px rgba(139, 70, 86, 0.34);
}

.button.primary:hover {
    background: var(--accent-dark);
}

body.public-area .button.primary:hover {
    background: #a4566a;
    border-color: #a4566a;
}

.button.saved,
button.saved {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.button.danger {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.band,
.narrow {
    max-width: 820px;
}

.editorial-band {
    margin-top: 34px;
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 16px 40px rgba(45, 27, 29, 0.07);
}

body.public-area .editorial-band {
    background: linear-gradient(135deg, rgba(45, 30, 26, 0.88), rgba(27, 18, 17, 0.94));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.feature-row article {
    padding: 30px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 16px 42px rgba(45, 27, 29, 0.06);
}

body.public-area .feature-row article {
    background: linear-gradient(155deg, rgba(42, 28, 25, 0.92), rgba(24, 16, 16, 0.94));
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.feature-row span {
    color: var(--bronze);
    font-weight: 800;
    font-size: 13px;
}

.feature-row p {
    color: var(--muted);
}

.seo-editorial {
    margin-top: 42px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(243, 235, 229, 0.88));
    box-shadow: 0 18px 44px rgba(45, 27, 29, 0.07);
}

body.public-area .seo-editorial {
    background:
        linear-gradient(135deg, rgba(48, 31, 27, 0.9), rgba(22, 15, 15, 0.94)),
        radial-gradient(circle at 92% 10%, rgba(215, 170, 122, 0.14), transparent 24rem);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.seo-editorial h2 {
    max-width: 760px;
}

.editorial-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    color: var(--ink-soft);
}

.map {
    width: 100%;
    height: 560px;
    border: 1px solid rgba(93, 62, 54, 0.16);
    margin: 22px 0 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--soft);
}

body.public-area .map {
    border-color: rgba(221, 184, 148, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.map-stage {
    position: relative;
}

.map-profile-overlay {
    position: absolute;
    top: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 800;
    width: min(520px, calc(100% - 44px));
    overflow: auto;
    border: 1px solid rgba(229, 219, 213, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 26px 70px rgba(18, 10, 11, 0.28);
    padding: 28px;
    backdrop-filter: blur(14px);
}

body.public-area .map-profile-overlay,
body.public-area .geo-prompt {
    border-color: rgba(221, 184, 148, 0.24);
    background: rgba(24, 16, 15, 0.94);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.map-profile-overlay[hidden] {
    display: none;
}

.geo-prompt {
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 790;
    max-width: 360px;
    padding: 18px;
    border: 1px solid rgba(229, 219, 213, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 18px 46px rgba(18, 10, 11, 0.22);
    backdrop-filter: blur(14px);
}

.geo-prompt p {
    margin: 0 0 12px;
    color: var(--ink);
    font-weight: 800;
}

body.public-area .geo-prompt p {
    color: var(--ink);
}

.geo-prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.map-profile-overlay .profile-header {
    padding-right: 42px;
}

.map-profile-overlay .thumb-grid {
    gap: 10px;
}

.map-overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.inline-form {
    margin: 22px 0 12px;
}

.profile-seo-link {
    display: inline-flex;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.map.small {
    height: 340px;
    box-shadow: 0 12px 34px rgba(45, 27, 29, 0.09);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.directory-support {
    grid-template-columns: 330px;
    justify-content: end;
}

.profile-panel,
.shortlist,
.profile-card {
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.94);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(45, 27, 29, 0.08);
}

body.public-area .profile-panel,
body.public-area .shortlist,
body.public-area .profile-card {
    background: linear-gradient(155deg, rgba(38, 25, 23, 0.94), rgba(22, 15, 15, 0.96));
    box-shadow: 0 22px 68px rgba(0, 0, 0, 0.34);
}

.profile-card {
    padding: 38px;
}

.profile-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.profile-header h1,
.profile-header h2 {
    margin: 0;
}

.profile-header p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 8px;
}

.text-block {
    white-space: normal;
    margin: 20px 0;
    color: var(--ink-soft);
}

.lead-copy {
    font-size: 18px;
    color: var(--ink);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.contact-grid a {
    border: 1px solid rgba(97, 48, 60, 0.2);
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
}

body.public-area .contact-grid a {
    border-color: rgba(221, 184, 148, 0.24);
    background: rgba(246, 228, 208, 0.08);
    color: #f4c9a1;
}

.portfolio {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.thumb {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #211719;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 10px 24px rgba(45, 27, 29, 0.14);
}

body.public-area .thumb {
    border-color: rgba(221, 184, 148, 0.2);
    background: #110b0c;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(13, 9, 10, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 24px;
}

.lightbox img {
    max-width: 96vw;
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(45, 27, 29, 0.07);
}

body.public-area .form {
    background: linear-gradient(155deg, rgba(40, 27, 24, 0.94), rgba(20, 14, 14, 0.96));
    box-shadow: 0 22px 68px rgba(0, 0, 0, 0.34);
}

.form.wide {
    max-width: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    color: var(--ink-soft);
}

label.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-card {
    max-width: 720px;
    margin-top: 22px;
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(243, 235, 229, 0.82));
}

body.public-area .upload-card {
    background: linear-gradient(135deg, rgba(55, 36, 30, 0.94), rgba(24, 16, 16, 0.96));
}

.upload-card input[type="file"] {
    padding: 14px;
    background: var(--panel);
    border-style: dashed;
}

.consent-check,
.upload-confirm {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    justify-content: start;
    align-items: flex-start;
    column-gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.consent-check input,
.upload-confirm input {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    accent-color: var(--accent);
    outline: 2px solid rgba(97, 48, 60, 0.42);
    outline-offset: 1px;
}

.consent-check a {
    color: var(--accent-dark);
    font-weight: 800;
}

body.public-area .consent-check a {
    color: #f4c9a1;
}

.upload-card .button.primary {
    justify-self: start;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px 13px;
    border-radius: 7px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

body.public-area input,
body.public-area textarea {
    background: rgba(13, 9, 10, 0.72);
    border-color: rgba(221, 184, 148, 0.24);
    color: #f8efe8;
}

body.public-area input::placeholder,
body.public-area textarea::placeholder {
    color: rgba(226, 199, 174, 0.56);
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(139, 70, 86, 0.22);
    border-color: var(--accent);
}

body.public-area input:focus,
body.public-area textarea:focus {
    outline-color: rgba(215, 170, 122, 0.26);
    border-color: rgba(244, 201, 161, 0.58);
}

.notice {
    border: 1px solid var(--line);
    padding: 14px 16px;
    margin-bottom: 18px;
    background: var(--panel);
    border-radius: var(--radius);
}

body.public-area .notice {
    background: rgba(35, 24, 22, 0.94);
}

.notice.success {
    border-color: #73a577;
}

.notice.error {
    border-color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1730px;
}

.admin-page {
    width: 95vw;
    max-width: none;
    margin-left: calc((100% - 95vw) / 2);
    margin-right: calc((100% - 95vw) / 2);
}

.admin-toolbar {
    display: flex;
    align-items: end;
    gap: 14px;
    margin: 18px 0;
    max-width: 520px;
}

.admin-table {
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    padding: 7px;
}

.admin-table .button,
.admin-table button {
    font-size: 12px;
    padding: 7px 9px;
}

.admin-table th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.admin-table th[data-sort]::after {
    content: "^";
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px;
}

.admin-table th.sort-asc::after {
    content: "ASC";
}

.admin-table th.sort-desc::after {
    content: "DESC";
}

.admin-thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
}

.admin-thumb-strip .thumb {
    flex: 0 0 200px;
    width: 200px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    vertical-align: top;
}

th {
    background: var(--soft);
}

.admin-image-row {
    background: #fff;
}

.list-row,
.saved-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.newsletter-row {
    align-items: flex-start;
}

.newsletter-meta,
.newsletter-progress span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.newsletter-progress {
    text-align: right;
    min-width: 280px;
}

.footer-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-search input {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.legal {
    font-size: 17px;
}

.legal-content h2 {
    margin-top: 34px;
}

.legal-content h3 {
    margin-top: 24px;
}

.legal-content ul {
    margin: 0 0 18px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 7px;
}

@media (max-width: 900px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    .site-header,
    .site-footer,
    .split,
    .profile-header,
    .footer-search,
    .language-selector {
        display: grid;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        display: grid;
        gap: 8px;
        padding-top: 10px;
    }

    body.nav-ready .site-nav:not(.is-open) {
        display: none;
    }

    .site-nav a {
        border: 1px solid var(--line);
        padding: 12px 14px;
        background: var(--panel);
    }

    body.public-area .site-nav a {
        background: rgba(35, 24, 22, 0.92);
    }

    .language-selector {
        grid-column: 1 / -1;
    }

    .hero {
        min-height: 560px;
        padding: 34px 26px;
        background-position: center right;
    }

    .hero h1 {
        font-size: 48px;
    }

    .split,
    .form-grid,
    .feature-row,
    .editorial-columns {
        grid-template-columns: 1fr;
    }

    .map {
        height: 430px;
    }

    .map-profile-overlay {
        top: 14px;
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        padding: 22px;
    }

    .geo-prompt {
        left: 14px;
        right: 14px;
        top: 14px;
        max-width: none;
    }

    .profile-card,
    .profile-panel,
    .shortlist,
    .form {
        padding: 22px;
    }
}
