/*
Theme Name: Wrumer Theme
Author: Wrumer
Version: 2.2
*/

:root {
    --bg: #0b0d0c;
    --surface: #131715;
    --surface-raised: #191e1b;
    --surface-soft: #202621;
    --border: #313a33;
    --border-strong: #465247;
    --text: #f4f1e8;
    --muted: #a9b0a8;
    --gold: #d5a84c;
    --gold-light: #f0d28a;
    --green: #5f9b73;
    --green-light: #9ac4a8;
    --danger: #e18878;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-hero {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    background-color: #101512;
    background-image: url("/wp-content/themes/wrumer-theme/assets/wrumer-hero.webp");
    background-position: center 48%;
    background-size: cover;
    border-bottom: 1px solid var(--border);
}

.site-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(4, 7, 6, 0.58);
}

.site-hero-compact {
    min-height: 310px;
    background-position: center 43%;
}

.site-hero-compact::before {
    background: rgba(4, 7, 6, 0.68);
}

.site-nav {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(244, 241, 232, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    border: 1px solid rgba(240, 210, 138, 0.6);
    background: rgba(11, 13, 12, 0.72);
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    padding: 25px 0 22px;
    color: #d7dbd4;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.hero-content {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 92px 0 74px;
}

.compact-content {
    padding-top: 58px;
    padding-bottom: 58px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    color: #fffdf7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 62px;
    line-height: 1.03;
    text-wrap: balance;
}

.compact-content h1 {
    font-size: 44px;
}

.hero-copy {
    max-width: 610px;
    margin: 22px 0 30px;
    color: #d8ddd7;
    font-size: 18px;
}

.primary-action {
    min-height: 48px;
    padding: 12px 17px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--gold);
    color: #15130d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
    border-color: var(--gold-light);
    background: var(--gold-light);
    transform: translateY(-2px);
}

.tools-section,
.tool-page {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.tools-section {
    padding: 66px 0 76px;
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.section-heading h2,
.workspace-panel h2 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.2;
}

.section-heading > p {
    max-width: 410px;
    margin: 0 0 3px;
    color: var(--muted);
}

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

.tool-card {
    position: relative;
    min-height: 210px;
    padding: 28px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    align-items: start;
    gap: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tool-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
}

.tool-card-gold::before {
    background: var(--gold);
}

.tool-card-green::before {
    background: var(--green);
}

.tool-card:hover,
.tool-card:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-raised);
    transform: translateY(-3px);
}

.tool-symbol {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213, 168, 76, 0.5);
    border-radius: 6px;
    background: rgba(213, 168, 76, 0.1);
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 800;
}

.tool-card-green .tool-symbol,
.tool-symbol-green {
    border-color: rgba(95, 155, 115, 0.55);
    background: rgba(95, 155, 115, 0.12);
    color: var(--green-light);
}

.tool-card-body {
    display: flex;
    flex-direction: column;
}

.tool-kicker {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.tool-card-body strong {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.2;
}

.tool-card-body > span:last-child {
    color: var(--muted);
    font-size: 15px;
}

.card-arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 20px;
}

.tool-page {
    padding: 34px 0 74px;
}

.back-link {
    width: fit-content;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--gold-light);
}

