/*
Theme Name: Front Elevation Design
Theme URI: https://frontelevationdesign.com/
Author: Front Elevation Design
Description: Calm architecture-studio theme for house front elevation galleries: white header with inline navigation, sage and sand palette, 5:4 elevation cards with plot, floors and materials, an architect's note on every design, slash-separated section index, full-screen viewer and image SEO.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frontelevationdesign
*/

@font-face { font-family: "Sora"; src: url(assets/fonts/sora-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url(assets/fonts/sora-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(assets/fonts/lato-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(assets/fonts/lato-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--white: #ffffff; --bg: #f6f5f1; --ink: #2f3a3c; --ink-2: #4c5759; --mute: #6f7779; --line: #e3e1da;
	--sage: #6f8f7e; --sage-d: #4f6f5f; --sage-l: #e7efe9; --sand: #c9a77c; --sand-l: #f4ece1;
	--head: "Sora", "Segoe UI", Arial, sans-serif;
	--body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.72 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
h2 { font-size: 1.55rem; margin: 2.6rem 0 .6rem; }
h3 { font-size: 1.08rem; font-weight: 600; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.fe-top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.fe-top-in { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.fe-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.fe-logo svg { width: 34px; height: 34px; }
.fe-logo span { font: 700 1.08rem/1 var(--head); letter-spacing: -.01em; }
.fe-logo i { font-style: normal; color: var(--sage); font-weight: 600; }
.fe-nav { display: flex; gap: 22px; margin-left: auto; }
.fe-nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 700; padding: 4px 0; border-bottom: 2px solid transparent; }
.fe-nav a:hover { border-color: var(--sand); color: var(--ink); }
.fe-more summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-l); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.fe-more summary::-webkit-details-marker { display: none; }
.fe-more summary span { width: 16px; height: 2px; background: var(--ink); }
.fe-more[open] summary { background: var(--sage); }
.fe-more[open] summary span { background: #fff; }
.fe-sheet { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(47, 58, 60, .1); max-height: 76vh; overflow: auto; }
.fe-sheet .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 30px; padding: 18px 0 26px; }
.fe-sheet h3 { font-size: .8rem; color: var(--sage-d); text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 6px; }
.fe-sheet a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; }
.fe-sheet a:hover { color: var(--sage-d); }

/* page head */
.fe-intro-head { padding: 26px 0 8px; }
.fe-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--mute); margin: 0 0 12px; }
.fe-crumbs a { color: var(--mute); text-decoration: none; }
.fe-intro-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 12px; max-width: 900px; }
.fe-line { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mute); font-size: .9rem; }
.fe-line span:first-child { color: var(--sage-d); font-weight: 700; }

/* flow */
.fe-main { padding-bottom: 40px; }
.fe-flow { padding-top: 18px; }
.fe-intro { max-width: 780px; font-size: 1.06rem; color: var(--ink-2); }
.fe-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 18px 0 8px; padding: 12px 16px; background: var(--white); border-radius: 12px; font-size: .92rem; }
.fe-jump a { text-decoration: none; color: var(--ink); font-weight: 700; }
.fe-jump a:hover { color: var(--sage-d); }
.fe-jump a + a::before { content: "/"; color: var(--sand); margin: 0 12px; font-weight: 400; }
.fe-sec { scroll-margin-top: 80px; }
.fe-sec > p { max-width: 820px; color: var(--ink-2); }

/* elevation cards */
.fe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin: 16px 0 6px; }
.fe-card { margin: 0; display: flex; flex-direction: column; scroll-margin-top: 80px; }
.fe-zoom { display: block; aspect-ratio: 5 / 4; background: #e5e4dd; border-radius: 14px; overflow: hidden; }
.fe-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fe-zoom:hover img { transform: scale(1.03); }
.fe-card figcaption { padding: 12px 2px 0; font-size: .94rem; }
.fe-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.fe-chips li { font-size: .78rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.fe-chips li b { color: var(--sage-d); }
.fe-card .cap { margin: 0 0 8px; color: var(--ink-2); }
.fe-card .arch { margin: 0; padding-left: 12px; border-left: 3px solid var(--sand); font-size: .9rem; }
.fe-card .arch b { color: var(--ink); }

/* guide, tables, faq */
.fe-guide { max-width: 860px; }
.table-scroll { overflow-x: auto; margin: 14px 0; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage-l); color: var(--ink); font-family: var(--head); font-size: .86rem; font-weight: 600; }
.fe-faq { max-width: 860px; }
.fe-faq details { border-bottom: 1px solid var(--line); }
.fe-faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative; }
.fe-faq summary::-webkit-details-marker { display: none; }
.fe-faq summary h3 { margin: 0; font-size: 1rem; }
.fe-faq summary::after { content: "\2192"; position: absolute; right: 4px; top: 13px; color: var(--sand); transition: transform .2s; }
.fe-faq details[open] summary::after { transform: rotate(90deg); }
.fe-faq details > div { padding: 0 0 14px; color: var(--ink-2); }
.fe-ad { margin: 26px 0; min-height: 90px; text-align: center; }

