@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Victor Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/VictorMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Lazenby Computer';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Lazenby-Computer.ttf') format('truetype');
}

:root {
    /* Warm, light palette */
    --page-bg: #F7F3EB;
    --header-bg: transparent;
    --text: #302A25;
    --muted: #766B60;
    --footer-border: #E5DDD1;
    --header-color: #eac70f;

    /* Layout */
    --page-gutter: 72px;
    --header-height: 150px;
    --container-width: 1080px;
    --draw-border: rgba(25, 25, 25, 0.5);
}


* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, Victor Mono, Lazenby Computer;
}

.main-nav a,
.content-body h2,
.content-body h3,
.content-body h4,
line-number{
    font-family: Victor Mono;
}

.content-body p,
form input,
textarea {
    font-family: Inter;
}

/* Shared centred container */
.header-inner,
.footer-inner,
.content {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* HEADER */
.site-header {
    width: 100%;
    height: var(--header-height);
    flex-shrink: 0;
    background: var(--header-bg);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    background-color: var(--header-color);
    justify-content: space-between;

}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: auto;
    height: 80px;
    max-width: 220px;
    object-fit: contain;
}

/* NAVIGATION */
.main-nav {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #96674A;
}

/* MAIN CONTENT */
.content {
    padding-top: 25px;
    padding-bottom: 25px;
    flex: 1;
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    min-height: 400px;
}

.content-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content-para {
    display: grid;
    grid-template-columns: 40px 1px minmax(0, 1fr);
    column-gap: 14px;
    align-items: stretch;
}

.content-para p {
    text-indent: 30px;
}

.content-heading {
    display: grid;
    grid-template-columns: 40px 1px minmax(0, 1fr);
    column-gap: 14px;
    align-items: stretch;
    font-weight: bold;
    font-size: 1.4em;
}

.line-number {
    grid-column: 1;
    color: #80796F;
    font-size: 12px;
    line-height: 1.5;
    padding-top: 12px;
}

.content-row::before,
.content-heading::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    width: 1px;
    height: 100%;
    background: #E5DDD1;

}

.content-body {
    grid-column: 3;
    min-width: 0;
    max-width: 800px;

}
.content-body hr {
    height: 1px;
    border: none;
    background-color: var(--draw-border);
}

.content-body p,
.content-body h2,
.content-body h3,
.content-body h4{
    margin: 5px 0 5px 0;
}

.content-body h4{
    font-size: 1.2em;
}

/* FOOTER */
.site-footer {
    width: 100%;
    min-height: 90px;
    border-top: 1px solid var(--footer-border);
}

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


.cap-body{
    margin-left: 100px;
    display: grid;
    gap: 12px;
    text-align: justify;

}
.cap-body p {
    text-indent: 0px !important;
}

.illustration,
.illustration-extra{
    display: grid;
    align-items: center;
    padding: 10px 25px 10px 25px;
    background-color: var(--footer-border);
}

.illustration {
    justify-content: center;
}

/* TABLE DRAWING*/
.fade-table {
    max-width: 450px;
    width: 450px;
    color: var(100,100,100,0.5);
    border-collapse: collapse;
    font-family: 'Lazenby Computer', monospace;
    mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
    max-height: 50px;
}

.fade-table td {
    grid-column: 3 / 5;
    padding: 4px 8px;
    border: 1px solid var(--draw-border);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


/* API DRAWING */
.api {
    justify-content: none;
    display: grid;
    grid-template-columns: 85px 1fr 85px;
    align-items: center;
    color: var(--draw-border);
}

.endpoint {
    height: 50px;
    border: 1px solid currentColor;
    padding: 14px 10px;
    display: flex;
    color: #555;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Lazenby Computer', monospace;
}

.endpoint i {
    display: block;
    height: 1px;
    background: currentColor;
}

.connection {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.request,
.response {
    height: 1px;
    width: 100%;
    background: currentColor;
    position: relative;
}

.request::after,
.response::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    top: -3px;
}

.request::after {
    right: 0;
    transform: rotate(45deg);
}

.response::before {
    left: 0;
    transform: rotate(225deg);
}


/* WORDPRESS DRAWING  */
.editor-block {
    width: 450px;
    max-width: 650px;
    max-height: 50px;
}

.block-content {
    display: grid;
    max-height: 40px;
    border: 1px solid var(--draw-border);
    background: transparent;
    box-sizing: border-box;
    justify-content: center;
}

.block-content img {
    max-height: 35px;
}

.block-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--draw-border);
}

.block-divider::before,
.block-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--draw-border);
}

.block-divider span {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

/* FORM */
form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

form input,
textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--footer-border);
    font-size: 1em;

}

.field {
    display: flex;
    margin-left: 100px;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
    padding: 10px;
}

.field input {
    align-self: flex-end;
}

textarea {
    field-sizing: content;
    min-height: 1.5em;
    max-height: 200px;
    width: 50%;
    overflow: scroll;
    resize: false;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
    scrollbar-width: none;
}

button {
    width: 50%;
    min-width: 250px;
    margin-top: 10px;
    font-size: 1em;
    padding: 5px;
    background-color: var(--draw-border);
    border: none;
}

button:hover{
    background-color: #ccc;
}

button:active{
    background-color: #999;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    :root {
        --page-gutter: 12px;
        --header-height: 110px;
    }
    .header-inner {
        justify-content: center;
        flex-direction: column;
    }
    .site-logo {
        font-size: 24px;
    }
    .site-logo img {
        height: 60px;
        max-width: 150px;
    }
    .content-para {
        grid-template-columns: 20px 1px minmax(0, 1fr);
    }
    .content-body h3, content-body h4 {
        margin-left: -20px;
    }
    .content-heading::before {
        margin-left: -20px;
    }
    .main-nav {
        display: none;
    }
    .cap-body {
        margin-left: 20px;
    }
    .illustration {
        width: 250px;
    }
    .editor-block{
        width: 230px;
    }
    .fade-table {
        width: 230px;
    }
    textarea {
        width: 230px;
    }
    .field {
        margin-left: 5px;
    }
    .footer-inner {
        justify-content: center;
    }
}
