
/* ================================
   WRITOVRA — PREMIUM EDITORIAL UI
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f7f5f0;
    color: #202020;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* ================================
   GLOBAL
================================ */

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}


/* ================================
   HEADER
================================ */

.site-header {
    background: rgba(247, 245, 240, 0.94);
    border-bottom: 1px solid #e4dfd5;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #171717;
}

.logo::after {
    content: ".";
    color: #9b7b45;
}

.nav {
    display: flex;
    gap: 34px;
}

.nav a {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: 0.25s ease;
}

.nav a:hover {
    color: #9b7b45;
}


/* ================================
   HERO
================================ */

.hero {
    padding: 125px 0 120px;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(184, 151, 94, 0.12),
            transparent 30%
        ),
        #f7f5f0;
}

.hero .container {
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #9b7b45;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 500;
    color: #191919;
    margin-bottom: 30px;
}

.hero p {
    max-width: 610px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 38px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    background: #202020;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.25s ease;
}

.hero-button:hover {
    background: #9b7b45;
    transform: translateY(-2px);
}


/* ================================
   TOOLS SECTION
================================ */

.tools-section {
    padding: 110px 0;
    background: #fff;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.section-heading p {
    font-family: Arial, sans-serif;
    color: #777;
    font-size: 16px;
}


/* ================================
   TOOL GRID
================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tool-card {
    min-height: 290px;
    padding: 28px;
    border: 1px solid #e4dfd5;
    background: #faf9f6;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: #c6ad82;
    box-shadow: 0 18px 45px rgba(40, 32, 20, 0.08);
}

.tool-number {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #9b7b45;
    letter-spacing: 1px;
    margin-bottom: 55px;
}

.tool-card h3 {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.tool-card p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #777;
}

.tool-link {
    margin-top: auto;
    padding-top: 25px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #9b7b45;
}


/* ================================
   ABOUT
================================ */

.about-section {
    padding: 120px 0;
    background: #202020;
    color: #fff;
}

.about-content {
    max-width: 750px;
}

.about-section .eyebrow {
    color: #c9aa76;
}

.about-section h2 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -2.5px;
    font-weight: 500;
    margin-bottom: 28px;
}

.about-section p {
    font-family: Arial, sans-serif;
    max-width: 650px;
    font-size: 16px;
    line-height: 1.8;
    color: #c5c5c5;
}


/* ================================
   FOOTER
================================ */

.site-footer {
    background: #171717;
    border-top: 1px solid #333;
    padding: 28px 0;
}

.site-footer p {
    font-family: Arial, sans-serif;
    text-align: center;
    color: #858585;
    font-size: 12px;
}


/* ================================
   TOOL PAGES
================================ */

.tool-page {
    padding: 90px 0 110px;
    min-height: calc(100vh - 150px);
}

.tool-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.tool-heading h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -2.5px;
    margin-bottom: 18px;
}

.tool-heading p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #777;
}


/* ================================
   TOOL BOX
================================ */

.tool-box,
.calculator-box {
    background: #fff;
    border: 1px solid #e4dfd5;
    padding: 34px;
    margin-bottom: 22px;
    box-shadow: 0 12px 35px rgba(30, 25, 18, 0.04);
}

.tool-box label,
.calculator-box label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    min-height: 310px;
    padding: 18px;
    border: 1px solid #ddd7cc;
    background: #fcfbf8;
    resize: vertical;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 20px;
}

textarea:focus,
input:focus,
select:focus {
    border-color: #b89a69;
    box-shadow: 0 0 0 3px rgba(184, 154, 105, 0.10);
}


/* ================================
   INPUTS
================================ */

input,
select {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 18px;
    border: 1px solid #ddd7cc;
    background: #fcfbf8;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
}

select {
    cursor: pointer;
}


/* ================================
   BUTTONS
================================ */

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

button {
    border: none;
    padding: 12px 17px;
    background: #202020;
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    transition: 0.2s ease;
}

button:hover {
    background: #9b7b45;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #eeeae2;
    color: #333;
}

.secondary-btn:hover {
    background: #ddd5c8;
    color: #222;
}


/* ================================
   STATS
================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid #e7e1d7;
    margin-top: 25px;
}

.stat {
    padding: 20px 10px;
    text-align: center;
    border-right: 1px solid #e7e1d7;
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 23px;
    color: #222;
    margin-bottom: 4px;
}

.stat span {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}


/* ================================
   RESULT
================================ */

.result,
.prompt-result {
    padding: 20px;
    background: #f7f5f0;
    border-left: 3px solid #b89a69;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    min-height: 62px;
    white-space: pre-wrap;
}

.prompt-result {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.5;
    padding: 30px;
    margin-bottom: 20px;
}


/* ================================
   CALCULATORS
================================ */

.calculator-box h2 {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 25px;
}

.calculator-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.calculator-row input {
    margin-bottom: 0;
}

.calculator-row span {
    font-family: Arial, sans-serif;
    color: #777;
    font-size: 14px;
}