.calculator-layout,
.loot-layout {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.calculator-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.loot-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.workspace-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-heading,
.panel-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-heading {
    margin-bottom: 30px;
}

.panel-heading-row {
    justify-content: space-between;
}

.tool-symbol-small {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    font-size: 15px;
}

.workspace-panel h2 {
    font-size: 27px;
}

.field-label {
    margin-bottom: 8px;
    display: block;
    color: #dce0db;
    font-size: 14px;
    font-weight: 700;
}

.level-input,
.loot-input {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: #0f1311;
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.level-input:focus,
.loot-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(213, 168, 76, 0.13);
}

.level-input {
    height: 86px;
    padding: 14px 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;
    text-align: center;
}

.level-input::placeholder,
.loot-input::placeholder {
    color: #737c75;
}

.result-panel {
    background: var(--surface-raised);
}

.range-grid {
    margin: 26px 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.range-item {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.range-item + .range-item {
    border-left: 1px solid var(--border);
}

.range-item span {
    color: var(--muted);
    font-size: 13px;
}

.range-item strong {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.1;
}

.result-note,
.empty-state,
.error-state,
.success-state {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.loot-input {
    min-height: 390px;
    padding: 18px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
}

.text-button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.text-button:hover,
.text-button:focus-visible {
    border-color: var(--border-strong);
    color: var(--text);
}

.loot-result-panel {
    background: var(--surface-raised);
}

.loot-result {
    margin-top: 24px;
}

.loot-summary {
    display: grid;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.loot-summary > div {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.loot-summary > div + div {
    border-top: 1px solid var(--border);
}

.loot-summary span {
    color: var(--muted);
    font-size: 13px;
}

.loot-summary strong {
    color: var(--text);
    font-size: 15px;
}

.transfer-list {
    margin-top: 22px;
}

.transfer-row {
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.transfer-row span {
    color: var(--muted);
}

.transfer-row span strong {
    color: var(--text);
}

.transfer-row b {
    flex: 0 0 auto;
    color: var(--green-light);
}

.copy-transfer {
    min-width: 68px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.copy-transfer:hover,
.copy-transfer:focus-visible {
    border-color: var(--gold);
    color: var(--gold-light);
}

.copy-transfer.is-copied {
    border-color: var(--green);
    background: rgba(95, 155, 115, 0.12);
    color: var(--green-light);
}

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

.success-state {
    color: var(--green-light);
}

.site-footer {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid var(--border);
}

.brand-small {
    font-size: 14px;
}

.brand-small .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 16px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 860px) {
    .site-hero-home {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .compact-content h1 {
        font-size: 40px;
    }

    .tool-grid,
    .calculator-layout,
    .loot-layout {
        grid-template-columns: 1fr;
    }

    .loot-result-panel {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .site-nav {
        width: min(calc(100% - 28px), var(--max-width));
        min-height: 66px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        padding: 22px 0 19px;
        font-size: 12px;
    }

    .nav-links a:first-child {
        display: none;
    }

    .brand {
        gap: 8px;
        font-size: 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 18px;
    }

    .site-hero-home {
        min-height: 460px;
    }

    .site-hero-compact {
        min-height: 260px;
    }

    .hero-content {
        width: min(calc(100% - 28px), var(--max-width));
        padding-top: 72px;
        padding-bottom: 54px;
    }

    .compact-content {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .compact-content h1 {
        font-size: 34px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .tools-section,
    .tool-page {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .tools-section {
        padding: 50px 0 58px;
    }

    .tool-page {
        padding-top: 24px;
        padding-bottom: 54px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .tool-card {
        min-height: 0;
        padding: 22px;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
    }

    .tool-symbol {
        width: 54px;
        height: 54px;
        font-size: 16px;
    }

    .tool-card-body strong {
        font-size: 22px;
    }

    .card-arrow {
        display: none;
    }

    .workspace-panel {
        padding: 22px;
    }

    .panel-heading {
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .panel-heading-row {
        gap: 14px;
    }

    .panel-title-group {
        align-items: flex-start;
    }

    .workspace-panel h2 {
        font-size: 24px;
    }

    .level-input {
        height: 76px;
        font-size: 32px;
    }

    .range-item {
        padding: 20px 12px;
    }

    .range-item strong {
        font-size: 30px;
    }

    .loot-input {
        min-height: 330px;
    }

    .transfer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 4px 10px;
    }

    .transfer-row > span,
    .transfer-row > b {
        grid-column: 1;
    }

    .copy-transfer {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .site-footer {
        width: min(calc(100% - 28px), var(--max-width));
        padding: 24px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
