/* =========================================================
   ABIESWEB — typography + base styling
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Patrick+Hand&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');


/* -------------------------
   VARIABLES
------------------------- */

:root {
    --bg: #172019;
    --bg-light: #202a20;

    --green: #65745c;
    --green-dark: #303c31;

    --brown: #665446;

    --cream: #e9e3d5;
    --grey: #a7a99f;
    --dark-grey: #6e756b;

    --gold: #b49a5d;

    --line: rgba(233, 227, 213, .28);
}


/* -------------------------
   RESET
------------------------- */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

body {
    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            ellipse at top,
            #273328 0%,
            var(--bg) 55%
        );

    color: var(--cream);

    /*
       Small mono font is the closest overall
       treatment for the tiny text-heavy
       personal-web appearance.
    */
    font-family: "DM Mono", "Courier New", monospace;

    font-size: 11px;

    line-height: 1.45;

    font-weight: 300;
}


/* -------------------------
   LINKS
------------------------- */

a {
    color: var(--cream);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;
}

a:hover {
    color: var(--gold);
}


/* -------------------------
   HEADINGS
------------------------- */

h1,
h2,
h3 {
    margin-top: 0;

    font-weight: 400;
}


/*
   Serif/italic accent.
   This is used sparingly instead of
   making the entire website look like
   a normal modern portfolio.
*/

h1,
h2 {
    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-style: italic;
}


/* -------------------------
   SITE WIDTH
------------------------- */

.site {
    width: min(920px, calc(100% - 24px));

    margin: 0 auto;
}


/* -------------------------
   HEADER
------------------------- */

header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    padding:
        25px
        5px
        10px;

    border-bottom: 1px dotted var(--line);
}


.logo {
    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-style: italic;

    font-size: 28px;

    line-height: 1;

    text-decoration: none;
}


.logo span {
    color: var(--gold);
}


.status {
    color: var(--dark-grey);

    font-size: 8px;
}


/* -------------------------
   NAVIGATION
------------------------- */

nav {
    display: flex;

    flex-wrap: wrap;

    gap: 8px 15px;

    padding: 8px 5px;

    border-bottom:
        1px dotted
        var(--line);

    font-size: 8px;
}


nav a {
    text-decoration: none;

    color: var(--grey);
}


nav a:hover {
    color: var(--gold);
}


/* -------------------------
   SMALL TEXT
------------------------- */

.tiny {
    font-size: 7px;

    color: var(--dark-grey);

    letter-spacing: .3px;
}


.tiny-title {
    margin-bottom: 7px;

    color: var(--gold);

    font-size: 8px;

    text-transform: lowercase;
}


/* -------------------------
   MAIN CONTENT
------------------------- */

main {
    padding:
        20px
        0
        40px;
}


/* -------------------------
   BOXES
------------------------- */

.box {
    border: 1px dotted var(--line);

    padding: 15px;

    background:
        rgba(40, 51, 41, .25);
}


.box h2 {
    font-size: 17px;

    margin-bottom: 12px;
}


/* -------------------------
   HOME LAYOUT
------------------------- */

.web-grid {
    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        .8fr;

    gap: 8px;

    align-items: start;
}


.hero {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.hero h1 {
    font-size: 38px;

    line-height: .95;

    margin:
        5px
        0
        20px;
}


.hero h1 span {
    color: var(--gold);
}


.hero p {
    max-width: 270px;

    color: var(--grey);

    font-size: 9px;
}


/* -------------------------
   IMAGE / GIF BOX
------------------------- */

.photo {
    min-height: 260px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: var(--dark-grey);

    background:
        linear-gradient(
            135deg,
            #596a53,
            #384238,
            #282c26
        );

    font-family:
        "Patrick Hand",
        cursive;

    font-size: 16px;
}


/*
   When you have your own GIF,
   simply use:

   <img class="site-gif" src="../assets/gifs/name.gif">

*/

.site-gif {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 0 auto;
}


/* -------------------------
   SIDEBAR
------------------------- */

aside {
    display: flex;

    flex-direction: column;
}


.tiny-box {
    min-height: 75px;
}


.big-number {
    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 30px;

    color: var(--gold);
}


.tiny-box p {
    margin: 0;

    color: var(--grey);

    font-size: 8px;
}


/* -------------------------
   LINK AREA
------------------------- */

.link-list {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}


.link-list a {
    padding: 5px 8px;

    border:
        1px dotted
        rgba(180,154,93,.5);

    font-size: 8px;

    text-decoration: none;
}


.link-list a:hover {
    background:
        rgba(180,154,93,.1);

    color: var(--gold);
}


/* -------------------------
   MAP
------------------------- */

.map {
    padding:
        45px
        0;
}


.map-title {
    margin: 8px 0 35px;

    text-align: center;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 47px;

    font-style: italic;

    font-weight: 400;
}


.map-title span {
    color: var(--gold);
}


.map-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;

    max-width: 750px;

    margin: auto;
}


