/* laurenisabelle.com
   Gallery wall, not web design. Off-white ground, one typeface, colour only on
   links. The paintings are the only saturated thing on any page. */

:root {
    --paper: #faf9f7;
    --ink: #1b1b1a;
    --ink-quiet: #67665f;
    --link: #2f4d6e;
    --hairline: #e2e0da;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
        Georgia, "Times New Roman", serif;

    /* Generous margins: the work never comes closer than this to the edge. */
    --frame: clamp(1.5rem, 8vw, 9rem);
    --measure: 34rem;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: var(--frame);
    top: 0.75rem;
    background: var(--paper);
    padding: 0.5rem 0.9rem;
    z-index: 5;
}

/* ---------- Chrome ---------- */

.masthead {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    align-items: baseline;
    padding: clamp(1.75rem, 4vw, 3rem) var(--frame) 0;
}

.masthead__name {
    margin: 0;
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
}

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

.masthead nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.masthead nav a {
    color: var(--ink-quiet);
    text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
    color: var(--ink);
}

main {
    padding: clamp(3rem, 9vh, 6rem) var(--frame) 0;
}

/* Kept in the document for structure, taken off the screen: the nav above
   already names the page. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 clamp(2rem, 5vh, 3.5rem);
}

/* ---------- Home ---------- */

.intro {
    margin-bottom: clamp(3rem, 10vh, 7rem);
}

/* The masthead already carries her name; the home page adds only this line. */
.intro__line {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-quiet);
}

.feature {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 14vh, 9rem);
    max-width: 60rem;
}

.feature__item {
    margin: 0;
}

/* A tall painting shown at full column width would run off the bottom of the
   screen; cap it by viewport height instead so the whole work is visible. */
.feature__item img,
.painting img {
    max-height: 82vh;
    width: auto;
}

.feature__caption {
    margin-top: 0.9rem;
    font-size: 0.875rem;
    color: var(--ink-quiet);
}

.more {
    margin: clamp(4rem, 12vh, 8rem) 0 0;
    font-size: 0.9375rem;
}

/* ---------- Work ---------- */

.group {
    margin-bottom: clamp(4rem, 12vh, 8rem);
}

.group__name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-quiet);
    margin: 0 0 2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline);
}

.grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: start;
}

.tile a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tile__title,
.tile__meta {
    display: block;
    font-size: 0.875rem;
}

.tile__title {
    margin-top: 0.9rem;
}

.tile a:hover .tile__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tile__meta {
    color: var(--ink-quiet);
}

/* ---------- One painting ---------- */

.painting {
    max-width: 60rem;
}

.painting__label {
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
    max-width: var(--measure);
}

.painting__title {
    font-size: 1.375rem;
    font-weight: 400;
    margin: 0;
}

.painting__spec,
.painting__price {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    color: var(--ink-quiet);
}

.painting__text {
    margin: 1.5rem 0 0;
}

.painting__enquire {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
}

.painting__back {
    margin: clamp(3rem, 9vh, 5rem) 0 0;
    font-size: 0.9375rem;
}

/* ---------- Prose pages ---------- */

.prose {
    max-width: var(--measure);
}

.prose p {
    margin: 0 0 1.4rem;
}

.contact__lead {
    margin-bottom: 2.5rem;
}

/* ---------- Forms ---------- */

.form {
    margin-top: 2rem;
}

.field {
    margin: 0 0 1.25rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    color: var(--ink-quiet);
    margin-bottom: 0.35rem;
}

input,
textarea,
button {
    font: inherit;
    color: inherit;
}

input,
textarea {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 0;
    padding: 0.55rem 0.7rem;
}

textarea {
    resize: vertical;
}

button {
    background: none;
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
}

button:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- Footer ---------- */

.footer {
    margin-top: clamp(5rem, 16vh, 10rem);
    padding: clamp(2.5rem, 6vh, 4rem) var(--frame) clamp(2.5rem, 6vh, 4rem);
    border-top: 1px solid var(--hairline);
}

.footer__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-quiet);
}

/* On a phone the frame tightens but never disappears. */
@media (max-width: 30rem) {
    .masthead {
        flex-direction: column;
    }
}
