/* Swabira Mayanja portfolio styles.
   Colors and fonts live in the :root block at the top. Change them there. */
:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --bg: #EFE5D0;
    --page: #F8F1E1;
    --ink: #2C2A1E;
    --muted: #5E5A45;
    --green: #4A5B2F;
    --green-deep: #2F3D1F;
    --maroon: #7A2432;
    --mustard: #D9A527;
    --line: rgba(44, 42, 30, .18);
    --head: #2F3D1F;
    --link: #4A5B2F;
    --btntext: #F8F1E1;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1D1A13;
        --page: #28241A;
        --ink: #F1E8D6;
        --muted: #BDB49A;
        --green: #9DB36A;
        --green-deep: #2B3820;
        --maroon: #E08A98;
        --mustard: #E5B93C;
        --line: rgba(241, 232, 214, .2);
        --head: #F1E8D6;
        --link: #E5B93C;
        --btntext: #1D1A13;
    }
}

:root[data-theme="dark"] {
    --bg: #1D1A13;
    --page: #28241A;
    --ink: #F1E8D6;
    --muted: #BDB49A;
    --green: #9DB36A;
    --green-deep: #2B3820;
    --maroon: #E08A98;
    --mustard: #E5B93C;
    --line: rgba(241, 232, 214, .2);
    --head: #F1E8D6;
    --link: #E5B93C;
    --btntext: #1D1A13;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth
}

*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px);
    background-size: 24px 24px
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--maroon);
    outline-offset: 3px;
    border-radius: 4px
}

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0
}

.logo {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--green)
}

nav {
    display: flex;
    gap: 26px
}

nav a {
    text-decoration: none;
    font-weight: 500
}

nav a:hover {
    color: var(--maroon);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
    padding: 40px 0 100px
}

.note {
    font-family: var(--hand);
    font-size: 1.7rem;
    color: var(--maroon);
    margin: 0 0 4px;
    line-height: 1
}

h1 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    color: var(--head)
}

.lede {
    max-width: 33rem;
    color: var(--muted);
    margin: 0 0 30px;
    font-size: 1.12rem
}

.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--green);
    transition: background .15s, color .15s
}

.btn.primary {
    background: var(--green);
    color: var(--btntext)
}

.btn:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #F8F1E1
}

.page {
    position: relative;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 34px 30px 30px;
    box-shadow: 0 2px 0 var(--line), 0 24px 40px -28px rgba(44, 42, 30, .5);
    transform: rotate(1.4deg);
    animation: settle .8s ease-out both
}

@keyframes settle {
    from {
        transform: rotate(5deg) translateY(-20px);
        opacity: 0
    }

    to {
        transform: rotate(1.4deg);
        opacity: 1
    }
}

.page .tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 120px;
    height: 30px;
    margin-left: -60px;
    background: var(--mustard);
    opacity: .9;
    transform: rotate(-3deg);
    clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%)
}

.photo {
  aspect-ratio: 4 / 3;      /* same shape at every screen size */
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* whole photo always visible, never cropped */
}

.page h2 {
    font-family: var(--hand);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0 0 6px;
    color: var(--maroon);
    line-height: 1.1
}

.now {
    list-style: none;
    margin: 0;
    padding: 0
}

.now li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--line)
}

.now li:last-child {
    border-bottom: 0
}

.box {
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--green);
    border-radius: 4px;
    position: relative
}

.box.done::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 6px;
    height: 11px;
    border: solid var(--maroon);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg)
}

h2.sec {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    letter-spacing: -.015em;
    line-height: 1.1;
    margin: 0 0 10px;
    color: var(--head)
}

.intro {
    color: var(--muted);
    max-width: 36rem;
    margin: 0 0 40px
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 30px
}

.card {
    position: relative;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 26px 24px 24px;
    box-shadow: 0 2px 0 var(--line)
}

.card:nth-child(odd) {
    transform: rotate(-.5deg)
}

.card:nth-child(even) {
    transform: rotate(.5deg)
}

.card .tape {
    position: absolute;
    top: -11px;
    left: 24px;
    width: 74px;
    height: 22px;
    background: var(--mustard);
    opacity: .85;
    transform: rotate(-2deg)
}

.card:nth-child(3n+2) .tape {
    background: var(--green);
    left: auto;
    right: 24px;
    transform: rotate(3deg)
}

.card:nth-child(3n) .tape {
    background: var(--maroon);
    left: 50%;
    margin-left: -37px
}

.shot {
    border: 2px dashed var(--line);
    border-radius: 4px;
    aspect-ratio: 16/8;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 18px
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* whole image always visible, never cropped */
}

.card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 0 8px
}

.card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1rem
}

.stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px
}

.stamps li {
    font-size: .82rem;
    font-weight: 700;
    color: var(--maroon);
    border: 1.5px solid var(--maroon);
    border-radius: 4px;
    padding: 1px 9px
}

.visit {
    font-weight: 700;
    color: var(--link);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--mustard)
}

.visit:hover {
    color: var(--maroon)
}

.about {
    padding: 100px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.about p {
    max-width: 32rem;
    margin: 0 0 16px
}

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

.love {
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px
}

.love svg {
    display: block;
    margin-bottom: 10px;
    color: var(--green)
}

.love:nth-child(2) svg {
    color: var(--maroon)
}

.love:nth-child(3) svg {
    color: var(--mustard)
}

.love h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 0 4px
}

.love p {
    margin: 0;
    font-size: .95rem;
    color: var(--muted)
}

.contact {
    margin-top: 110px;
    background: var(--green-deep);
    color: #F1E8D6;
    padding: 72px 0 48px
}

.contact h2 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    max-width: 15em
}

.contact p {
    max-width: 32rem;
    color: #D3CCB4;
    margin: 0 0 26px
}

.contact .btn {
    background: var(--mustard);
    border-color: var(--mustard);
    color: #2C2A1E
}

.contact .btn:hover {
    background: #F1E8D6;
    border-color: #F1E8D6;
    color: #2C2A1E
}

.links {
    display: flex;
    gap: 24px;
    margin-top: 34px;
    flex-wrap: wrap
}

.links a {
    text-underline-offset: 5px
}

.foot {
    opacity: .7;
    font-size: .9rem;
    margin-top: 36px
}

@media (max-width:860px) {

    .hero,
    .about {
        grid-template-columns: 1fr
    }

    .hero {
        padding-bottom: 70px;
        gap: 44px
    }

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

    .page {
        max-width: 420px
    }
}

@media (max-width:480px) {
    .loves {
        grid-template-columns: 1fr
    }

    nav {
        gap: 16px
    }
}

@media (prefers-reduced-motion:reduce) {
    .page {
        animation: none
    }

    html {
        scroll-behavior: auto
    }

    .btn {
        transition: none
    }
}

nav {
    align-items: center
}

.theme {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    border: 2px solid var(--green);
    border-radius: 10px;
    padding: 3px 14px
}

.theme:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #F8F1E1
}