/* The homepage pairs a portrait of Iliyana with a photograph of her at work. */
.at-front {
    /* The brand's own ink, the same as the logo, the cards and the header button. */
    --front-dark: var(--at-ink);
    --front-text: #fbf6ef;
    --front-accent: #e0bb93;
    color: var(--front-text);
    background: var(--front-dark);
}

.at-front__spread {
    max-width: 1720px;
    margin-inline: auto;
    display: grid;
}

.at-front__album {
    position: relative;
    min-inline-size: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 0;
    height: clamp(235px, 73vw, 445px);
    background: #51483d;
}

.at-front__photo {
    position: absolute;
    inset: 0;
}

.at-front__photo picture {
    display: block;
    width: 100%;
    height: 100%;
}

.at-front__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-front__photo--portrait img {
    object-position: 50% 16%;
}

.at-front__photo--work img {
    object-position: 51% 54%;
}

.at-front__photo--work,
#front-work:checked ~ .at-front__photo--portrait {
    display: none;
}

#front-work:checked ~ .at-front__photo--work {
    display: block;
}

.at-front__caption {
    z-index: 1;
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 35px var(--at-gutter) 15px;
    background: linear-gradient(transparent, rgba(18, 14, 12, .78));
}

.at-front__credit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--front-text);
    text-shadow: 0 1px 5px #1c1614;
}

.at-front__credit svg {
    width: 16px;
    height: 16px;
}

.at-front__credit strong {
    display: block;
    font: 400 clamp(1.13rem, 1.9vw, 1.8rem)/1.1 var(--at-display);
}

.at-front__credit small {
    display: block;
    margin-top: 4px;
    font-size: .7rem;
    letter-spacing: .04em;
}

.at-front__credit:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.at-front__picks {
    display: flex;
    gap: 7px;
    align-items: end;
}

.at-front__picks label {
    display: grid;
    justify-items: center;
    grid-template-rows: auto 1fr;
    gap: 4px;
    padding: 3px 1px;
    min-width: 48px;
    font: 650 .67rem/1.2 var(--at-ui);
    color: white;
    cursor: pointer;
    text-shadow: 0 1px 4px #1c1614;
}

.at-front__picks img {
    height: 38px;
    width: 40px;
    border: 1px solid rgba(255,255,255,.6);
    object-fit: cover;
    opacity: .82;
}

#front-portrait:checked ~ .at-front__caption [for="front-portrait"] img,
#front-work:checked ~ .at-front__caption [for="front-work"] img {
    outline: 2px solid white;
    outline-offset: 2px;
    opacity: 1;
}

#front-portrait:focus-visible ~ .at-front__caption [for="front-portrait"],
#front-work:focus-visible ~ .at-front__caption [for="front-work"] {
    outline: 2px solid white;
    outline-offset: 3px;
}

.at-front__story {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: clamp(26px, 5vw, 56px) var(--at-gutter) clamp(18px, 3vw, 40px);
}

.at-front .at-kicker {
    color: var(--front-accent);
    font-size: clamp(.66rem, 1.1vw, .79rem);
}

.at-front h1 {
    margin-block: clamp(14px, 2.4vw, 32px) clamp(12px, 1.7vw, 25px);
    font-size: clamp(2.75rem, 10.5vw, 4.6rem);
    letter-spacing: -.035em;
    line-height: .99;
    text-wrap: initial;
}

/* The headline is one sentence in one colour. The span only keeps its last
   words together and gives them their own line on wide screens. */
.at-front h1 span {
    white-space: nowrap;
}

.at-front__intro {
    max-width: 36ch;
    color: #e4dad2;
    font-size: clamp(.98rem, 1.16vw, 1.19rem);
    line-height: 1.5;
    text-wrap: pretty;
}

/* The booking button and the proof that backs it are one group: the ratings
   sit directly under the buttons, with no rule between them. */
.at-front__close {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: clamp(6px, .9vw, 12px);
    width: 100%;
    margin-top: clamp(20px, 2.8vw, 38px);
}

.at-front__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px clamp(18px, 2.1vw, 33px);
}

.at-front__actions .at-btn {
    --fg: #2c2522;
    --bg: #f8efe3;
    --bd: #f8efe3;
}

.at-front__actions .at-btn:hover {
    --bg: var(--front-accent);
    --bd: var(--front-accent);
}

.at-front__proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    margin: 0;
    color: #eaded3;
    font-size: clamp(.84rem, .95vw, .94rem);
    line-height: 1.3;
}

.at-front__score {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    margin-right: 2px;
}

