/*
Theme Name: The Tiles Design
Theme URI: https://thetilesdesign.com/
Author: The Tiles Design
Description: Clean architectural theme for tile design galleries: deep teal header and tiled hero, bold Archivo headings, landscape 4:3 design cards with tile size, finish and best use, a fitter's tip on every design, room and material 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: thetilesdesign
*/

@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(assets/fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(assets/fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(assets/fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--teal: #1f3a44; --teal-2: #2c5260; --aqua: #9cc5c3; --orange: #e07a3f; --orange-d: #b85a24;
	--bg: #f6f7f5; --card: #ffffff; --ink: #1c262b; --mute: #5f6d72; --line: #dfe4e2; --mist: #eaf1f0; --grout: #cfd8d6;
	--head: "Archivo", "Arial Narrow", Arial, sans-serif;
	--body: "Nunito Sans", 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.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-underline-offset: 3px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
a:hover { color: var(--orange-d); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.1; color: var(--teal); letter-spacing: -.01em; }
h2 { font-size: 1.75rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { width: min(1220px, 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 */
.tt-hdr { background: var(--teal); position: relative; z-index: 30; border-bottom: 4px solid var(--orange); }
.tt-hdr-in { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.tt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.tt-brand svg { width: 34px; height: 34px; background: #fff; padding: 2px; }
.tt-brand span { font: 700 1.3rem/1 var(--head); letter-spacing: .01em; }
.tt-brand b { color: var(--aqua); font-weight: 800; }
.tt-links { display: flex; gap: 4px; margin-left: auto; white-space: nowrap; }
.tt-links a { color: #e4eeee; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 12px; }
.tt-links a:hover { background: var(--teal-2); color: #fff; }
.tt-pop summary { list-style: none; cursor: pointer; background: var(--orange); color: #fff; font: 700 .92rem/1 var(--body); padding: 11px 16px; white-space: nowrap; }
.tt-pop summary::-webkit-details-marker { display: none; }
.tt-pop[open] summary { background: var(--orange-d); }
.tt-pop-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); box-shadow: 0 20px 40px rgba(31, 58, 68, .2); max-height: 78vh; overflow: auto; }
.tt-pop-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 30px; padding: 18px 0 26px; }
.tt-pop-panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-d); margin: 14px 0 6px; }
.tt-pop-panel a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line); }
.tt-pop-panel a:hover { color: var(--teal-2); }

/* page masthead: tile grid */
.tt-mast { background-color: var(--mist); background-image: linear-gradient(var(--grout) 1px, transparent 1px), linear-gradient(90deg, var(--grout) 1px, transparent 1px); background-size: 48px 48px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.tt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--mute); margin: 0 0 10px; }
.tt-crumbs a { color: var(--teal-2); }
.tt-mast h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 14px; max-width: 920px; background: var(--bg); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 8px; line-height: 1.35; }
.tt-pills { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-pills span { background: var(--card); border: 1px solid var(--line); padding: 4px 12px; font-size: .86rem; font-weight: 600; }
.tt-pills span:first-child { background: var(--teal); border-color: var(--teal); color: #fff; }

/* flow */
.tt-main { padding-bottom: 40px; }
.tt-flow { padding-top: 26px; }
.tt-sec { scroll-margin-top: 14px; }
.tt-sec > p { max-width: 820px; }
.tt-intro { max-width: 820px; font-size: 1.06rem; }
.tt-jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; margin: 20px 0 8px; background: var(--line); border: 1px solid var(--line); }
.tt-jump a { text-decoration: none; color: var(--teal); background: var(--card); padding: 10px 14px; font-weight: 700; font-size: .9rem; }
.tt-jump a::before { content: "\25A0"; color: var(--orange); margin-right: 8px; font-size: .7rem; vertical-align: 2px; }
.tt-jump a:hover { background: var(--mist); }

/* design cards: landscape 4:3 */
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 16px 0 8px; align-items: start; }
@media (min-width: 1061px) {
	.tt-grid:has(> .tt-card:nth-child(4):last-child), .tt-grid:has(> .tt-card:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}
.tt-card { margin: 0; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 14px; }
.tt-zoom { display: block; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.tt-zoom img { width: 100%; height: 100%; object-fit: cover; }
.tt-card figcaption { padding: 0 0 14px; font-size: .93rem; }
.tt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; background: var(--teal); color: #fff; }
.tt-stats div { padding: 7px 10px; border-left: 1px solid rgba(255, 255, 255, .18); }
.tt-stats div:first-child { border-left: 0; }
.tt-stats dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua); font-weight: 700; }
.tt-stats dd { margin: 2px 0 0; font: 700 .86rem/1.25 var(--body); }
.tt-card .cap { margin: 0 14px 10px; }
.tt-card .fit { margin: 0 14px; border-left: 4px solid var(--orange); background: #fdf3ec; padding: 8px 12px; font-size: .88rem; }
.tt-card .fit b { color: var(--orange-d); }

/* guide, tables, faq */
.tt-guide { max-width: 860px; }
.table-scroll { overflow-x: auto; margin: 16px 0; background: var(--card); 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(--teal); color: #fff; font-weight: 700; }
tr:nth-child(even) td { background: #fafcfb; }
.tt-faq { max-width: 860px; }
.tt-faq details { background: var(--card); border: 1px solid var(--line); margin-bottom: -1px; }
.tt-faq summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 16px; position: relative; }
.tt-faq summary::-webkit-details-marker { display: none; }
.tt-faq summary h3 { margin: 0; font: 700 1rem/1.45 var(--body); color: var(--ink); }
.tt-faq summary::after { content: "+"; position: absolute; right: 12px; top: 11px; width: 26px; height: 26px; background: var(--teal); color: #fff; font: 800 1.1rem/26px var(--head); text-align: center; }
.tt-faq details[open] summary::after { content: "\2212"; background: var(--orange); }
.tt-faq details > div { padding: 0 16px 14px; color: var(--mute); }
.tt-ad { margin: 28px 0; min-height: 90px; text-align: center; }

/* tiles of pages */
.tt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tt-tile { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.tt-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.tt-tile span { display: block; padding: 10px 12px 12px; }
.tt-tile b { display: block; font: 800 1.05rem/1.2 var(--head); color: var(--teal); }
.tt-tile small { color: var(--mute); font-size: .8rem; }
.tt-tile:hover { border-color: var(--orange); }
.tt-tile:hover b { color: var(--orange-d); }
.tt-next { margin-top: 50px; }
.tt-row { padding-top: 12px; scroll-margin-top: 10px; }
.tt-row h2 { border-bottom: 3px solid var(--teal); padding-bottom: 8px; }

/* front: tiled hero with a row of picks */
.tt-hero { background-color: var(--teal); background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 56px 56px; color: #fff; padding: 46px 0 40px; }
.tt-hero-in { display: grid; grid-template-columns: 1fr; gap: 26px; }
.tt-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 0 0 14px; max-width: 900px; }
.tt-hero .lead { margin: 0 0 20px; max-width: 640px; color: #d6e6e5; font-size: 1.1rem; }
.tt-hero-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tt-hero-go a { text-decoration: none; background: var(--orange); color: #fff; padding: 10px 18px; font-weight: 700; font-size: .95rem; }
.tt-hero-go a + a { background: transparent; border: 2px solid #fff; padding: 8px 16px; }
.tt-hero-go a:hover { background: #fff; color: var(--teal); }
.tt-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tt-picks a { display: block; text-decoration: none; background: #fff; border: 4px solid #fff; }
.tt-picks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tt-picks span { display: block; padding: 8px 6px 4px; font: 800 1rem/1.15 var(--head); color: var(--teal); }

/* static */
.tt-page { max-width: 800px; padding: 12px 0 30px; }
.tt-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 18px; }
.tt-plain { padding-top: 16px; }

/* footer */
.tt-foot { background: var(--teal); color: #c9dbdb; margin-top: 60px; padding: 42px 0 24px; font-size: .92rem; border-top: 6px solid var(--orange); }
.tt-foot a { color: #f0f6f6; text-decoration: none; display: block; padding: 3px 0; }
.tt-foot a:hover { color: var(--aqua); }
.tt-foot-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.tt-foot-brand { margin: 0; }
.tt-foot-brand b { font: 800 1.45rem/1.3 var(--head); color: #fff; }
.tt-foot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; align-content: start; }
.tt-foot-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 26px; padding: 16px 0; }
.tt-foot h3 { color: var(--aqua); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.tt-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; margin: 0; font-size: .8rem; color: #9fb7b8; }

/* viewer */
.tt-view { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #0f1d22; color: #e6eeee; }
.tt-view[open] { display: grid; grid-template-columns: 52px 1fr 52px; grid-template-rows: auto 1fr auto; }
.tt-view::backdrop { background: rgba(0, 0, 0, .75); }
.tt-view .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .86rem; }
.tt-view .close { background: var(--orange); border: 0; color: #fff; font: 700 .9rem/1 var(--body); padding: 10px 14px; cursor: pointer; }
.tt-view .stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.tt-view .stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.tt-view .nav { background: none; border: 0; color: var(--aqua); font: 800 2rem/1 var(--head); cursor: pointer; }
.tt-view .info { grid-column: 1 / -1; padding: 10px 16px 18px; max-width: 720px; margin: 0 auto; text-align: center; }
.tt-view .info p { margin: 0 0 10px; font-size: .94rem; }
.tt-view .act { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.tt-view .act a { color: var(--teal); background: #fff; text-decoration: none; font: 700 .9rem/1 var(--body); padding: 10px 15px; }
.tt-view .act a:hover { background: var(--orange); color: #fff; }

@media (max-width: 1060px) {
	.tt-links { display: none; }
	.tt-pop { margin-left: auto; }
	.tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.tt-brand span { font-size: 1.1rem; }
	.tt-grid { grid-template-columns: 1fr; gap: 20px; }
	.tt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tt-foot-top { grid-template-columns: 1fr; }
	h2 { font-size: 1.5rem; }
	.tt-view[open] { grid-template-columns: 30px 1fr 30px; }
}