.calculator-box .result {
    margin-top: 22px;
}


/* ================================
   INFO BOX
================================ */

.info-box {
    background: #ebe6dc;
    border: 1px solid #ddd4c5;
    padding: 30px;
    margin-top: 30px;
}

.info-box h2 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 12px;
}

.info-box p {
    font-family: Arial, sans-serif;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 10px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat:nth-child(3) {
        border-right: none;
    }

}


@media (max-width: 700px) {

    .header-inner {
        min-height: 68px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 12px;
    }

    .hero {
        padding: 85px 0 80px;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .tools-section,
    .about-section {
        padding: 80px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-box,
    .calculator-box {
        padding: 22px;
    }

    .calculator-row {
        grid-template-columns: 1fr;
    }

    .calculator-row span {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(3) {
        border-right: 1px solid #e7e1d7;
    }

}


@media (max-width: 480px) {

    .logo {
        font-size: 23px;
    }

    .nav {
        gap: 11px;
    }

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

    .tool-heading h1 {
        font-size: 46px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

}


/* ================================
   TOOL SEARCH
================================ */

.tool-search {
    max-width: 620px;
    margin: 0 0 35px;
}

.tool-search input {
    width: 100%;
    margin: 0;
    padding: 17px 20px;
    border: 1px solid #ded8cd;
    background: #faf9f6;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: 0.25s ease;
}

.tool-search input::placeholder {
    color: #999;
}

.tool-search input:focus {
    border-color: #b89a69;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 154, 105, 0.10);
}



/* About / Information Pages */

.about-page {
    padding: 110px 20px;
    background: #f7f5f0;
}

.about-page-inner {
    max-width: 900px;
    margin: 0 auto;
}

.about-page-inner h1 {
    max-width: 780px;
    margin: 18px 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    line-height: 1.08;
    font-weight: 500;
    color: #202020;
}

.about-page-inner .lead {
    max-width: 720px;
    margin-bottom: 70px;
    font-size: 19px;
    line-height: 1.8;
    color: #666;
}

.about-content {
    max-width: 760px;
    padding-top: 45px;
    border-top: 1px solid #ded8cd;
}

.about-content h2 {
    margin: 45px 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
    color: #202020;
}

.about-content p,
.about-content li {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
}

.about-content ul {
    padding-left: 22px;
}

.about-content li {
    margin-bottom: 8px;
}

.home-button {
    display: inline-block;
    margin-top: 45px;
    padding: 15px 25px;
    background: #202020;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition: 0.25s ease;
}

.home-button:hover {
    background: #b89a69;
}

@media (max-width: 700px) {

    .about-page {
        padding: 75px 20px;
    }

    .about-page-inner h1 {
        font-size: 40px;
    }

    .about-page-inner .lead {
        font-size: 17px;
        margin-bottom: 50px;
    }

    .about-content h2 {
        font-size: 24px;
    }
}


/* Dark Mode */

body.dark-mode {
    background: #181818;
    color: #eeeeee;
}

body.dark-mode .site-header {
    background: rgba(24, 24, 24, 0.94);
    border-bottom-color: #333;
}

body.dark-mode .logo,
body.dark-mode nav a {
    color: #eeeeee;
}

body.dark-mode nav a:hover {
    color: #b89a69;
}

body.dark-mode .hero,
body.dark-mode .about-page {
    background: #181818;
}

body.dark-mode .hero h1,
body.dark-mode .about-page-inner h1,
body.dark-mode .about-content h2 {
    color: #eeeeee;
}

body.dark-mode .hero p,
body.dark-mode .about-page-inner .lead,
body.dark-mode .about-content p,
body.dark-mode .about-content li {
    color: #b8b8b8;
}

body.dark-mode .tools-section {
    background: #202020;
}

body.dark-mode .tool-card {
    background: #292929;
    border-color: #3a3a3a;
}

body.dark-mode .tool-card h3 {
    color: #eeeeee;
}

body.dark-mode .tool-card p {
    color: #b8b8b8;
}

body.dark-mode .tool-search input {
    background: #292929;
    border-color: #444;
    color: #eeeeee;
}

body.dark-mode .tool-search input::placeholder {
    color: #999;
}

body.dark-mode .about-content {
    border-top-color: #3a3a3a;
}

body.dark-mode .home-button {
    background: #eeeeee;
    color: #202020;
}

body.dark-mode .home-button:hover {
    background: #b89a69;
    color: #fff;
}


/* Theme Toggle */

.theme-toggle {
    width: 38px;
    height: 38px;
    margin-left: 18px;
    border: 1px solid #ded8cd;
    border-radius: 50%;
    background: #faf9f6;
    color: #202020;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s ease;
}

.theme-toggle:hover {
    border-color: #b89a69;
    color: #b89a69;
}

body.dark-mode .theme-toggle {
    background: #292929;
    border-color: #555;
    color: #b89a69;
}

@media (max-width: 700px) {
    .theme-toggle {
        width: 34px;
        height: 34px;
        margin-left: 8px;
    }
}