.map-item {
    display: block;

    min-height: 85px;

    padding: 14px;

    border:
        1px dotted
        var(--line);

    text-decoration: none;

    transition:
        background .15s ease,
        transform .15s ease;
}


.map-item:hover {
    background:
        rgba(101,116,92,.15);

    transform:
        translateY(-2px);
}


.map-item strong {
    display: block;

    margin-bottom: 8px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 17px;

    font-style: italic;

    font-weight: 400;
}


.map-item small {
    color: var(--dark-grey);

    font-size: 7px;
}


/* -------------------------
   NORMAL PAGE
------------------------- */

.page {
    max-width: 760px;

    margin: auto;

    padding:
        50px
        0;
}


.page-title {
    margin:
        8px
        0
        30px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 48px;

    font-style: italic;

    font-weight: 400;
}


.page-title span {
    color: var(--gold);
}


.paper {
    padding: 25px;

    border:
        1px dotted
        var(--line);

    background:
        rgba(53, 65, 53, .16);

    color: var(--grey);

    font-size: 10px;

    line-height: 1.8;
}


.paper p {
    max-width: 620px;
}


/* -------------------------
   HANDWRITTEN ACCENT
------------------------- */

.handwritten {
    font-family:
        "Patrick Hand",
        cursive;

    font-size: 16px;

    color: var(--gold);
}


/* -------------------------
   IMAGE COLLAGE
------------------------- */

.image-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 5px;
}


.image-grid img {
    width: 100%;

    display: block;

    border: 1px dotted var(--line);
}


/* -------------------------
   GIF / BUTTON WALL
------------------------- */

.button-wall {
    display: flex;

    flex-wrap: wrap;

    gap: 4px;

    align-items: flex-start;
}


.button-wall img {
    width: 88px;

    height: 31px;

    image-rendering: pixelated;
}


/* -------------------------
   POLL
------------------------- */

.poll {
    font-size: 8px;
}


.poll label {
    display: block;

    margin:
        4px
        0;

    color: var(--grey);
}


/* -------------------------
   EMBEDS
------------------------- */

.embed {
    width: 100%;

    border:
        1px dotted
        var(--line);

    overflow: hidden;
}


.embed iframe {
    display: block;

    width: 100%;

    border: 0;
}


/* -------------------------
   FOOTER
------------------------- */

footer {
    padding:
        25px
        0
        45px;

    border-top:
        1px dotted
        var(--line);

    text-align: center;

    color: var(--dark-grey);

    font-size: 7px;
}


footer a {
    color: var(--dark-grey);

    text-decoration: none;
}


/* -------------------------
   ENTRANCE PAGE
------------------------- */

.landing {
    min-height: 100vh;

    display: grid;

    place-items: center;

    text-align: center;

    padding: 20px;
}


.entrance {
    width: min(500px, 100%);
}


.entrance .tiny {
    margin-bottom: 20px;

    letter-spacing: 1.5px;
}


.entrance h1 {
    margin: 0;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        clamp(
            60px,
            14vw,
            105px
        );

    font-style: italic;

    font-weight: 400;

    letter-spacing: -5px;
}


.ornament {
    margin: 20px 0;

    color: var(--gold);

    letter-spacing: 5px;
}


.entrance p {
    color: var(--grey);

    font-size: 9px;

    line-height: 1.8;
}


.enter {
    display: inline-block;

    margin-top: 20px;

    padding:
        7px
        14px;

    border:
        1px solid
        var(--gold);

    color: var(--cream);

    font-size: 8px;

    text-decoration: none;
}


.enter:hover {
    color: var(--bg);

    background: var(--gold);
}


/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 750px) {

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

    .hero {
        min-height: 220px;
    }

    .photo {
        min-height: 220px;
    }

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

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

}


@media (max-width: 450px) {

    body {
        font-size: 10px;
    }

    .site {
        width:
            calc(100% - 16px);
    }

    header {
        padding-top: 15px;
    }

    .logo {
        font-size: 23px;
    }

    nav {
        gap: 6px 11px;
    }

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

    .page-title {
        font-size: 38px;
    }

}