.at-front__score .at-stars {
    color: var(--front-accent);
    font-size: .8em;
    letter-spacing: .16em;
}

.at-front__score b {
    font: 400 1.36em/1 var(--at-display);
    color: var(--front-text);
}

/* The two sources never split: when the row is too narrow the stars take
   the first line and both sources share the second. */
.at-front__srcs {
    display: inline-flex;
    align-items: center;
    gap: 0 12px;
    white-space: nowrap;
}

.at-front__proof a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
}

.at-front__proof a + a::before {
    content: "\00B7";
    margin-right: 12px;
    color: #a3958a;
}

.at-front__src {
    text-decoration: underline;
    text-decoration-color: rgba(234, 222, 211, .38);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s, text-decoration-color .2s;
}

.at-front__proof a:hover .at-front__src {
    color: var(--front-accent);
    text-decoration-color: currentColor;
}

@media (max-width: 399px) {
    .at-front__caption { padding-inline: 15px; }
    .at-front__actions .at-btn { min-height: 47px; padding-inline: 17px; }
}

@media (max-width: 399px), (min-width: 680px) and (max-width: 980px) {
    .at-front__actions { gap: 9px 14px; }
    .at-front__actions .at-btn { padding-inline: 14px; }
    .at-front__actions :is(.at-btn, .at-link) { font-size: .94rem; }
    /* Narrow columns: tighten the ratings so they hold one line where they can. */
    .at-front__proof { font-size: .8rem; }
    .at-front__proof,
    .at-front__srcs { gap: 0 8px; }
    .at-front__proof a + a::before { margin-right: 8px; }
    .at-front__score { gap: 7px; margin-right: 0; }
    .at-front__score .at-stars { letter-spacing: .08em; }
}

@media (max-width: 679px) {
    .at-front__album {
        height: auto;
    }
    /* A short, wide frame: the booking button has to be on the first screen of
       a small phone (390x664 with Safari's bars). */
    .at-front__photo {
        position: relative;
        inset: auto;
        aspect-ratio: 1.36;
    }
    /* Phones get their own, wider cut of the portrait (see the <picture> in
       the page), already in this frame's proportions: head, shoulders and
       wall, not a close-up. The name and the photo switch lie over the foot
       of the photo, so the taller frame costs the booking button nothing. */
    .at-front__photo--portrait img { object-position: 50% 50%; }
    .at-front__caption {
        align-items: end;
        padding: 34px var(--at-gutter) 7px;
        background: linear-gradient(transparent, rgba(12, 12, 12, .5) 38%, rgba(12, 12, 12, .86));
    }
    .at-front__picks img { width: 32px; height: 30px; }
    .at-front__picks label { min-height: 44px; gap: 3px; }
    .at-front__story { padding-top: 19px; }
    .at-front__close { margin-top: 15px; gap: 3px; }
}
@media (max-width: 359px) {
    /* Smallest phones: the button goes above the paragraph so it stays on the
       first screen. The wrapper steps aside so its two children can be ordered. */
    .at-front__close { display: contents; }
    .at-front__actions { order: 1; margin-block: 4px 12px; }
    .at-front__intro { order: 2; }
    .at-front__proof { order: 3; margin-top: 6px; }
}
@media (min-width: 510px) and (max-width: 679px) {
    /* One column on a wide screen: let the paragraph run as wide as the
       headline above it, so the right half is not left empty. */
    .at-front h1 { font-size: clamp(3.6rem, 8vw, 4.6rem); }
    .at-front__intro { max-width: 54ch; font-size: 1.02rem; }
}

@media (min-width: 680px) {
    .at-front__spread {
        grid-template-columns: 1fr 1fr;
        min-height: clamp(490px, 46vw, 724px);
    }
    .at-front__album { height: auto; }
    .at-front__caption {
        padding: 60px clamp(24px, 3vw, 52px) clamp(20px, 2.4vw, 38px);
    }
    .at-front__picks { gap: 12px; }
    .at-front__picks img { width: 51px; height: 48px; }
    .at-front__story { padding: clamp(30px, 4.75vw, 84px); }
    .at-front h1 { font-size: clamp(3.25rem, 5.8vw, 6.35rem); }
    .at-front h1 span { display: block; }
}

.at-home-visit__photos {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, .94fr);
    gap: clamp(8px, 1.3vw, 18px);
    align-items: end;
}

.at-home-visit__inside img,
.at-home-visit__outside img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--at-radius);
}

.at-home-visit__inside {
    aspect-ratio: 1;
}

.at-home-visit__outside {
    aspect-ratio: .82;
}