/* tiles */
.fe-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 16px; }
.fe-tile { display: block; text-decoration: none; color: var(--ink); }
.fe-tile img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px; }
.fe-tile span { display: block; padding: 8px 2px 0; }
.fe-tile b { display: block; font: 600 1rem/1.3 var(--head); }
.fe-tile small { color: var(--mute); font-size: .82rem; }
.fe-tile:hover b { color: var(--sage-d); }
.fe-next { margin-top: 48px; }
.fe-set { padding-top: 10px; scroll-margin-top: 80px; }

/* front */
.fe-hello { padding: 46px 0 34px; background: linear-gradient(180deg, var(--white) 0, var(--bg) 100%); }
.fe-over { margin: 0 0 10px; color: var(--sage-d); font-weight: 700; font-size: .92rem; }
.fe-hello h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 0 0 14px; max-width: 920px; }
.fe-hello .lead { max-width: 640px; margin: 0 0 24px; color: var(--ink-2); font-size: 1.1rem; }
.fe-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fe-paths a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.fe-paths a:hover { border-color: var(--sage); }
.fe-paths b { display: block; font: 600 1rem/1.3 var(--head); }
.fe-paths span { color: var(--mute); font-size: .86rem; }

/* static */
.fe-page { max-width: 780px; padding: 10px 0 30px; }
.fe-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 10px 0 16px; }
.fe-plain { padding-top: 16px; }

/* footer */
.fe-foot { background: var(--ink); color: #c4cbcc; margin-top: 56px; padding: 40px 0 24px; font-size: .92rem; }
.fe-foot a { color: #e6eaea; text-decoration: none; display: block; padding: 3px 0; }
.fe-foot a:hover { color: var(--sand); }
.fe-foot-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #485356; }
.fe-foot-brand { margin: 0; }
.fe-foot-brand b { font: 700 1.25rem/1.4 var(--head); color: #fff; }
.fe-foot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.fe-foot-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; padding: 16px 0; }
.fe-foot h3 { color: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 6px; }
.fe-legal { border-top: 1px solid #485356; padding-top: 14px; margin: 0; font-size: .82rem; color: #97a1a3; }

/* viewer */
.fe-view { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #f6f5f1; color: var(--ink); }
.fe-view[open] { display: grid; grid-template-columns: 52px 1fr 52px; grid-template-rows: auto 1fr auto; }
.fe-view::backdrop { background: rgba(0, 0, 0, .5); }
.fe-view .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .9rem; }
.fe-view .close { background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.fe-view .stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.fe-view .stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.fe-view .nav { background: none; border: 0; color: var(--sage-d); font-size: 1.8rem; cursor: pointer; }
.fe-view .info { grid-column: 1 / -1; padding: 10px 16px 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.fe-view .info p { margin: 0 0 10px; font-size: .95rem; }
.fe-view .act { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fe-view .act a { color: #fff; background: var(--sage-d); text-decoration: none; font-weight: 700; font-size: .84rem; padding: 8px 14px; border-radius: 999px; }

@media (max-width: 980px) {
	.fe-nav { display: none; }
	.fe-more { margin-left: auto; }
	.fe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fe-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.fe-grid { grid-template-columns: 1fr; gap: 24px; }
	.fe-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.fe-foot-top { grid-template-columns: 1fr; }
	.fe-logo span { font-size: .98rem; }
	.fe-hello { padding: 30px 0 24px; }
	h2 { font-size: 1.36rem; }
	.fe-view[open] { grid-template-columns: 30px 1fr 30px; }
}
